diff --git a/sdk/compute/azure-mgmt-compute/CHANGELOG.md b/sdk/compute/azure-mgmt-compute/CHANGELOG.md index 0b67682e0d37..6137c6b43ff5 100644 --- a/sdk/compute/azure-mgmt-compute/CHANGELOG.md +++ b/sdk/compute/azure-mgmt-compute/CHANGELOG.md @@ -1,5 +1,38 @@ # Release History +## 21.0.0 (2021-05-25) + +**Features** + + - Model NetworkInterfaceReference has a new parameter delete_option + - Model DataDisk has a new parameter delete_option + - Model VirtualMachineScaleSetPublicIPAddressConfiguration has a new parameter sku + - Model VirtualMachineScaleSetPublicIPAddressConfiguration has a new parameter delete_option + - Model VirtualMachineScaleSetNetworkConfiguration has a new parameter delete_option + - Model OSDisk has a new parameter delete_option + - Model VirtualMachineScaleSetVM has a new parameter user_data + - Model VirtualMachineScaleSetUpdateNetworkProfile has a new parameter network_api_version + - Model VirtualMachineScaleSetUpdateVMProfile has a new parameter user_data + - Model VirtualMachineScaleSetVMProfile has a new parameter user_data + - Model LinuxPatchSettings has a new parameter assessment_mode + - Model VirtualMachineScaleSetUpdatePublicIPAddressConfiguration has a new parameter delete_option + - Model VirtualMachineUpdate has a new parameter user_data + - Model VirtualMachineUpdate has a new parameter scheduled_events_profile + - Model NetworkProfile has a new parameter network_api_version + - Model NetworkProfile has a new parameter network_interface_configurations + - Model VirtualMachine has a new parameter user_data + - Model VirtualMachine has a new parameter scheduled_events_profile + - Model PatchSettings has a new parameter assessment_mode + - Model VirtualMachineScaleSetUpdateNetworkConfiguration has a new parameter delete_option + - Model VirtualMachineScaleSetNetworkProfile has a new parameter network_api_version + - Added operation group RestorePointCollectionsOperations + - Added operation group RestorePointsOperations + +**Breaking changes** + + - Operation VirtualMachineScaleSetsOperations.get has a new signature + - Model PurchasePlan no longer has parameter promotion_code + ## 20.0.0 (2021-04-06) **Features** diff --git a/sdk/compute/azure-mgmt-compute/_meta.json b/sdk/compute/azure-mgmt-compute/_meta.json index 85b6a0aa2025..82a3ac28882f 100644 --- a/sdk/compute/azure-mgmt-compute/_meta.json +++ b/sdk/compute/azure-mgmt-compute/_meta.json @@ -1,8 +1,11 @@ { - "autorest": "3.0.6369", - "use": "@autorest/python@5.6.2", - "commit": "b79c669038a6932848bf402578a4bceb2e9f329c", + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.0", + "@autorest/modelerfour@4.19.1" + ], + "commit": "f69f2e8053ac8ae352b11c33655234dea4cf4cfd", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/compute/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.2 --version=3.0.6369", + "autorest_command": "autorest specification/compute/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2", "readme": "specification/compute/resource-manager/readme.md" } \ No newline at end of file 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 5f35866b1065..e774e41e941a 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 @@ -23,6 +23,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse class _SDKClient(object): def __init__(self, *args, **kwargs): @@ -60,9 +61,6 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient): LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { None: DEFAULT_API_VERSION, - 'availability_sets': '2020-12-01', - 'dedicated_host_groups': '2020-12-01', - 'dedicated_hosts': '2020-12-01', 'disk_accesses': '2020-12-01', 'disk_encryption_sets': '2020-12-01', 'disk_restore_point': '2020-12-01', @@ -73,30 +71,11 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient): 'gallery_image_versions': '2020-09-30', 'gallery_images': '2020-09-30', 'gallery_sharing_profile': '2020-09-30', - 'images': '2020-12-01', - 'log_analytics': '2020-12-01', - 'operations': '2020-12-01', - 'proximity_placement_groups': '2020-12-01', 'resource_skus': '2019-04-01', 'shared_galleries': '2020-09-30', 'shared_gallery_image_versions': '2020-09-30', 'shared_gallery_images': '2020-09-30', 'snapshots': '2020-12-01', - 'ssh_public_keys': '2020-12-01', - 'usage': '2020-12-01', - 'virtual_machine_extension_images': '2020-12-01', - 'virtual_machine_extensions': '2020-12-01', - 'virtual_machine_images': '2020-12-01', - 'virtual_machine_images_edge_zone': '2020-12-01', - 'virtual_machine_run_commands': '2020-12-01', - 'virtual_machine_scale_set_extensions': '2020-12-01', - 'virtual_machine_scale_set_rolling_upgrades': '2020-12-01', - 'virtual_machine_scale_set_vm_extensions': '2020-12-01', - 'virtual_machine_scale_set_vm_run_commands': '2020-12-01', - 'virtual_machine_scale_set_vms': '2020-12-01', - 'virtual_machine_scale_sets': '2020-12-01', - 'virtual_machine_sizes': '2020-12-01', - 'virtual_machines': '2020-12-01', }}, _PROFILE_TAG + " latest" ) @@ -235,6 +214,7 @@ def availability_sets(self): * 2019-12-01: :class:`AvailabilitySetsOperations` * 2020-06-01: :class:`AvailabilitySetsOperations` * 2020-12-01: :class:`AvailabilitySetsOperations` + * 2021-03-01: :class:`AvailabilitySetsOperations` """ api_version = self._get_api_version('availability_sets') if api_version == '2015-06-15': @@ -263,6 +243,8 @@ def availability_sets(self): from .v2020_06_01.operations import AvailabilitySetsOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import AvailabilitySetsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import AvailabilitySetsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'availability_sets'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -353,6 +335,7 @@ def dedicated_host_groups(self): * 2019-12-01: :class:`DedicatedHostGroupsOperations` * 2020-06-01: :class:`DedicatedHostGroupsOperations` * 2020-12-01: :class:`DedicatedHostGroupsOperations` + * 2021-03-01: :class:`DedicatedHostGroupsOperations` """ api_version = self._get_api_version('dedicated_host_groups') if api_version == '2019-03-01': @@ -365,6 +348,8 @@ def dedicated_host_groups(self): from .v2020_06_01.operations import DedicatedHostGroupsOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import DedicatedHostGroupsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import DedicatedHostGroupsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'dedicated_host_groups'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -378,6 +363,7 @@ def dedicated_hosts(self): * 2019-12-01: :class:`DedicatedHostsOperations` * 2020-06-01: :class:`DedicatedHostsOperations` * 2020-12-01: :class:`DedicatedHostsOperations` + * 2021-03-01: :class:`DedicatedHostsOperations` """ api_version = self._get_api_version('dedicated_hosts') if api_version == '2019-03-01': @@ -390,6 +376,8 @@ def dedicated_hosts(self): from .v2020_06_01.operations import DedicatedHostsOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import DedicatedHostsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import DedicatedHostsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'dedicated_hosts'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -653,6 +641,7 @@ def images(self): * 2019-12-01: :class:`ImagesOperations` * 2020-06-01: :class:`ImagesOperations` * 2020-12-01: :class:`ImagesOperations` + * 2021-03-01: :class:`ImagesOperations` """ api_version = self._get_api_version('images') if api_version == '2016-04-30-preview': @@ -677,6 +666,8 @@ def images(self): from .v2020_06_01.operations import ImagesOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import ImagesOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import ImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'images'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -694,6 +685,7 @@ def log_analytics(self): * 2019-12-01: :class:`LogAnalyticsOperations` * 2020-06-01: :class:`LogAnalyticsOperations` * 2020-12-01: :class:`LogAnalyticsOperations` + * 2021-03-01: :class:`LogAnalyticsOperations` """ api_version = self._get_api_version('log_analytics') if api_version == '2017-12-01': @@ -714,6 +706,8 @@ def log_analytics(self): from .v2020_06_01.operations import LogAnalyticsOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import LogAnalyticsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import LogAnalyticsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'log_analytics'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -731,6 +725,7 @@ def operations(self): * 2019-12-01: :class:`Operations` * 2020-06-01: :class:`Operations` * 2020-12-01: :class:`Operations` + * 2021-03-01: :class:`Operations` """ api_version = self._get_api_version('operations') if api_version == '2017-12-01': @@ -751,6 +746,8 @@ def operations(self): from .v2020_06_01.operations import Operations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import Operations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import Operations as OperationClass else: raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -767,6 +764,7 @@ def proximity_placement_groups(self): * 2019-12-01: :class:`ProximityPlacementGroupsOperations` * 2020-06-01: :class:`ProximityPlacementGroupsOperations` * 2020-12-01: :class:`ProximityPlacementGroupsOperations` + * 2021-03-01: :class:`ProximityPlacementGroupsOperations` """ api_version = self._get_api_version('proximity_placement_groups') if api_version == '2018-04-01': @@ -785,6 +783,8 @@ def proximity_placement_groups(self): from .v2020_06_01.operations import ProximityPlacementGroupsOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import ProximityPlacementGroupsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import ProximityPlacementGroupsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'proximity_placement_groups'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -808,6 +808,32 @@ def resource_skus(self): raise ValueError("API version {} does not have operation group 'resource_skus'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + @property + def restore_point_collections(self): + """Instance depends on the API version: + + * 2021-03-01: :class:`RestorePointCollectionsOperations` + """ + api_version = self._get_api_version('restore_point_collections') + if api_version == '2021-03-01': + from .v2021_03_01.operations import RestorePointCollectionsOperations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'restore_point_collections'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def restore_points(self): + """Instance depends on the API version: + + * 2021-03-01: :class:`RestorePointsOperations` + """ + api_version = self._get_api_version('restore_points') + if api_version == '2021-03-01': + from .v2021_03_01.operations import RestorePointsOperations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'restore_points'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + @property def shared_galleries(self): """Instance depends on the API version: @@ -900,6 +926,7 @@ def ssh_public_keys(self): * 2019-12-01: :class:`SshPublicKeysOperations` * 2020-06-01: :class:`SshPublicKeysOperations` * 2020-12-01: :class:`SshPublicKeysOperations` + * 2021-03-01: :class:`SshPublicKeysOperations` """ api_version = self._get_api_version('ssh_public_keys') if api_version == '2019-12-01': @@ -908,6 +935,8 @@ def ssh_public_keys(self): from .v2020_06_01.operations import SshPublicKeysOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import SshPublicKeysOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import SshPublicKeysOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'ssh_public_keys'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -929,6 +958,7 @@ def usage(self): * 2019-12-01: :class:`UsageOperations` * 2020-06-01: :class:`UsageOperations` * 2020-12-01: :class:`UsageOperations` + * 2021-03-01: :class:`UsageOperations` """ api_version = self._get_api_version('usage') if api_version == '2015-06-15': @@ -957,6 +987,8 @@ def usage(self): from .v2020_06_01.operations import UsageOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import UsageOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import UsageOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'usage'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -978,6 +1010,7 @@ def virtual_machine_extension_images(self): * 2019-12-01: :class:`VirtualMachineExtensionImagesOperations` * 2020-06-01: :class:`VirtualMachineExtensionImagesOperations` * 2020-12-01: :class:`VirtualMachineExtensionImagesOperations` + * 2021-03-01: :class:`VirtualMachineExtensionImagesOperations` """ api_version = self._get_api_version('virtual_machine_extension_images') if api_version == '2015-06-15': @@ -1006,6 +1039,8 @@ def virtual_machine_extension_images(self): from .v2020_06_01.operations import VirtualMachineExtensionImagesOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachineExtensionImagesOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import VirtualMachineExtensionImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_extension_images'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1027,6 +1062,7 @@ def virtual_machine_extensions(self): * 2019-12-01: :class:`VirtualMachineExtensionsOperations` * 2020-06-01: :class:`VirtualMachineExtensionsOperations` * 2020-12-01: :class:`VirtualMachineExtensionsOperations` + * 2021-03-01: :class:`VirtualMachineExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_extensions') if api_version == '2015-06-15': @@ -1055,6 +1091,8 @@ def virtual_machine_extensions(self): from .v2020_06_01.operations import VirtualMachineExtensionsOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachineExtensionsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import VirtualMachineExtensionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_extensions'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1076,6 +1114,7 @@ def virtual_machine_images(self): * 2019-12-01: :class:`VirtualMachineImagesOperations` * 2020-06-01: :class:`VirtualMachineImagesOperations` * 2020-12-01: :class:`VirtualMachineImagesOperations` + * 2021-03-01: :class:`VirtualMachineImagesOperations` """ api_version = self._get_api_version('virtual_machine_images') if api_version == '2015-06-15': @@ -1104,6 +1143,8 @@ def virtual_machine_images(self): from .v2020_06_01.operations import VirtualMachineImagesOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachineImagesOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import VirtualMachineImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_images'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1113,10 +1154,13 @@ def virtual_machine_images_edge_zone(self): """Instance depends on the API version: * 2020-12-01: :class:`VirtualMachineImagesEdgeZoneOperations` + * 2021-03-01: :class:`VirtualMachineImagesEdgeZoneOperations` """ api_version = self._get_api_version('virtual_machine_images_edge_zone') if api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachineImagesEdgeZoneOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import VirtualMachineImagesEdgeZoneOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_images_edge_zone'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1135,6 +1179,7 @@ def virtual_machine_run_commands(self): * 2019-12-01: :class:`VirtualMachineRunCommandsOperations` * 2020-06-01: :class:`VirtualMachineRunCommandsOperations` * 2020-12-01: :class:`VirtualMachineRunCommandsOperations` + * 2021-03-01: :class:`VirtualMachineRunCommandsOperations` """ api_version = self._get_api_version('virtual_machine_run_commands') if api_version == '2017-03-30': @@ -1157,6 +1202,8 @@ def virtual_machine_run_commands(self): from .v2020_06_01.operations import VirtualMachineRunCommandsOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachineRunCommandsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import VirtualMachineRunCommandsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_run_commands'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1175,6 +1222,7 @@ def virtual_machine_scale_set_extensions(self): * 2019-12-01: :class:`VirtualMachineScaleSetExtensionsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetExtensionsOperations` * 2020-12-01: :class:`VirtualMachineScaleSetExtensionsOperations` + * 2021-03-01: :class:`VirtualMachineScaleSetExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_extensions') if api_version == '2017-03-30': @@ -1197,6 +1245,8 @@ def virtual_machine_scale_set_extensions(self): from .v2020_06_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_extensions'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1215,6 +1265,7 @@ def virtual_machine_scale_set_rolling_upgrades(self): * 2019-12-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` * 2020-06-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` * 2020-12-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` + * 2021-03-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_rolling_upgrades') if api_version == '2017-03-30': @@ -1237,6 +1288,8 @@ def virtual_machine_scale_set_rolling_upgrades(self): from .v2020_06_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_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)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1249,6 +1302,7 @@ def virtual_machine_scale_set_vm_extensions(self): * 2019-12-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` * 2020-12-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` + * 2021-03-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vm_extensions') if api_version == '2019-07-01': @@ -1259,6 +1313,8 @@ def virtual_machine_scale_set_vm_extensions(self): from .v2020_06_01.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_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)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1269,12 +1325,15 @@ def virtual_machine_scale_set_vm_run_commands(self): * 2020-06-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` * 2020-12-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` + * 2021-03-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 == '2020-12-01': from .v2020_12_01.operations import VirtualMachineScaleSetVMRunCommandsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_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)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1296,6 +1355,7 @@ def virtual_machine_scale_set_vms(self): * 2019-12-01: :class:`VirtualMachineScaleSetVMsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetVMsOperations` * 2020-12-01: :class:`VirtualMachineScaleSetVMsOperations` + * 2021-03-01: :class:`VirtualMachineScaleSetVMsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vms') if api_version == '2015-06-15': @@ -1324,6 +1384,8 @@ def virtual_machine_scale_set_vms(self): from .v2020_06_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import VirtualMachineScaleSetVMsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_set_vms'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1345,6 +1407,7 @@ def virtual_machine_scale_sets(self): * 2019-12-01: :class:`VirtualMachineScaleSetsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetsOperations` * 2020-12-01: :class:`VirtualMachineScaleSetsOperations` + * 2021-03-01: :class:`VirtualMachineScaleSetsOperations` """ api_version = self._get_api_version('virtual_machine_scale_sets') if api_version == '2015-06-15': @@ -1373,6 +1436,8 @@ def virtual_machine_scale_sets(self): from .v2020_06_01.operations import VirtualMachineScaleSetsOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachineScaleSetsOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import VirtualMachineScaleSetsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_sets'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1394,6 +1459,7 @@ def virtual_machine_sizes(self): * 2019-12-01: :class:`VirtualMachineSizesOperations` * 2020-06-01: :class:`VirtualMachineSizesOperations` * 2020-12-01: :class:`VirtualMachineSizesOperations` + * 2021-03-01: :class:`VirtualMachineSizesOperations` """ api_version = self._get_api_version('virtual_machine_sizes') if api_version == '2015-06-15': @@ -1422,6 +1488,8 @@ def virtual_machine_sizes(self): from .v2020_06_01.operations import VirtualMachineSizesOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachineSizesOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import VirtualMachineSizesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_sizes'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1443,6 +1511,7 @@ def virtual_machines(self): * 2019-12-01: :class:`VirtualMachinesOperations` * 2020-06-01: :class:`VirtualMachinesOperations` * 2020-12-01: :class:`VirtualMachinesOperations` + * 2021-03-01: :class:`VirtualMachinesOperations` """ api_version = self._get_api_version('virtual_machines') if api_version == '2015-06-15': @@ -1471,6 +1540,8 @@ def virtual_machines(self): from .v2020_06_01.operations import VirtualMachinesOperations as OperationClass elif api_version == '2020-12-01': from .v2020_12_01.operations import VirtualMachinesOperations as OperationClass + elif api_version == '2021-03-01': + from .v2021_03_01.operations import VirtualMachinesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machines'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py index f6add466b56c..0ac27bb117d3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py @@ -5,4 +5,4 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "20.0.0" +VERSION = "21.0.0" 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 9e5fe729b168..0b1fc4316ff0 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 @@ -11,6 +11,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin @@ -58,9 +59,6 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient): LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { None: DEFAULT_API_VERSION, - 'availability_sets': '2020-12-01', - 'dedicated_host_groups': '2020-12-01', - 'dedicated_hosts': '2020-12-01', 'disk_accesses': '2020-12-01', 'disk_encryption_sets': '2020-12-01', 'disk_restore_point': '2020-12-01', @@ -71,30 +69,11 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient): 'gallery_image_versions': '2020-09-30', 'gallery_images': '2020-09-30', 'gallery_sharing_profile': '2020-09-30', - 'images': '2020-12-01', - 'log_analytics': '2020-12-01', - 'operations': '2020-12-01', - 'proximity_placement_groups': '2020-12-01', 'resource_skus': '2019-04-01', 'shared_galleries': '2020-09-30', 'shared_gallery_image_versions': '2020-09-30', 'shared_gallery_images': '2020-09-30', 'snapshots': '2020-12-01', - 'ssh_public_keys': '2020-12-01', - 'usage': '2020-12-01', - 'virtual_machine_extension_images': '2020-12-01', - 'virtual_machine_extensions': '2020-12-01', - 'virtual_machine_images': '2020-12-01', - 'virtual_machine_images_edge_zone': '2020-12-01', - 'virtual_machine_run_commands': '2020-12-01', - 'virtual_machine_scale_set_extensions': '2020-12-01', - 'virtual_machine_scale_set_rolling_upgrades': '2020-12-01', - 'virtual_machine_scale_set_vm_extensions': '2020-12-01', - 'virtual_machine_scale_set_vm_run_commands': '2020-12-01', - 'virtual_machine_scale_set_vms': '2020-12-01', - 'virtual_machine_scale_sets': '2020-12-01', - 'virtual_machine_sizes': '2020-12-01', - 'virtual_machines': '2020-12-01', }}, _PROFILE_TAG + " latest" ) @@ -233,6 +212,7 @@ def availability_sets(self): * 2019-12-01: :class:`AvailabilitySetsOperations` * 2020-06-01: :class:`AvailabilitySetsOperations` * 2020-12-01: :class:`AvailabilitySetsOperations` + * 2021-03-01: :class:`AvailabilitySetsOperations` """ api_version = self._get_api_version('availability_sets') if api_version == '2015-06-15': @@ -261,6 +241,8 @@ def availability_sets(self): from ..v2020_06_01.aio.operations import AvailabilitySetsOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import AvailabilitySetsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import AvailabilitySetsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'availability_sets'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -351,6 +333,7 @@ def dedicated_host_groups(self): * 2019-12-01: :class:`DedicatedHostGroupsOperations` * 2020-06-01: :class:`DedicatedHostGroupsOperations` * 2020-12-01: :class:`DedicatedHostGroupsOperations` + * 2021-03-01: :class:`DedicatedHostGroupsOperations` """ api_version = self._get_api_version('dedicated_host_groups') if api_version == '2019-03-01': @@ -363,6 +346,8 @@ def dedicated_host_groups(self): from ..v2020_06_01.aio.operations import DedicatedHostGroupsOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import DedicatedHostGroupsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import DedicatedHostGroupsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'dedicated_host_groups'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -376,6 +361,7 @@ def dedicated_hosts(self): * 2019-12-01: :class:`DedicatedHostsOperations` * 2020-06-01: :class:`DedicatedHostsOperations` * 2020-12-01: :class:`DedicatedHostsOperations` + * 2021-03-01: :class:`DedicatedHostsOperations` """ api_version = self._get_api_version('dedicated_hosts') if api_version == '2019-03-01': @@ -388,6 +374,8 @@ def dedicated_hosts(self): from ..v2020_06_01.aio.operations import DedicatedHostsOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import DedicatedHostsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import DedicatedHostsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'dedicated_hosts'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -651,6 +639,7 @@ def images(self): * 2019-12-01: :class:`ImagesOperations` * 2020-06-01: :class:`ImagesOperations` * 2020-12-01: :class:`ImagesOperations` + * 2021-03-01: :class:`ImagesOperations` """ api_version = self._get_api_version('images') if api_version == '2016-04-30-preview': @@ -675,6 +664,8 @@ def images(self): from ..v2020_06_01.aio.operations import ImagesOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import ImagesOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import ImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'images'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -692,6 +683,7 @@ def log_analytics(self): * 2019-12-01: :class:`LogAnalyticsOperations` * 2020-06-01: :class:`LogAnalyticsOperations` * 2020-12-01: :class:`LogAnalyticsOperations` + * 2021-03-01: :class:`LogAnalyticsOperations` """ api_version = self._get_api_version('log_analytics') if api_version == '2017-12-01': @@ -712,6 +704,8 @@ def log_analytics(self): from ..v2020_06_01.aio.operations import LogAnalyticsOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import LogAnalyticsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import LogAnalyticsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'log_analytics'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -729,6 +723,7 @@ def operations(self): * 2019-12-01: :class:`Operations` * 2020-06-01: :class:`Operations` * 2020-12-01: :class:`Operations` + * 2021-03-01: :class:`Operations` """ api_version = self._get_api_version('operations') if api_version == '2017-12-01': @@ -749,6 +744,8 @@ def operations(self): from ..v2020_06_01.aio.operations import Operations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import Operations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import Operations as OperationClass else: raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -765,6 +762,7 @@ def proximity_placement_groups(self): * 2019-12-01: :class:`ProximityPlacementGroupsOperations` * 2020-06-01: :class:`ProximityPlacementGroupsOperations` * 2020-12-01: :class:`ProximityPlacementGroupsOperations` + * 2021-03-01: :class:`ProximityPlacementGroupsOperations` """ api_version = self._get_api_version('proximity_placement_groups') if api_version == '2018-04-01': @@ -783,6 +781,8 @@ def proximity_placement_groups(self): from ..v2020_06_01.aio.operations import ProximityPlacementGroupsOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import ProximityPlacementGroupsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import ProximityPlacementGroupsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'proximity_placement_groups'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -806,6 +806,32 @@ def resource_skus(self): raise ValueError("API version {} does not have operation group 'resource_skus'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + @property + def restore_point_collections(self): + """Instance depends on the API version: + + * 2021-03-01: :class:`RestorePointCollectionsOperations` + """ + api_version = self._get_api_version('restore_point_collections') + if api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import RestorePointCollectionsOperations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'restore_point_collections'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def restore_points(self): + """Instance depends on the API version: + + * 2021-03-01: :class:`RestorePointsOperations` + """ + api_version = self._get_api_version('restore_points') + if api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import RestorePointsOperations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'restore_points'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + @property def shared_galleries(self): """Instance depends on the API version: @@ -898,6 +924,7 @@ def ssh_public_keys(self): * 2019-12-01: :class:`SshPublicKeysOperations` * 2020-06-01: :class:`SshPublicKeysOperations` * 2020-12-01: :class:`SshPublicKeysOperations` + * 2021-03-01: :class:`SshPublicKeysOperations` """ api_version = self._get_api_version('ssh_public_keys') if api_version == '2019-12-01': @@ -906,6 +933,8 @@ def ssh_public_keys(self): from ..v2020_06_01.aio.operations import SshPublicKeysOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import SshPublicKeysOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import SshPublicKeysOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'ssh_public_keys'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -927,6 +956,7 @@ def usage(self): * 2019-12-01: :class:`UsageOperations` * 2020-06-01: :class:`UsageOperations` * 2020-12-01: :class:`UsageOperations` + * 2021-03-01: :class:`UsageOperations` """ api_version = self._get_api_version('usage') if api_version == '2015-06-15': @@ -955,6 +985,8 @@ def usage(self): from ..v2020_06_01.aio.operations import UsageOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import UsageOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import UsageOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'usage'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -976,6 +1008,7 @@ def virtual_machine_extension_images(self): * 2019-12-01: :class:`VirtualMachineExtensionImagesOperations` * 2020-06-01: :class:`VirtualMachineExtensionImagesOperations` * 2020-12-01: :class:`VirtualMachineExtensionImagesOperations` + * 2021-03-01: :class:`VirtualMachineExtensionImagesOperations` """ api_version = self._get_api_version('virtual_machine_extension_images') if api_version == '2015-06-15': @@ -1004,6 +1037,8 @@ def virtual_machine_extension_images(self): from ..v2020_06_01.aio.operations import VirtualMachineExtensionImagesOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineExtensionImagesOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import VirtualMachineExtensionImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_extension_images'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1025,6 +1060,7 @@ def virtual_machine_extensions(self): * 2019-12-01: :class:`VirtualMachineExtensionsOperations` * 2020-06-01: :class:`VirtualMachineExtensionsOperations` * 2020-12-01: :class:`VirtualMachineExtensionsOperations` + * 2021-03-01: :class:`VirtualMachineExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_extensions') if api_version == '2015-06-15': @@ -1053,6 +1089,8 @@ def virtual_machine_extensions(self): from ..v2020_06_01.aio.operations import VirtualMachineExtensionsOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineExtensionsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import VirtualMachineExtensionsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_extensions'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1074,6 +1112,7 @@ def virtual_machine_images(self): * 2019-12-01: :class:`VirtualMachineImagesOperations` * 2020-06-01: :class:`VirtualMachineImagesOperations` * 2020-12-01: :class:`VirtualMachineImagesOperations` + * 2021-03-01: :class:`VirtualMachineImagesOperations` """ api_version = self._get_api_version('virtual_machine_images') if api_version == '2015-06-15': @@ -1102,6 +1141,8 @@ def virtual_machine_images(self): from ..v2020_06_01.aio.operations import VirtualMachineImagesOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineImagesOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import VirtualMachineImagesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_images'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1111,10 +1152,13 @@ def virtual_machine_images_edge_zone(self): """Instance depends on the API version: * 2020-12-01: :class:`VirtualMachineImagesEdgeZoneOperations` + * 2021-03-01: :class:`VirtualMachineImagesEdgeZoneOperations` """ api_version = self._get_api_version('virtual_machine_images_edge_zone') if api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineImagesEdgeZoneOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_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)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1133,6 +1177,7 @@ def virtual_machine_run_commands(self): * 2019-12-01: :class:`VirtualMachineRunCommandsOperations` * 2020-06-01: :class:`VirtualMachineRunCommandsOperations` * 2020-12-01: :class:`VirtualMachineRunCommandsOperations` + * 2021-03-01: :class:`VirtualMachineRunCommandsOperations` """ api_version = self._get_api_version('virtual_machine_run_commands') if api_version == '2017-03-30': @@ -1155,6 +1200,8 @@ def virtual_machine_run_commands(self): from ..v2020_06_01.aio.operations import VirtualMachineRunCommandsOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineRunCommandsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import VirtualMachineRunCommandsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_run_commands'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1173,6 +1220,7 @@ def virtual_machine_scale_set_extensions(self): * 2019-12-01: :class:`VirtualMachineScaleSetExtensionsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetExtensionsOperations` * 2020-12-01: :class:`VirtualMachineScaleSetExtensionsOperations` + * 2021-03-01: :class:`VirtualMachineScaleSetExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_extensions') if api_version == '2017-03-30': @@ -1195,6 +1243,8 @@ def virtual_machine_scale_set_extensions(self): from ..v2020_06_01.aio.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineScaleSetExtensionsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_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)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1213,6 +1263,7 @@ def virtual_machine_scale_set_rolling_upgrades(self): * 2019-12-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` * 2020-06-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` * 2020-12-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` + * 2021-03-01: :class:`VirtualMachineScaleSetRollingUpgradesOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_rolling_upgrades') if api_version == '2017-03-30': @@ -1235,6 +1286,8 @@ def virtual_machine_scale_set_rolling_upgrades(self): from ..v2020_06_01.aio.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineScaleSetRollingUpgradesOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_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)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1247,6 +1300,7 @@ def virtual_machine_scale_set_vm_extensions(self): * 2019-12-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` * 2020-12-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` + * 2021-03-01: :class:`VirtualMachineScaleSetVMExtensionsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vm_extensions') if api_version == '2019-07-01': @@ -1257,6 +1311,8 @@ def virtual_machine_scale_set_vm_extensions(self): from ..v2020_06_01.aio.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineScaleSetVMExtensionsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_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)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1267,12 +1323,15 @@ def virtual_machine_scale_set_vm_run_commands(self): * 2020-06-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` * 2020-12-01: :class:`VirtualMachineScaleSetVMRunCommandsOperations` + * 2021-03-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 == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineScaleSetVMRunCommandsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_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)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1294,6 +1353,7 @@ def virtual_machine_scale_set_vms(self): * 2019-12-01: :class:`VirtualMachineScaleSetVMsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetVMsOperations` * 2020-12-01: :class:`VirtualMachineScaleSetVMsOperations` + * 2021-03-01: :class:`VirtualMachineScaleSetVMsOperations` """ api_version = self._get_api_version('virtual_machine_scale_set_vms') if api_version == '2015-06-15': @@ -1322,6 +1382,8 @@ def virtual_machine_scale_set_vms(self): from ..v2020_06_01.aio.operations import VirtualMachineScaleSetVMsOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineScaleSetVMsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_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)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1343,6 +1405,7 @@ def virtual_machine_scale_sets(self): * 2019-12-01: :class:`VirtualMachineScaleSetsOperations` * 2020-06-01: :class:`VirtualMachineScaleSetsOperations` * 2020-12-01: :class:`VirtualMachineScaleSetsOperations` + * 2021-03-01: :class:`VirtualMachineScaleSetsOperations` """ api_version = self._get_api_version('virtual_machine_scale_sets') if api_version == '2015-06-15': @@ -1371,6 +1434,8 @@ def virtual_machine_scale_sets(self): from ..v2020_06_01.aio.operations import VirtualMachineScaleSetsOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineScaleSetsOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import VirtualMachineScaleSetsOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_scale_sets'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1392,6 +1457,7 @@ def virtual_machine_sizes(self): * 2019-12-01: :class:`VirtualMachineSizesOperations` * 2020-06-01: :class:`VirtualMachineSizesOperations` * 2020-12-01: :class:`VirtualMachineSizesOperations` + * 2021-03-01: :class:`VirtualMachineSizesOperations` """ api_version = self._get_api_version('virtual_machine_sizes') if api_version == '2015-06-15': @@ -1420,6 +1486,8 @@ def virtual_machine_sizes(self): from ..v2020_06_01.aio.operations import VirtualMachineSizesOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachineSizesOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import VirtualMachineSizesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machine_sizes'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1441,6 +1509,7 @@ def virtual_machines(self): * 2019-12-01: :class:`VirtualMachinesOperations` * 2020-06-01: :class:`VirtualMachinesOperations` * 2020-12-01: :class:`VirtualMachinesOperations` + * 2021-03-01: :class:`VirtualMachinesOperations` """ api_version = self._get_api_version('virtual_machines') if api_version == '2015-06-15': @@ -1469,6 +1538,8 @@ def virtual_machines(self): from ..v2020_06_01.aio.operations import VirtualMachinesOperations as OperationClass elif api_version == '2020-12-01': from ..v2020_12_01.aio.operations import VirtualMachinesOperations as OperationClass + elif api_version == '2021-03-01': + from ..v2021_03_01.aio.operations import VirtualMachinesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'virtual_machines'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_compute_management_client.py index c94784b71eac..dfc7a60fc0eb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import AvailabilitySetsOperations @@ -96,6 +97,24 @@ def __init__( self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_configuration.py index 99872f3fd466..0b076e9cc55b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_metadata.json index 2ce0dfb87bf3..d52fd2dc4248 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -107,11 +107,5 @@ "virtual_machines": "VirtualMachinesOperations", "virtual_machine_scale_sets": "VirtualMachineScaleSetsOperations", "virtual_machine_scale_set_vms": "VirtualMachineScaleSetVMsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/_compute_management_client.py index e31ce000b06c..a93c66696269 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -93,6 +94,23 @@ def __init__( self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/_configuration.py index a648bb88567e..fffef49d5293 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_availability_sets_operations.py index ab37f2dd0810..8d0ca3b6bdda 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -111,7 +111,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: """Delete an availability set. @@ -171,7 +171,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -228,7 +228,7 @@ async def get( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -299,7 +299,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_usage_operations.py index f44d7d136605..d3ced40d6b43 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_extension_images_operations.py index f5754a48eaed..aa92fab0ab49 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_extensions_operations.py index 206638ebcf9b..be744d1403ba 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -367,7 +367,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete the extension. @@ -379,8 +379,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -440,7 +440,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_images_operations.py index 5c241a4da6a4..98a2f2edffaf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_scale_set_vms_operations.py index b1adbe91998c..c29ffc5a3b3f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -48,7 +48,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -99,7 +99,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -111,8 +111,8 @@ async def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -171,7 +171,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -222,7 +222,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -236,8 +236,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -296,7 +296,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -347,7 +347,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a virtual machine from a VM scale set. @@ -359,8 +359,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -419,7 +419,7 @@ async def get( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -481,7 +481,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -545,7 +545,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -635,7 +635,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -686,7 +686,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -700,8 +700,8 @@ async def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -760,7 +760,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -811,7 +811,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Restarts a virtual machine in a VM scale set. @@ -823,8 +823,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -883,7 +883,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -934,7 +934,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts a virtual machine in a VM scale set. @@ -946,8 +946,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_scale_sets_operations.py index 2cf1eb41c21c..c06716b92e3d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -175,7 +175,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -224,7 +224,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a VM scale set. @@ -234,8 +234,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -291,7 +291,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -350,7 +350,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -408,7 +408,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -422,8 +422,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -481,7 +481,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -536,7 +536,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes virtual machines in a VM scale set. @@ -548,8 +548,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -606,7 +606,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -663,7 +663,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -732,7 +732,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -802,7 +802,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -878,7 +878,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -936,7 +936,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -950,8 +950,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1009,7 +1009,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1067,7 +1067,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Restarts one or more virtual machines in a VM scale set. @@ -1079,8 +1079,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1138,7 +1138,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1196,7 +1196,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts one or more virtual machines in a VM scale set. @@ -1208,8 +1208,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1267,7 +1267,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1322,7 +1322,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1334,8 +1334,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1392,7 +1392,7 @@ async def _reimage_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1441,7 +1441,7 @@ async def begin_reimage( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set. @@ -1451,8 +1451,8 @@ async def begin_reimage( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_sizes_operations.py index 2c88c09a7060..3506ffe29801 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machine_sizes_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machines_operations.py index 26f6b3ec5244..4acc491b740c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/aio/operations/_virtual_machines_operations.py @@ -48,7 +48,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -103,7 +103,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -116,8 +116,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -175,7 +175,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -232,7 +232,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. @@ -244,8 +244,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -302,7 +302,7 @@ async def _delete_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -351,7 +351,7 @@ async def begin_delete( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete a virtual machine. @@ -361,8 +361,8 @@ async def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -419,7 +419,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -481,7 +481,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -530,7 +530,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -541,8 +541,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -598,7 +598,7 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.OperationStatusResponse": """Sets the state of the virtual machine to generalized. @@ -655,7 +655,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -725,7 +725,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -794,7 +794,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -869,7 +869,7 @@ async def _power_off_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -918,7 +918,7 @@ async def begin_power_off( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -929,8 +929,8 @@ async def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -986,7 +986,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1035,7 +1035,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to restart a virtual machine. @@ -1045,8 +1045,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1102,7 +1102,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1151,7 +1151,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to start a virtual machine. @@ -1161,8 +1161,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1218,7 +1218,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1267,7 +1267,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1277,8 +1277,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_compute_management_client_enums.py index b1f0315e9e09..a7c6a9eb59e7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_compute_management_client_enums.py @@ -101,8 +101,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. + see `Sizes for virtual machines + `_. :code:`
`:code:`
` The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: :code:`
`:code:`
` `List all available virtual machine sizes in an availability set diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models.py index 548c3401a287..783545e5cc9f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models.py @@ -17,8 +17,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -328,7 +328,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -520,11 +520,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
`:code:`
` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
`:code:`
` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
`:code:`
` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
`:code:`
` `List all available virtual + machine sizes in an availability set `_ :code:`
`:code:`
` `List all available virtual machine sizes in a region `_ @@ -972,9 +972,7 @@ class OSProfile(msrest.serialization.Model): :code:`
`:code:`
` **Max-length (Windows):** 15 characters :code:`
`:code:`
` **Max-length (Linux):** 64 characters. :code:`
`:code:`
` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
`:code:`
` **Windows-only restriction:** Cannot end in "." @@ -985,12 +983,11 @@ class OSProfile(msrest.serialization.Model): :code:`
`:code:`
` **Minimum-length (Linux):** 1 character :code:`
`:code:`
` **Max-length (Linux):** 64 characters :code:`
`:code:`
` **Max-length (Windows):** 20 characters :code:`
`:code:`
`:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1002,30 +999,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2015_06_15.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2015_06_15.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -1182,8 +1177,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -1211,13 +1205,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2015_06_15.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2015_06_15.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2015_06_15.models.DataDisk] """ @@ -1353,9 +1347,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -1464,11 +1458,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2015_06_15.models.SubResource @@ -1476,15 +1469,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -1605,7 +1597,7 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -1653,10 +1645,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -1849,10 +1841,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -2125,9 +2117,9 @@ class VirtualMachineScaleSetExtension(SubResource): upgraded across minor versions. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: Json formatted protected settings for the extension. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -2496,12 +2488,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -2513,12 +2504,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: A base-64 encoded string of custom data. :type custom_data: str @@ -2704,25 +2694,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2015_06_15.models.SubResource :param provisioning_state: The provisioning state, which only appears in the response. :type provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -3129,9 +3117,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models_py3.py index d06d24d819d9..3ce4fa7ce0c3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -22,8 +22,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -363,7 +363,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -373,7 +373,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): def __init__( self, *, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(ComputeLongRunningOperationProperties, self).__init__(**kwargs) @@ -574,11 +574,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -1072,9 +1072,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -1085,12 +1083,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1102,30 +1099,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2015_06_15.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2015_06_15.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -1305,8 +1300,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -1337,13 +1331,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2015_06_15.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2015_06_15.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2015_06_15.models.DataDisk] """ @@ -1494,9 +1488,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -1613,11 +1607,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2015_06_15.models.SubResource @@ -1625,15 +1618,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -1773,7 +1765,7 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -1785,7 +1777,7 @@ def __init__( self, *, id: Optional[str] = None, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(VirtualMachineCaptureResult, self).__init__(id=id, **kwargs) @@ -1824,10 +1816,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -1869,8 +1861,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -2049,10 +2041,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -2075,8 +2067,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -2367,9 +2359,9 @@ class VirtualMachineScaleSetExtension(SubResource): upgraded across minor versions. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: Json formatted protected settings for the extension. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -2399,8 +2391,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineScaleSetExtension, self).__init__(id=id, **kwargs) @@ -2779,12 +2771,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -2796,12 +2787,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: A base-64 encoded string of custom data. :type custom_data: str @@ -2998,25 +2988,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2015_06_15.models.SubResource :param provisioning_state: The provisioning state, which only appears in the response. :type provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -3473,9 +3461,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_extensions_operations.py index 55c835e09cb7..ceb3061596df 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -389,8 +389,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_scale_set_vms_operations.py index 0171a1c0c68c..1a038a903730 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_scale_set_vms_operations.py @@ -117,8 +117,8 @@ def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -244,8 +244,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -369,8 +369,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -715,8 +715,8 @@ def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -840,8 +840,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -965,8 +965,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_scale_sets_operations.py index f476f12eb16e..fbb5d540c66e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -242,8 +242,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -433,8 +433,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -561,8 +561,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -969,8 +969,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1100,8 +1100,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1231,8 +1231,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1359,8 +1359,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1478,8 +1478,8 @@ def begin_reimage( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machines_operations.py index 13175ca54325..f9e7a5c09c65 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machines_operations.py @@ -122,8 +122,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -252,8 +252,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2015_06_15.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -371,8 +371,8 @@ def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -554,8 +554,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -948,8 +948,8 @@ def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1066,8 +1066,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1184,8 +1184,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1302,8 +1302,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_compute_management_client.py index 8e306e622dbd..f4bc771b3d80 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import AvailabilitySetsOperations @@ -96,6 +97,24 @@ def __init__( self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_configuration.py index d237e2ac1d5e..76cddcc0123b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_metadata.json index 22227abc83fe..0a62f84d78ec 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -107,11 +107,5 @@ "virtual_machine_sizes": "VirtualMachineSizesOperations", "virtual_machine_scale_sets": "VirtualMachineScaleSetsOperations", "virtual_machine_scale_set_vms": "VirtualMachineScaleSetVMsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file 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 new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/_compute_management_client.py index ad94a530b8f9..47b11bfacd8b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -93,6 +94,23 @@ def __init__( self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/_configuration.py index 1df89d31b659..d36ae9084780 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_availability_sets_operations.py index 6c32d5c62bb4..ef2a60f27905 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -111,7 +111,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: """Delete an availability set. @@ -171,7 +171,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -228,7 +228,7 @@ async def get( def list_by_subscription( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -300,7 +300,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -371,7 +371,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_usage_operations.py index d54775c6d70e..d64c5fb4ac71 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_extension_images_operations.py index ca5049882b36..a4660dff833b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_extensions_operations.py index ab5ba72e3819..6c7702af9c4b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -367,7 +367,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete the extension. @@ -379,8 +379,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -440,7 +440,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_images_operations.py index d702ee23bb7d..d90215796615 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_scale_set_vms_operations.py index 591f3aa14a06..ea05ea16bc61 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -48,7 +48,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -99,7 +99,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -111,8 +111,8 @@ async def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -171,7 +171,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -222,7 +222,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -236,8 +236,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -296,7 +296,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -347,7 +347,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a virtual machine from a VM scale set. @@ -359,8 +359,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -419,7 +419,7 @@ async def get( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -481,7 +481,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -545,7 +545,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -635,7 +635,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -686,7 +686,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -700,8 +700,8 @@ async def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -760,7 +760,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -811,7 +811,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Restarts a virtual machine in a VM scale set. @@ -823,8 +823,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -883,7 +883,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -934,7 +934,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts a virtual machine in a VM scale set. @@ -946,8 +946,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_scale_sets_operations.py index 739e478d21b0..d1a4325e7447 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -175,7 +175,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -224,7 +224,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a VM scale set. @@ -234,8 +234,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -291,7 +291,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -350,7 +350,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -408,7 +408,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -422,8 +422,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -481,7 +481,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -536,7 +536,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes virtual machines in a VM scale set. @@ -548,8 +548,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -606,7 +606,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -663,7 +663,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -732,7 +732,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -802,7 +802,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -878,7 +878,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -936,7 +936,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -950,8 +950,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1009,7 +1009,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1067,7 +1067,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Restarts one or more virtual machines in a VM scale set. @@ -1079,8 +1079,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1138,7 +1138,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1196,7 +1196,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts one or more virtual machines in a VM scale set. @@ -1208,8 +1208,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1267,7 +1267,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1322,7 +1322,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1334,8 +1334,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1392,7 +1392,7 @@ async def _reimage_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1441,7 +1441,7 @@ async def begin_reimage( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set. @@ -1451,8 +1451,8 @@ async def begin_reimage( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_sizes_operations.py index 8abf986603d3..187f69d6d2a8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machine_sizes_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machines_operations.py index 753a7ec15599..c9965e16871d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/aio/operations/_virtual_machines_operations.py @@ -48,7 +48,7 @@ async def get_extensions( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. @@ -111,7 +111,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -166,7 +166,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -179,8 +179,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -238,7 +238,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -295,7 +295,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. @@ -307,8 +307,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -365,7 +365,7 @@ async def _delete_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -414,7 +414,7 @@ async def begin_delete( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete a virtual machine. @@ -424,8 +424,8 @@ async def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -482,7 +482,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -544,7 +544,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -593,7 +593,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -604,8 +604,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -661,7 +661,7 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.OperationStatusResponse": """Sets the state of the virtual machine to generalized. @@ -718,7 +718,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -788,7 +788,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -857,7 +857,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -932,7 +932,7 @@ async def _power_off_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -981,7 +981,7 @@ async def begin_power_off( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -992,8 +992,8 @@ async def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1049,7 +1049,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1098,7 +1098,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to restart a virtual machine. @@ -1108,8 +1108,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1165,7 +1165,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1214,7 +1214,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to start a virtual machine. @@ -1224,8 +1224,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1281,7 +1281,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1330,7 +1330,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1340,8 +1340,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_compute_management_client_enums.py index af1fc83a2871..e2836c68ca56 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_compute_management_client_enums.py @@ -101,8 +101,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. + see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models.py index e174ebaaf8d9..08f19615d477 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models.py @@ -17,8 +17,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -328,7 +328,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -514,11 +514,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -974,9 +974,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -987,12 +985,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1004,30 +1001,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2016_03_30.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2016_03_30.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -1184,8 +1179,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -1213,13 +1207,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2016_03_30.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2016_03_30.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2016_03_30.models.DataDisk] """ @@ -1355,9 +1349,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -1468,11 +1462,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2016_03_30.models.SubResource @@ -1480,15 +1473,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -1617,7 +1609,7 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -1665,10 +1657,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -1880,10 +1872,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -2205,9 +2197,9 @@ class VirtualMachineScaleSetExtension(SubResource): upgraded across minor versions. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: Json formatted protected settings for the extension. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -2631,12 +2623,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -2648,12 +2639,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: A base-64 encoded string of custom data. :type custom_data: str @@ -2841,25 +2831,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2016_03_30.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -3276,9 +3264,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models_py3.py index 24a823ae13d3..ebada6ab315f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -22,8 +22,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -363,7 +363,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -373,7 +373,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): def __init__( self, *, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(ComputeLongRunningOperationProperties, self).__init__(**kwargs) @@ -568,11 +568,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -1074,9 +1074,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -1087,12 +1085,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1104,30 +1101,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2016_03_30.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2016_03_30.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -1307,8 +1302,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -1339,13 +1333,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2016_03_30.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2016_03_30.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2016_03_30.models.DataDisk] """ @@ -1496,9 +1490,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -1617,11 +1611,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2016_03_30.models.SubResource @@ -1629,15 +1622,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -1786,7 +1778,7 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -1798,7 +1790,7 @@ def __init__( self, *, id: Optional[str] = None, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(VirtualMachineCaptureResult, self).__init__(id=id, **kwargs) @@ -1837,10 +1829,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -1882,8 +1874,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -2083,10 +2075,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -2109,8 +2101,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -2450,9 +2442,9 @@ class VirtualMachineScaleSetExtension(SubResource): upgraded across minor versions. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: Json formatted protected settings for the extension. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -2482,8 +2474,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineScaleSetExtension, self).__init__(id=id, **kwargs) @@ -2919,12 +2911,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -2936,12 +2927,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: A base-64 encoded string of custom data. :type custom_data: str @@ -3140,25 +3130,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2016_03_30.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -3624,9 +3612,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_extensions_operations.py index 624cb6fbfaab..dfd1e71e286a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -389,8 +389,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_scale_set_vms_operations.py index 1b415a2e7f19..4c00132e193b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_scale_set_vms_operations.py @@ -117,8 +117,8 @@ def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -244,8 +244,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -369,8 +369,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -715,8 +715,8 @@ def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -840,8 +840,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -965,8 +965,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_scale_sets_operations.py index 79242290e502..aef13d65739b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -242,8 +242,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -433,8 +433,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -561,8 +561,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -969,8 +969,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1100,8 +1100,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1231,8 +1231,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1359,8 +1359,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1478,8 +1478,8 @@ def begin_reimage( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machines_operations.py index 28ba14fa7ab5..a7cdab03dce1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/operations/_virtual_machines_operations.py @@ -186,8 +186,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -316,8 +316,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2016_03_30.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -435,8 +435,8 @@ def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -618,8 +618,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1012,8 +1012,8 @@ def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1130,8 +1130,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1248,8 +1248,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1366,8 +1366,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_compute_management_client.py index c08c09d03e0b..138775761743 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import AvailabilitySetsOperations @@ -111,6 +112,24 @@ def __init__( self.snapshots = SnapshotsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_configuration.py index e1e857fd1218..f3b1be4b4372 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_metadata.json index 5a65bd4b88f5..23f5d9586b89 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -110,11 +110,5 @@ "virtual_machine_scale_set_vms": "VirtualMachineScaleSetVMsOperations", "disks": "DisksOperations", "snapshots": "SnapshotsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/_compute_management_client.py index 5a3172727c21..746a0072a5f5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -108,6 +109,23 @@ def __init__( self.snapshots = SnapshotsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/_configuration.py index e04183b6207d..dfbcd682ab83 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_availability_sets_operations.py index 7d47062ed3b6..1c286c0cadb0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -111,7 +111,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: """Delete an availability set. @@ -171,7 +171,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -227,7 +227,7 @@ async def get( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -294,7 +294,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -365,7 +365,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_disks_operations.py index a27a15f1175b..fac80d8ed4d2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2016_04_30_preview.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2016_04_30_preview.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -416,7 +416,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a disk. @@ -428,8 +428,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -484,7 +484,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -553,7 +553,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -622,7 +622,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -677,7 +677,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -692,8 +692,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2016_04_30_preview.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -750,7 +750,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -799,7 +799,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Revokes access to a disk. @@ -811,8 +811,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_images_operations.py index 447cafae6de3..2659c73378bf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_images_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Create or update an image. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -175,7 +175,7 @@ async def _delete_initial( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -224,7 +224,7 @@ async def begin_delete( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes an Image. @@ -234,8 +234,8 @@ async def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -292,7 +292,7 @@ async def get( resource_group_name: str, image_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Image": """Gets an image. @@ -353,7 +353,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of images under a resource group. @@ -422,7 +422,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_snapshots_operations.py index 0a83ab3d7e57..9775384bdea6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -118,8 +118,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2016_04_30_preview.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -177,7 +177,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -234,7 +234,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -247,8 +247,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2016_04_30_preview.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -305,7 +305,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -364,7 +364,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -413,7 +413,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a snapshot. @@ -424,8 +424,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -480,7 +480,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -549,7 +549,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -618,7 +618,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -673,7 +673,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -687,8 +687,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2016_04_30_preview.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -745,7 +745,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -794,7 +794,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Revokes access to a snapshot. @@ -805,8 +805,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_usage_operations.py index 556ebbf0b45e..21e621bd95f7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_extension_images_operations.py index fb8efcb408f7..8bb2cdc43374 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_extensions_operations.py index 42e3acf0a378..ca22d597620d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -367,7 +367,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete the extension. @@ -379,8 +379,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -440,7 +440,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_images_operations.py index 05110ce364fc..c32f0ad2d7fc 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_scale_set_vms_operations.py index b3a48483a5bf..c4a9ae5693a1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -48,7 +48,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -99,7 +99,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -111,8 +111,8 @@ async def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -171,7 +171,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -222,7 +222,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. @@ -235,8 +235,8 @@ async def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -295,7 +295,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -346,7 +346,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -360,8 +360,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -420,7 +420,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -471,7 +471,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a virtual machine from a VM scale set. @@ -483,8 +483,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -543,7 +543,7 @@ async def get( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -605,7 +605,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -669,7 +669,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -756,7 +756,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -807,7 +807,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -821,8 +821,8 @@ async def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -881,7 +881,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -932,7 +932,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Restarts a virtual machine in a VM scale set. @@ -944,8 +944,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1004,7 +1004,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1055,7 +1055,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts a virtual machine in a VM scale set. @@ -1067,8 +1067,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_scale_sets_operations.py index 4c8aaf81649b..f1bbd50cbf4c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -175,7 +175,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -224,7 +224,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a VM scale set. @@ -234,8 +234,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -291,7 +291,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -350,7 +350,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -408,7 +408,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -422,8 +422,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -481,7 +481,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -536,7 +536,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes virtual machines in a VM scale set. @@ -548,8 +548,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -606,7 +606,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -663,7 +663,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -732,7 +732,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -802,7 +802,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -878,7 +878,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -936,7 +936,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -950,8 +950,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1009,7 +1009,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1067,7 +1067,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Restarts one or more virtual machines in a VM scale set. @@ -1079,8 +1079,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1138,7 +1138,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1196,7 +1196,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts one or more virtual machines in a VM scale set. @@ -1208,8 +1208,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1267,7 +1267,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1322,7 +1322,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1334,8 +1334,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1392,7 +1392,7 @@ async def _reimage_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1441,7 +1441,7 @@ async def begin_reimage( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set. @@ -1451,8 +1451,8 @@ async def begin_reimage( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1508,7 +1508,7 @@ async def _reimage_all_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1557,7 +1557,7 @@ async def begin_reimage_all( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. @@ -1568,8 +1568,8 @@ async def begin_reimage_all( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_sizes_operations.py index 7c7b26e13091..dff7e4386d14 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machine_sizes_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machines_operations.py index 8afe77f6bd9a..6850e400921d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/aio/operations/_virtual_machines_operations.py @@ -48,7 +48,7 @@ async def get_extensions( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. @@ -111,7 +111,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -166,7 +166,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -179,8 +179,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -238,7 +238,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -295,7 +295,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. @@ -307,8 +307,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -365,7 +365,7 @@ async def _delete_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -414,7 +414,7 @@ async def begin_delete( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete a virtual machine. @@ -424,8 +424,8 @@ async def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -482,7 +482,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -544,7 +544,7 @@ async def _convert_to_managed_disks_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -593,10 +593,10 @@ async def begin_convert_to_managed_disks( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -604,8 +604,8 @@ async def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -661,7 +661,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -710,7 +710,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -721,8 +721,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -778,7 +778,7 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.OperationStatusResponse": """Sets the state of the virtual machine to generalized. @@ -835,7 +835,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -905,7 +905,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -974,7 +974,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -1049,7 +1049,7 @@ async def _power_off_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1098,7 +1098,7 @@ async def begin_power_off( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -1109,8 +1109,8 @@ async def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1166,7 +1166,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1215,7 +1215,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to restart a virtual machine. @@ -1225,8 +1225,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1282,7 +1282,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1331,7 +1331,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to start a virtual machine. @@ -1341,8 +1341,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1398,7 +1398,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1447,7 +1447,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1457,8 +1457,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_compute_management_client_enums.py index 9fabb4080374..b662a3c717c7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_compute_management_client_enums.py @@ -132,8 +132,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. + see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set `_ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models.py index 9468757904a1..b02d3dca8a05 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models.py @@ -42,8 +42,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -361,7 +361,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -833,24 +833,23 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set - `_ :code:`
    `:code:`
    ` `List all available - virtual machine sizes in a region `_ - :code:`
    `:code:`
    ` `List all available virtual machine sizes for resizing - `_. Possible values include: "Basic_A0", - "Basic_A1", "Basic_A2", "Basic_A3", "Basic_A4", "Standard_A0", "Standard_A1", "Standard_A2", - "Standard_A3", "Standard_A4", "Standard_A5", "Standard_A6", "Standard_A7", "Standard_A8", - "Standard_A9", "Standard_A10", "Standard_A11", "Standard_D1", "Standard_D2", "Standard_D3", - "Standard_D4", "Standard_D11", "Standard_D12", "Standard_D13", "Standard_D14", - "Standard_D1_v2", "Standard_D2_v2", "Standard_D3_v2", "Standard_D4_v2", "Standard_D5_v2", - "Standard_D11_v2", "Standard_D12_v2", "Standard_D13_v2", "Standard_D14_v2", "Standard_D15_v2", - "Standard_DS1", "Standard_DS2", "Standard_DS3", "Standard_DS4", "Standard_DS11", - "Standard_DS12", "Standard_DS13", "Standard_DS14", "Standard_DS1_v2", "Standard_DS2_v2", - "Standard_DS3_v2", "Standard_DS4_v2", "Standard_DS5_v2", "Standard_DS11_v2", + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ + :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region + `_ :code:`
    `:code:`
    ` `List all available virtual + machine sizes for resizing `_. Possible values + include: "Basic_A0", "Basic_A1", "Basic_A2", "Basic_A3", "Basic_A4", "Standard_A0", + "Standard_A1", "Standard_A2", "Standard_A3", "Standard_A4", "Standard_A5", "Standard_A6", + "Standard_A7", "Standard_A8", "Standard_A9", "Standard_A10", "Standard_A11", "Standard_D1", + "Standard_D2", "Standard_D3", "Standard_D4", "Standard_D11", "Standard_D12", "Standard_D13", + "Standard_D14", "Standard_D1_v2", "Standard_D2_v2", "Standard_D3_v2", "Standard_D4_v2", + "Standard_D5_v2", "Standard_D11_v2", "Standard_D12_v2", "Standard_D13_v2", "Standard_D14_v2", + "Standard_D15_v2", "Standard_DS1", "Standard_DS2", "Standard_DS3", "Standard_DS4", + "Standard_DS11", "Standard_DS12", "Standard_DS13", "Standard_DS14", "Standard_DS1_v2", + "Standard_DS2_v2", "Standard_DS3_v2", "Standard_DS4_v2", "Standard_DS5_v2", "Standard_DS11_v2", "Standard_DS12_v2", "Standard_DS13_v2", "Standard_DS14_v2", "Standard_DS15_v2", "Standard_G1", "Standard_G2", "Standard_G3", "Standard_G4", "Standard_G5", "Standard_GS1", "Standard_GS2", "Standard_GS3", "Standard_GS4", "Standard_GS5". @@ -1161,13 +1160,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Required. Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks - and VHDs for Azure virtual machines `_. + and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2016_04_30_preview.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2016_04_30_preview.models.ImageDataDisk] """ @@ -1647,9 +1646,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -1660,12 +1657,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1677,19 +1673,17 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. @@ -1697,11 +1691,11 @@ class OSProfile(msrest.serialization.Model): ~azure.mgmt.compute.v2016_04_30_preview.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2016_04_30_preview.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -2031,8 +2025,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -2060,13 +2053,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2016_04_30_preview.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2016_04_30_preview.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2016_04_30_preview.models.DataDisk] """ @@ -2227,9 +2220,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -2341,11 +2334,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2016_04_30_preview.models.SubResource @@ -2354,15 +2346,14 @@ class VirtualMachine(Resource): :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -2491,7 +2482,7 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -2539,10 +2530,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -2755,10 +2746,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -3152,10 +3143,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -3609,12 +3600,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -3626,12 +3616,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: A base-64 encoded string of custom data. :type custom_data: str @@ -3827,25 +3816,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2016_04_30_preview.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -4269,9 +4256,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models_py3.py index 477f5c87725c..67561f8ebeb4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -47,8 +47,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -398,7 +398,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -408,7 +408,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): def __init__( self, *, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(ComputeLongRunningOperationProperties, self).__init__(**kwargs) @@ -923,24 +923,23 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set - `_ :code:`
    `:code:`
    ` `List all available - virtual machine sizes in a region `_ - :code:`
    `:code:`
    ` `List all available virtual machine sizes for resizing - `_. Possible values include: "Basic_A0", - "Basic_A1", "Basic_A2", "Basic_A3", "Basic_A4", "Standard_A0", "Standard_A1", "Standard_A2", - "Standard_A3", "Standard_A4", "Standard_A5", "Standard_A6", "Standard_A7", "Standard_A8", - "Standard_A9", "Standard_A10", "Standard_A11", "Standard_D1", "Standard_D2", "Standard_D3", - "Standard_D4", "Standard_D11", "Standard_D12", "Standard_D13", "Standard_D14", - "Standard_D1_v2", "Standard_D2_v2", "Standard_D3_v2", "Standard_D4_v2", "Standard_D5_v2", - "Standard_D11_v2", "Standard_D12_v2", "Standard_D13_v2", "Standard_D14_v2", "Standard_D15_v2", - "Standard_DS1", "Standard_DS2", "Standard_DS3", "Standard_DS4", "Standard_DS11", - "Standard_DS12", "Standard_DS13", "Standard_DS14", "Standard_DS1_v2", "Standard_DS2_v2", - "Standard_DS3_v2", "Standard_DS4_v2", "Standard_DS5_v2", "Standard_DS11_v2", + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ + :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region + `_ :code:`
    `:code:`
    ` `List all available virtual + machine sizes for resizing `_. Possible values + include: "Basic_A0", "Basic_A1", "Basic_A2", "Basic_A3", "Basic_A4", "Standard_A0", + "Standard_A1", "Standard_A2", "Standard_A3", "Standard_A4", "Standard_A5", "Standard_A6", + "Standard_A7", "Standard_A8", "Standard_A9", "Standard_A10", "Standard_A11", "Standard_D1", + "Standard_D2", "Standard_D3", "Standard_D4", "Standard_D11", "Standard_D12", "Standard_D13", + "Standard_D14", "Standard_D1_v2", "Standard_D2_v2", "Standard_D3_v2", "Standard_D4_v2", + "Standard_D5_v2", "Standard_D11_v2", "Standard_D12_v2", "Standard_D13_v2", "Standard_D14_v2", + "Standard_D15_v2", "Standard_DS1", "Standard_DS2", "Standard_DS3", "Standard_DS4", + "Standard_DS11", "Standard_DS12", "Standard_DS13", "Standard_DS14", "Standard_DS1_v2", + "Standard_DS2_v2", "Standard_DS3_v2", "Standard_DS4_v2", "Standard_DS5_v2", "Standard_DS11_v2", "Standard_DS12_v2", "Standard_DS13_v2", "Standard_DS14_v2", "Standard_DS15_v2", "Standard_G1", "Standard_G2", "Standard_G3", "Standard_G4", "Standard_G5", "Standard_GS1", "Standard_GS2", "Standard_GS3", "Standard_GS4", "Standard_GS5". @@ -1287,13 +1286,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Required. Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks - and VHDs for Azure virtual machines `_. + and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2016_04_30_preview.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2016_04_30_preview.models.ImageDataDisk] """ @@ -1823,9 +1822,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -1836,12 +1833,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1853,19 +1849,17 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. @@ -1873,11 +1867,11 @@ class OSProfile(msrest.serialization.Model): ~azure.mgmt.compute.v2016_04_30_preview.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2016_04_30_preview.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -2250,8 +2244,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -2282,13 +2275,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2016_04_30_preview.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2016_04_30_preview.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2016_04_30_preview.models.DataDisk] """ @@ -2464,9 +2457,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -2586,11 +2579,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2016_04_30_preview.models.SubResource @@ -2599,15 +2591,14 @@ class VirtualMachine(Resource): :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -2756,7 +2747,7 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -2768,7 +2759,7 @@ def __init__( self, *, id: Optional[str] = None, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(VirtualMachineCaptureResult, self).__init__(id=id, **kwargs) @@ -2807,10 +2798,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -2853,8 +2844,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -3054,10 +3045,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -3080,8 +3071,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -3502,10 +3493,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -3535,8 +3526,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineScaleSetExtension, self).__init__(**kwargs) @@ -4004,12 +3995,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -4021,12 +4011,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: A base-64 encoded string of custom data. :type custom_data: str @@ -4234,25 +4223,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2016_04_30_preview.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -4726,9 +4713,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_disks_operations.py index 9b95d3d0754f..dd6986097783 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2016_04_30_preview.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2016_04_30_preview.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -439,8 +439,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -707,8 +707,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2016_04_30_preview.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -828,8 +828,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_images_operations.py index f1bb4a93ef80..64a3f6bed091 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_images_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -242,8 +242,8 @@ def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_snapshots_operations.py index 888efb56e977..eda6b47e4096 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_snapshots_operations.py @@ -124,8 +124,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2016_04_30_preview.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -255,8 +255,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2016_04_30_preview.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -435,8 +435,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -702,8 +702,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2016_04_30_preview.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -822,8 +822,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_extensions_operations.py index 08db92052b32..7a14d0ccca02 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -389,8 +389,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_scale_set_vms_operations.py index 1cd085065b64..21ed4eef5590 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_scale_set_vms_operations.py @@ -117,8 +117,8 @@ def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -243,8 +243,8 @@ def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -370,8 +370,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -495,8 +495,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -838,8 +838,8 @@ def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -963,8 +963,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1088,8 +1088,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_scale_sets_operations.py index c070b77728fc..49ec312effc1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -242,8 +242,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -433,8 +433,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -561,8 +561,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -969,8 +969,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1100,8 +1100,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1231,8 +1231,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1359,8 +1359,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1478,8 +1478,8 @@ def begin_reimage( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1597,8 +1597,8 @@ def begin_reimage_all( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machines_operations.py index a8b3a2d7fed4..9844436a9fdf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/operations/_virtual_machines_operations.py @@ -186,8 +186,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -316,8 +316,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2016_04_30_preview.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -435,8 +435,8 @@ def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -609,8 +609,8 @@ def begin_convert_to_managed_disks( **kwargs # type: Any ): # type: (...) -> LROPoller["_models.OperationStatusResponse"] - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -618,8 +618,8 @@ def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -737,8 +737,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1131,8 +1131,8 @@ def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1249,8 +1249,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1367,8 +1367,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1485,8 +1485,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_compute_management_client.py index a3f24ad7ea95..d7b3e94880bd 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import AvailabilitySetsOperations @@ -131,6 +132,24 @@ def __init__( self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_configuration.py index 7c55be6b85ca..776426f72df5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_metadata.json index 166afcfe9139..9f70e9897d99 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -114,11 +114,5 @@ "disks": "DisksOperations", "snapshots": "SnapshotsOperations", "virtual_machine_run_commands": "VirtualMachineRunCommandsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file 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 new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/_compute_management_client.py index 133537d9ab00..7cbe4a37ab00 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -128,6 +129,23 @@ def __init__( self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/_configuration.py index 8817af7554b3..33874ea79850 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_availability_sets_operations.py index cc475e233b56..aabec14b18cd 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -111,7 +111,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: """Delete an availability set. @@ -171,7 +171,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -228,7 +228,7 @@ async def get( def list_by_subscription( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -300,7 +300,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -371,7 +371,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_disks_operations.py index 3ef543d25606..53d43b616076 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2017_03_30.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2017_03_30.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -416,7 +416,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a disk. @@ -428,8 +428,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -484,7 +484,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -553,7 +553,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -622,7 +622,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -677,7 +677,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -692,8 +692,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2017_03_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -750,7 +750,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -799,7 +799,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Revokes access to a disk. @@ -811,8 +811,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_images_operations.py index c262c6b2609a..3b608ecacb72 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_images_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Create or update an image. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -175,7 +175,7 @@ async def _delete_initial( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -224,7 +224,7 @@ async def begin_delete( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes an Image. @@ -234,8 +234,8 @@ async def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -292,7 +292,7 @@ async def get( resource_group_name: str, image_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Image": """Gets an image. @@ -353,7 +353,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of images under a resource group. @@ -422,7 +422,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_resource_skus_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_resource_skus_operations.py index 1479b57ad878..75c53c92082c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_resource_skus_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_resource_skus_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceSkusResult"]: """Gets the list of Microsoft.Compute SKUs available for your Subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_snapshots_operations.py index 40470338d804..f9ad4f34475b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2017_03_30.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -249,8 +249,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2017_03_30.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -416,7 +416,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a snapshot. @@ -428,8 +428,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -484,7 +484,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -553,7 +553,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -622,7 +622,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -677,7 +677,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -692,8 +692,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2017_03_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -750,7 +750,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -799,7 +799,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Revokes access to a snapshot. @@ -811,8 +811,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_usage_operations.py index c85776d199b0..143ade08c60c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_extension_images_operations.py index 9470d7d183c5..651348bfea80 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_extensions_operations.py index 26de1205809b..abf18343c4ec 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -367,7 +367,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete the extension. @@ -379,8 +379,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -440,7 +440,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_images_operations.py index 1c420479abef..2551825ab387 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_run_commands_operations.py index f60b6d529b5f..c707788e7561 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_run_commands_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RunCommandListResult"]: """Lists all available run commands for a subscription in a location. @@ -115,7 +115,7 @@ async def get( self, location: str, command_id: str, - **kwargs + **kwargs: Any ) -> "_models.RunCommandDocument": """Gets specific run command for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_extensions_operations.py index 193d9e4fd089..f534dc98031f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to create or update an extension. @@ -124,8 +124,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -236,7 +236,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete the extension. @@ -248,8 +248,8 @@ async def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -309,7 +309,7 @@ async def get( vm_scale_set_name: str, vmss_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": """The operation to get the extension. @@ -374,7 +374,7 @@ def list( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetExtensionListResult"]: """Gets a list of all extensions in a VM scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 1f632d628c0f..d62ec5ab6fa1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -46,7 +46,7 @@ async def _cancel_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -95,7 +95,7 @@ async def begin_cancel( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Cancels the current virtual machine scale set rolling upgrade. @@ -105,8 +105,8 @@ async def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -162,7 +162,7 @@ async def _start_os_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -211,7 +211,7 @@ async def begin_start_os_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available @@ -223,8 +223,8 @@ async def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -280,7 +280,7 @@ async def get_latest( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.RollingUpgradeStatusInfo": """Gets the status of the latest virtual machine scale set rolling upgrade. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_vms_operations.py index e3928fd445a0..2e0a1925f728 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -48,7 +48,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -99,7 +99,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -111,8 +111,8 @@ async def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -171,7 +171,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -222,7 +222,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. @@ -235,8 +235,8 @@ async def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -295,7 +295,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -346,7 +346,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -360,8 +360,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -420,7 +420,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -471,7 +471,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a virtual machine from a VM scale set. @@ -483,8 +483,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -543,7 +543,7 @@ async def get( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -605,7 +605,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -669,7 +669,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -759,7 +759,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -810,7 +810,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -824,8 +824,8 @@ async def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -884,7 +884,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -935,7 +935,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Restarts a virtual machine in a VM scale set. @@ -947,8 +947,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1007,7 +1007,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1058,7 +1058,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts a virtual machine in a VM scale set. @@ -1070,8 +1070,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_sets_operations.py index c6dd534cdbb4..adc3ec746fdb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -229,7 +229,7 @@ async def begin_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Update a VM scale set. @@ -241,8 +241,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -299,7 +299,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -348,7 +348,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a VM scale set. @@ -358,8 +358,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -415,7 +415,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -474,7 +474,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -532,7 +532,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -546,8 +546,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -605,7 +605,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -660,7 +660,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes virtual machines in a VM scale set. @@ -672,8 +672,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -730,7 +730,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -787,7 +787,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -856,7 +856,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -926,7 +926,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -1002,7 +1002,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1060,7 +1060,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -1074,8 +1074,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1133,7 +1133,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1191,7 +1191,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Restarts one or more virtual machines in a VM scale set. @@ -1203,8 +1203,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1262,7 +1262,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1320,7 +1320,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts one or more virtual machines in a VM scale set. @@ -1332,8 +1332,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1391,7 +1391,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1446,7 +1446,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1458,8 +1458,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1517,7 +1517,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1575,7 +1575,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set. @@ -1587,8 +1587,8 @@ async def begin_reimage( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1646,7 +1646,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1704,7 +1704,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. @@ -1717,8 +1717,8 @@ async def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_sizes_operations.py index cc221800c8fb..cdc2e2e18d87 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machine_sizes_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machines_operations.py index 2f59735ea09d..5b247ef87ceb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_virtual_machines_operations.py @@ -48,7 +48,7 @@ async def get_extensions( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. @@ -109,7 +109,7 @@ async def get_extensions( def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Gets all the virtual machines under the specified subscription for the specified location. @@ -181,7 +181,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -236,7 +236,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -249,8 +249,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -308,7 +308,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -365,7 +365,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. @@ -377,8 +377,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -435,7 +435,7 @@ async def _delete_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -484,7 +484,7 @@ async def begin_delete( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete a virtual machine. @@ -494,8 +494,8 @@ async def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -552,7 +552,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -614,7 +614,7 @@ async def instance_view( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineInstanceView": """Retrieves information about the run-time state of a virtual machine. @@ -672,7 +672,7 @@ async def _convert_to_managed_disks_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -721,10 +721,10 @@ async def begin_convert_to_managed_disks( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -732,8 +732,8 @@ async def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -789,7 +789,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -838,7 +838,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -849,8 +849,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -906,7 +906,7 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.OperationStatusResponse": """Sets the state of the virtual machine to generalized. @@ -963,7 +963,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -1033,7 +1033,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -1102,7 +1102,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -1177,7 +1177,7 @@ async def _power_off_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1226,7 +1226,7 @@ async def begin_power_off( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -1237,8 +1237,8 @@ async def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1294,7 +1294,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1343,7 +1343,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to restart a virtual machine. @@ -1353,8 +1353,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1410,7 +1410,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1459,7 +1459,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to start a virtual machine. @@ -1469,8 +1469,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1526,7 +1526,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1575,7 +1575,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1585,8 +1585,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1642,7 +1642,7 @@ async def _perform_maintenance_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1691,7 +1691,7 @@ async def begin_perform_maintenance( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to perform maintenance on a virtual machine. @@ -1701,8 +1701,8 @@ async def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1759,7 +1759,7 @@ async def _run_command_initial( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1814,7 +1814,7 @@ async def begin_run_command( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on the VM. @@ -1826,8 +1826,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_compute_management_client_enums.py index c305f4cf3788..9319aad87d79 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_compute_management_client_enums.py @@ -181,8 +181,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. + see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models.py index 3efe46af6aad..46b5b397faeb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models.py @@ -42,8 +42,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -357,7 +357,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -858,11 +858,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -1206,13 +1206,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Required. Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks - and VHDs for Azure virtual machines `_. + and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_03_30.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_03_30.models.ImageDataDisk] """ @@ -1734,9 +1734,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -1747,12 +1745,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1764,30 +1761,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2017_03_30.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2017_03_30.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -2583,7 +2578,7 @@ class RunCommandResult(OperationStatusResponse): :ivar error: Api error. :vartype error: ~azure.mgmt.compute.v2017_03_30.models.ApiError :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _validation = { @@ -2836,8 +2831,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -2865,13 +2859,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2017_03_30.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_03_30.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_03_30.models.DataDisk] """ @@ -3042,9 +3036,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -3157,11 +3151,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2017_03_30.models.SubResource @@ -3169,15 +3162,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -3308,7 +3300,7 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -3356,10 +3348,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -3571,10 +3563,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -4009,10 +4001,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -4554,12 +4546,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -4571,30 +4562,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2017_03_30.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2017_03_30.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -4773,15 +4762,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2017_03_30.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetDataDisk] """ @@ -5188,25 +5175,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2017_03_30.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -5462,15 +5447,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -5658,9 +5642,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models_py3.py index f5ac9e19be9f..a57293ad39f0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -47,8 +47,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -393,7 +393,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -403,7 +403,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): def __init__( self, *, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(ComputeLongRunningOperationProperties, self).__init__(**kwargs) @@ -951,11 +951,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -1337,13 +1337,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Required. Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks - and VHDs for Azure virtual machines `_. + and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_03_30.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_03_30.models.ImageDataDisk] """ @@ -1923,9 +1923,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -1936,12 +1934,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1953,30 +1950,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2017_03_30.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2017_03_30.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -2829,7 +2824,7 @@ class RunCommandResult(OperationStatusResponse): :ivar error: Api error. :vartype error: ~azure.mgmt.compute.v2017_03_30.models.ApiError :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _validation = { @@ -2852,7 +2847,7 @@ class RunCommandResult(OperationStatusResponse): def __init__( self, *, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(RunCommandResult, self).__init__(**kwargs) @@ -3109,8 +3104,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -3141,13 +3135,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2017_03_30.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_03_30.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_03_30.models.DataDisk] """ @@ -3335,9 +3329,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -3458,11 +3452,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2017_03_30.models.SubResource @@ -3470,15 +3463,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -3630,7 +3622,7 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -3642,7 +3634,7 @@ def __init__( self, *, id: Optional[str] = None, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(VirtualMachineCaptureResult, self).__init__(id=id, **kwargs) @@ -3681,10 +3673,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -3726,8 +3718,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -3927,10 +3919,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -3953,8 +3945,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -4418,10 +4410,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -4453,8 +4445,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineScaleSetExtension, self).__init__(**kwargs) @@ -5021,12 +5013,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -5038,30 +5029,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2017_03_30.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2017_03_30.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -5254,15 +5243,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2017_03_30.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetDataDisk] """ @@ -5727,25 +5714,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2017_03_30.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -6029,15 +6014,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -6249,9 +6233,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_disks_operations.py index d3b03012a99a..c40e73070eb0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2017_03_30.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2017_03_30.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -439,8 +439,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -707,8 +707,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2017_03_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -828,8 +828,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_images_operations.py index 02f1ef16be3a..c55193f52eac 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_images_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -242,8 +242,8 @@ def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_snapshots_operations.py index 458c715309ae..32e79e9a5f85 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_snapshots_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2017_03_30.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2017_03_30.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -439,8 +439,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -707,8 +707,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2017_03_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -828,8 +828,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_extensions_operations.py index 65051de261e3..6c0c7fc47ba8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -389,8 +389,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_extensions_operations.py index a9479f075d25..bb063d501939 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_extensions_operations.py @@ -130,8 +130,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -256,8 +256,8 @@ def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index fa38fe3720af..985735c66a55 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -111,8 +111,8 @@ def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -231,8 +231,8 @@ def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_vms_operations.py index b6fb43dd361d..eb0dab0d440f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_set_vms_operations.py @@ -117,8 +117,8 @@ def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -243,8 +243,8 @@ def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -370,8 +370,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -495,8 +495,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -841,8 +841,8 @@ def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -966,8 +966,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1091,8 +1091,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_sets_operations.py index 26e7cb3ec761..6116b8c64e93 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -249,8 +249,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -368,8 +368,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -559,8 +559,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -687,8 +687,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1095,8 +1095,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1226,8 +1226,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1357,8 +1357,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1485,8 +1485,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1616,8 +1616,8 @@ def begin_reimage( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1748,8 +1748,8 @@ def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machines_operations.py index 78603fc758d4..e7bd9e7211db 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machines_operations.py @@ -257,8 +257,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -387,8 +387,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -506,8 +506,8 @@ def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -739,8 +739,8 @@ def begin_convert_to_managed_disks( **kwargs # type: Any ): # type: (...) -> LROPoller["_models.OperationStatusResponse"] - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -748,8 +748,8 @@ def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -867,8 +867,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1261,8 +1261,8 @@ def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1379,8 +1379,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1497,8 +1497,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1615,8 +1615,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1733,8 +1733,8 @@ def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1860,8 +1860,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2017_03_30.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_compute_management_client.py index 66122fb73dba..216752437533 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import ResourceSkusOperations @@ -55,6 +56,24 @@ def __init__( self.resource_skus = ResourceSkusOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_configuration.py index 7de63496e446..005dd7336ab9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_metadata.json index 0d0806660784..d60968d0412f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": false, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -99,11 +99,5 @@ }, "operation_groups": { "resource_skus": "ResourceSkusOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file 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 new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/_compute_management_client.py index 9ec019284e19..da7842a7533d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -52,6 +53,23 @@ def __init__( self.resource_skus = ResourceSkusOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/_configuration.py index 8b7f44c88cde..c312667f78d5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/operations/_resource_skus_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/operations/_resource_skus_operations.py index 38e238a9a67e..8158d4b0dc08 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/operations/_resource_skus_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/aio/operations/_resource_skus_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceSkusResult"]: """Gets the list of Microsoft.Compute SKUs available for your Subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_compute_management_client.py index 7a360591eb8b..3b6d6f455535 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import Operations @@ -126,6 +127,24 @@ def __init__( self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_configuration.py index 67d043079baa..e8e968ab4248 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_metadata.json index fbe564371dbe..529cdb3420c2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -113,11 +113,5 @@ "virtual_machine_scale_set_vms": "VirtualMachineScaleSetVMsOperations", "log_analytics": "LogAnalyticsOperations", "virtual_machine_run_commands": "VirtualMachineRunCommandsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file 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 new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/_compute_management_client.py index 0754de1374fe..0a0a683358cf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -123,6 +124,23 @@ def __init__( self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/_configuration.py index 6eadfb4648bd..9c045c2eaa83 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_availability_sets_operations.py index 9e061fcda847..23bec3c81164 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -112,7 +112,7 @@ async def update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySetUpdate", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Update an availability set. @@ -177,7 +177,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: """Delete an availability set. @@ -237,7 +237,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -294,7 +294,7 @@ async def get( def list_by_subscription( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -366,7 +366,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -437,7 +437,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_images_operations.py index 62a22811332f..0bb073e1a16f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_images_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Create or update an image. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Update an image. @@ -245,8 +245,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -303,7 +303,7 @@ async def _delete_initial( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -352,7 +352,7 @@ async def begin_delete( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes an Image. @@ -362,8 +362,8 @@ async def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -420,7 +420,7 @@ async def get( resource_group_name: str, image_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Image": """Gets an image. @@ -481,7 +481,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of images under a resource group. @@ -550,7 +550,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_log_analytics_operations.py index 28ff257c85ae..590ad85bfa5b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_log_analytics_operations.py @@ -46,7 +46,7 @@ async def _export_request_rate_by_interval_initial( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -99,7 +99,7 @@ async def begin_export_request_rate_by_interval( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show Api requests made by this subscription in the given time window to show throttling activities. @@ -110,8 +110,8 @@ async def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -166,7 +166,7 @@ async def _export_throttled_requests_initial( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -219,7 +219,7 @@ async def begin_export_throttled_requests( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show total throttled Api requests for this subscription in the given time window. @@ -230,8 +230,8 @@ async def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_operations.py index 528c2311d88e..ced31d9261f9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ComputeOperationListResult"]: """Gets a list of compute operations. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_usage_operations.py index f98da1df421d..c6ef23a7adc3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_extension_images_operations.py index fddfae755b76..49353c35e322 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_extensions_operations.py index b4d6151d898a..9601b787802c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -367,7 +367,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete the extension. @@ -379,8 +379,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -440,7 +440,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_images_operations.py index 9650952d7c82..deb4108e3756 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_run_commands_operations.py index fa8b7f1fdde4..bcb850b9f52a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_run_commands_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RunCommandListResult"]: """Lists all available run commands for a subscription in a location. @@ -115,7 +115,7 @@ async def get( self, location: str, command_id: str, - **kwargs + **kwargs: Any ) -> "_models.RunCommandDocument": """Gets specific run command for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py index 48b2a614cc8f..b9b1d3954d65 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to create or update an extension. @@ -124,8 +124,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -236,7 +236,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete the extension. @@ -248,8 +248,8 @@ async def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -309,7 +309,7 @@ async def get( vm_scale_set_name: str, vmss_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": """The operation to get the extension. @@ -374,7 +374,7 @@ def list( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetExtensionListResult"]: """Gets a list of all extensions in a VM scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 3c895f3933e5..5031c5659f36 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -46,7 +46,7 @@ async def _cancel_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -95,7 +95,7 @@ async def begin_cancel( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Cancels the current virtual machine scale set rolling upgrade. @@ -105,8 +105,8 @@ async def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -162,7 +162,7 @@ async def _start_os_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -211,7 +211,7 @@ async def begin_start_os_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available @@ -223,8 +223,8 @@ async def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -280,7 +280,7 @@ async def get_latest( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.RollingUpgradeStatusInfo": """Gets the status of the latest virtual machine scale set rolling upgrade. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py index ea62082a4673..d744fb8e8e1f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -48,7 +48,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -99,7 +99,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -111,8 +111,8 @@ async def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -171,7 +171,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -222,7 +222,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. @@ -235,8 +235,8 @@ async def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -295,7 +295,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -346,7 +346,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -360,8 +360,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -421,7 +421,7 @@ async def _update_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] error_map = { @@ -480,7 +480,7 @@ async def begin_update( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVM"]: """Updates a virtual machine of a VM scale set. @@ -495,8 +495,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -556,7 +556,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -607,7 +607,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a virtual machine from a VM scale set. @@ -619,8 +619,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -679,7 +679,7 @@ async def get( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -741,7 +741,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -805,7 +805,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -895,7 +895,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -946,7 +946,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -960,8 +960,8 @@ async def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1020,7 +1020,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1071,7 +1071,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Restarts a virtual machine in a VM scale set. @@ -1083,8 +1083,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1143,7 +1143,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1194,7 +1194,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts a virtual machine in a VM scale set. @@ -1206,8 +1206,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1266,7 +1266,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1317,7 +1317,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. @@ -1330,8 +1330,8 @@ async def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1390,7 +1390,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1441,7 +1441,7 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Performs maintenance on a virtual machine in a VM scale set. @@ -1453,8 +1453,8 @@ async def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_sets_operations.py index deb2281ec238..846bcc7e29ce 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -229,7 +229,7 @@ async def begin_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Update a VM scale set. @@ -241,8 +241,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -299,7 +299,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -348,7 +348,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes a VM scale set. @@ -358,8 +358,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -415,7 +415,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -474,7 +474,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -532,7 +532,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -546,8 +546,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -605,7 +605,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -660,7 +660,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Deletes virtual machines in a VM scale set. @@ -672,8 +672,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -730,7 +730,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -787,7 +787,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -856,7 +856,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -926,7 +926,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -1001,7 +1001,7 @@ def get_os_upgrade_history( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListOSUpgradeHistory"]: """Gets list of OS upgrades on a VM scale set instance. @@ -1076,7 +1076,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1134,7 +1134,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -1148,8 +1148,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1207,7 +1207,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1265,7 +1265,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Restarts one or more virtual machines in a VM scale set. @@ -1277,8 +1277,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1336,7 +1336,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1394,7 +1394,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Starts one or more virtual machines in a VM scale set. @@ -1406,8 +1406,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1465,7 +1465,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1523,7 +1523,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. @@ -1536,8 +1536,8 @@ async def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1595,7 +1595,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1653,12 +1653,12 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1668,8 +1668,8 @@ async def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1727,7 +1727,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1782,7 +1782,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1794,8 +1794,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1853,7 +1853,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1911,7 +1911,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set. @@ -1923,8 +1923,8 @@ async def begin_reimage( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1982,7 +1982,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -2040,7 +2040,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. @@ -2053,8 +2053,8 @@ async def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -2112,7 +2112,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( resource_group_name: str, vm_scale_set_name: str, platform_update_domain: int, - **kwargs + **kwargs: Any ) -> "_models.RecoveryWalkResponse": """Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_sizes_operations.py index dc21b067c3ae..4b1fd7a59d14 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machine_sizes_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machines_operations.py index cd68602e7493..26b96884998e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/aio/operations/_virtual_machines_operations.py @@ -48,7 +48,7 @@ async def get_extensions( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. @@ -109,7 +109,7 @@ async def get_extensions( def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Gets all the virtual machines under the specified subscription for the specified location. @@ -181,7 +181,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -236,7 +236,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -249,8 +249,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -308,7 +308,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -365,7 +365,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. @@ -377,8 +377,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -436,7 +436,7 @@ async def _update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -493,7 +493,7 @@ async def begin_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to update a virtual machine. @@ -505,8 +505,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -563,7 +563,7 @@ async def _delete_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -612,7 +612,7 @@ async def begin_delete( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to delete a virtual machine. @@ -622,8 +622,8 @@ async def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -680,7 +680,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -742,7 +742,7 @@ async def instance_view( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineInstanceView": """Retrieves information about the run-time state of a virtual machine. @@ -800,7 +800,7 @@ async def _convert_to_managed_disks_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -849,10 +849,10 @@ async def begin_convert_to_managed_disks( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -860,8 +860,8 @@ async def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -917,7 +917,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -966,7 +966,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -977,8 +977,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1034,7 +1034,7 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.OperationStatusResponse": """Sets the state of the virtual machine to generalized. @@ -1091,7 +1091,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -1161,7 +1161,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -1230,7 +1230,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -1305,7 +1305,7 @@ async def _power_off_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1354,7 +1354,7 @@ async def begin_power_off( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -1365,8 +1365,8 @@ async def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1422,7 +1422,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1471,7 +1471,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to restart a virtual machine. @@ -1481,8 +1481,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1538,7 +1538,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1587,7 +1587,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to start a virtual machine. @@ -1597,8 +1597,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1654,7 +1654,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1703,7 +1703,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1713,8 +1713,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1770,7 +1770,7 @@ async def _perform_maintenance_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.OperationStatusResponse"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.OperationStatusResponse"]] error_map = { @@ -1819,7 +1819,7 @@ async def begin_perform_maintenance( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.OperationStatusResponse"]: """The operation to perform maintenance on a virtual machine. @@ -1829,8 +1829,8 @@ async def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1887,7 +1887,7 @@ async def _run_command_initial( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1942,7 +1942,7 @@ async def begin_run_command( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on the VM. @@ -1954,8 +1954,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_compute_management_client_enums.py index 669ba106b4c4..8a19df858362 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_compute_management_client_enums.py @@ -204,8 +204,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. + see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models.py index 34822fdbd091..0548f6dc4e1b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models.py @@ -17,8 +17,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -415,7 +415,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -688,11 +688,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -1019,13 +1019,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_12_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_12_01.models.ImageDataDisk] :param 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). @@ -1647,9 +1647,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -1660,12 +1658,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1677,30 +1674,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2017_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2017_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -2352,7 +2347,7 @@ class RunCommandResult(OperationStatusResponse): :ivar error: Api error. :vartype error: ~azure.mgmt.compute.v2017_12_01.models.ApiError :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _validation = { @@ -2438,8 +2433,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -2467,13 +2461,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2017_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_12_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_12_01.models.DataDisk] """ @@ -2795,9 +2789,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -2910,11 +2904,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2017_12_01.models.SubResource @@ -2922,15 +2915,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -3061,7 +3053,7 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -3109,10 +3101,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -3324,10 +3316,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -3795,10 +3787,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -4387,12 +4379,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -4404,30 +4395,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2017_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2017_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -4606,15 +4595,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2017_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetDataDisk] """ @@ -5030,25 +5017,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2017_12_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -5309,15 +5294,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -5478,11 +5462,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2017_12_01.models.SubResource @@ -5490,15 +5473,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -5620,9 +5602,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models_py3.py index 7a39b333d936..83b3b709519e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -22,8 +22,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -461,7 +461,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): """Compute-specific operation properties, including output. :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -471,7 +471,7 @@ class ComputeLongRunningOperationProperties(msrest.serialization.Model): def __init__( self, *, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(ComputeLongRunningOperationProperties, self).__init__(**kwargs) @@ -756,11 +756,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -1122,13 +1122,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_12_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_12_01.models.ImageDataDisk] :param 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). @@ -1815,9 +1815,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -1828,12 +1826,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1845,30 +1842,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2017_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2017_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -2582,7 +2577,7 @@ class RunCommandResult(OperationStatusResponse): :ivar error: Api error. :vartype error: ~azure.mgmt.compute.v2017_12_01.models.ApiError :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _validation = { @@ -2605,7 +2600,7 @@ class RunCommandResult(OperationStatusResponse): def __init__( self, *, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(RunCommandResult, self).__init__(**kwargs) @@ -2676,8 +2671,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -2708,13 +2702,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2017_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_12_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_12_01.models.DataDisk] """ @@ -3059,9 +3053,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -3182,11 +3176,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2017_12_01.models.SubResource @@ -3194,15 +3187,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -3354,7 +3346,7 @@ class VirtualMachineCaptureResult(SubResource): :param id: Resource Id. :type id: str :param output: Operation output data (raw JSON). - :type output: object + :type output: any """ _attribute_map = { @@ -3366,7 +3358,7 @@ def __init__( self, *, id: Optional[str] = None, - output: Optional[object] = None, + output: Optional[Any] = None, **kwargs ): super(VirtualMachineCaptureResult, self).__init__(id=id, **kwargs) @@ -3405,10 +3397,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -3450,8 +3442,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -3651,10 +3643,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -3677,8 +3669,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -4184,10 +4176,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -4219,8 +4211,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineScaleSetExtension, self).__init__(**kwargs) @@ -4842,12 +4834,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -4859,30 +4850,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2017_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2017_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -5075,15 +5064,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2017_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetDataDisk] """ @@ -5559,25 +5546,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2017_12_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -5867,15 +5852,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -6054,11 +6038,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2017_12_01.models.SubResource @@ -6066,15 +6049,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -6216,9 +6198,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_images_operations.py index 7c0333e29240..822706e65b8a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_images_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -253,8 +253,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -372,8 +372,8 @@ def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_log_analytics_operations.py index 629101f8aff0..709712c8fd20 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_log_analytics_operations.py @@ -116,8 +116,8 @@ def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -238,8 +238,8 @@ def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_extensions_operations.py index aeafe636dc06..5f4c48a2dcf3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -389,8 +389,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_extensions_operations.py index 263368e2abe2..8581103d65bb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_extensions_operations.py @@ -130,8 +130,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -256,8 +256,8 @@ def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index cda54026446a..7045b96cf51c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -111,8 +111,8 @@ def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -231,8 +231,8 @@ def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_vms_operations.py index 20ae02fb8784..651e8157fa62 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_set_vms_operations.py @@ -117,8 +117,8 @@ def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -243,8 +243,8 @@ def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -370,8 +370,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -507,8 +507,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -633,8 +633,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -979,8 +979,8 @@ def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1104,8 +1104,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1229,8 +1229,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1355,8 +1355,8 @@ def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1480,8 +1480,8 @@ def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_sets_operations.py index ccfb624287f9..7eefa019ff30 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -249,8 +249,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -368,8 +368,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -559,8 +559,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -687,8 +687,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1170,8 +1170,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1301,8 +1301,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1432,8 +1432,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1564,8 +1564,8 @@ def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1687,8 +1687,8 @@ def begin_perform_maintenance( # type: (...) -> LROPoller["_models.OperationStatusResponse"] """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1698,8 +1698,8 @@ def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1826,8 +1826,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1957,8 +1957,8 @@ def begin_reimage( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -2089,8 +2089,8 @@ def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machines_operations.py index 274af0608c87..72cdb79f184d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/operations/_virtual_machines_operations.py @@ -257,8 +257,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -387,8 +387,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -517,8 +517,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -636,8 +636,8 @@ def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -869,8 +869,8 @@ def begin_convert_to_managed_disks( **kwargs # type: Any ): # type: (...) -> LROPoller["_models.OperationStatusResponse"] - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -878,8 +878,8 @@ def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -997,8 +997,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1391,8 +1391,8 @@ def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1509,8 +1509,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1627,8 +1627,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1745,8 +1745,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1863,8 +1863,8 @@ def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either OperationStatusResponse or the result of cls(response) @@ -1990,8 +1990,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2017_12_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_compute_management_client.py index 66b3b35b3cbc..fc297668612c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import Operations @@ -141,6 +142,24 @@ def __init__( self.snapshots = SnapshotsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_configuration.py index 4501af86bb29..0c64f76330c5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_metadata.json index 80809870a28f..c8c00ef72eea 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -116,11 +116,5 @@ "virtual_machine_run_commands": "VirtualMachineRunCommandsOperations", "disks": "DisksOperations", "snapshots": "SnapshotsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/_compute_management_client.py index 5e5dd5ce489b..c66fc12aa65e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -138,6 +139,23 @@ def __init__( self.snapshots = SnapshotsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/_configuration.py index 7880a1e10fe4..10389bfb4082 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_availability_sets_operations.py index d0a641f7d11b..5a4ee8243058 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -112,7 +112,7 @@ async def update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySetUpdate", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Update an availability set. @@ -177,7 +177,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an availability set. @@ -230,7 +230,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -287,7 +287,7 @@ async def get( def list_by_subscription( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -359,7 +359,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -430,7 +430,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_disks_operations.py index 2b07a0f09def..22382e9e1778 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2018_04_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2018_04_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk. @@ -421,8 +421,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_04_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a disk. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_images_operations.py index f2f37290552c..e361b67ce00e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_images_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Create or update an image. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Update an image. @@ -245,8 +245,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -303,7 +303,7 @@ async def _delete_initial( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -345,7 +345,7 @@ async def begin_delete( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an Image. @@ -355,8 +355,8 @@ async def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -410,7 +410,7 @@ async def get( resource_group_name: str, image_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Image": """Gets an image. @@ -471,7 +471,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of images under a resource group. @@ -540,7 +540,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_log_analytics_operations.py index ebddc22deede..f2ac568e826a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_log_analytics_operations.py @@ -46,7 +46,7 @@ async def _export_request_rate_by_interval_initial( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -99,7 +99,7 @@ async def begin_export_request_rate_by_interval( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show Api requests made by this subscription in the given time window to show throttling activities. @@ -110,8 +110,8 @@ async def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -166,7 +166,7 @@ async def _export_throttled_requests_initial( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -219,7 +219,7 @@ async def begin_export_throttled_requests( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show total throttled Api requests for this subscription in the given time window. @@ -230,8 +230,8 @@ async def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_operations.py index 3ae311719f3e..7ae9523fcfe2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ComputeOperationListResult"]: """Gets a list of compute operations. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_proximity_placement_groups_operations.py index 6c544e1e58ff..0e710f34d33f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_proximity_placement_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_proximity_placement_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroup", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Create or update a proximity placement group. @@ -116,7 +116,7 @@ async def update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Update a proximity placement group. @@ -181,7 +181,7 @@ async def delete( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a proximity placement group. @@ -234,7 +234,7 @@ async def get( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Retrieves information about a proximity placement group . @@ -290,7 +290,7 @@ async def get( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a subscription. @@ -357,7 +357,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a resource group. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_snapshots_operations.py index 8d3a105122db..ac1a423a536b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2018_04_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -249,8 +249,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2018_04_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a snapshot. @@ -421,8 +421,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_04_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a snapshot. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_usage_operations.py index 6fbad8dde605..382f1cbebd8c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_extension_images_operations.py index d39ae83ac780..0fff0193d18d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_extensions_operations.py index c11ccb2f909e..7a40a72425c1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -360,7 +360,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -372,8 +372,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -430,7 +430,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. @@ -496,7 +496,7 @@ async def list( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_images_operations.py index 7abff1bf5eb3..19b915ecc334 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_run_commands_operations.py index 86c5a121a13f..27732b6cf372 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_run_commands_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RunCommandListResult"]: """Lists all available run commands for a subscription in a location. @@ -115,7 +115,7 @@ async def get( self, location: str, command_id: str, - **kwargs + **kwargs: Any ) -> "_models.RunCommandDocument": """Gets specific run command for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py index 89b3c6457563..4bb814966f9f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to create or update an extension. @@ -124,8 +124,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -229,7 +229,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -241,8 +241,8 @@ async def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -299,7 +299,7 @@ async def get( vm_scale_set_name: str, vmss_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": """The operation to get the extension. @@ -364,7 +364,7 @@ def list( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetExtensionListResult"]: """Gets a list of all extensions in a VM scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index c8f4cc9ef5cc..91df93246e17 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -46,7 +46,7 @@ async def _cancel_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -88,7 +88,7 @@ async def begin_cancel( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Cancels the current virtual machine scale set rolling upgrade. @@ -98,8 +98,8 @@ async def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -152,7 +152,7 @@ async def _start_os_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -194,7 +194,7 @@ async def begin_start_os_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available @@ -206,8 +206,8 @@ async def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -260,7 +260,7 @@ async def get_latest( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.RollingUpgradeStatusInfo": """Gets the status of the latest virtual machine scale set rolling upgrade. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_vms_operations.py index 7f67a5ea2991..ccb95ca7e9e4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -48,7 +48,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -92,7 +92,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -104,8 +104,8 @@ async def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -161,7 +161,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -205,7 +205,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. @@ -218,8 +218,8 @@ async def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -275,7 +275,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -319,7 +319,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -333,8 +333,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -391,7 +391,7 @@ async def _update_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] error_map = { @@ -450,7 +450,7 @@ async def begin_update( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVM"]: """Updates a virtual machine of a VM scale set. @@ -465,8 +465,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -526,7 +526,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -570,7 +570,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a virtual machine from a VM scale set. @@ -582,8 +582,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -639,7 +639,7 @@ async def get( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -701,7 +701,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -765,7 +765,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -855,7 +855,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -899,7 +899,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -913,8 +913,8 @@ async def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -970,7 +970,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1014,7 +1014,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts a virtual machine in a VM scale set. @@ -1026,8 +1026,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1083,7 +1083,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1127,7 +1127,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a virtual machine in a VM scale set. @@ -1139,8 +1139,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1196,7 +1196,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1240,7 +1240,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. @@ -1253,8 +1253,8 @@ async def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1310,7 +1310,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1354,7 +1354,7 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Performs maintenance on a virtual machine in a VM scale set. @@ -1366,8 +1366,8 @@ async def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1424,7 +1424,7 @@ async def _run_command_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1481,7 +1481,7 @@ async def begin_run_command( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on a virtual machine in a VM scale set. @@ -1495,8 +1495,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_sets_operations.py index b80fefb7dce9..d4dff44b47da 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -229,7 +229,7 @@ async def begin_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Update a VM scale set. @@ -241,8 +241,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -299,7 +299,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -341,7 +341,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a VM scale set. @@ -351,8 +351,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -405,7 +405,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -464,7 +464,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -515,7 +515,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -529,8 +529,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -585,7 +585,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -633,7 +633,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes virtual machines in a VM scale set. @@ -645,8 +645,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -700,7 +700,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -757,7 +757,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -826,7 +826,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -896,7 +896,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -971,7 +971,7 @@ def get_os_upgrade_history( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListOSUpgradeHistory"]: """Gets list of OS upgrades on a VM scale set instance. @@ -1046,7 +1046,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1097,7 +1097,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -1111,8 +1111,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1167,7 +1167,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1218,7 +1218,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts one or more virtual machines in a VM scale set. @@ -1230,8 +1230,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1286,7 +1286,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1337,7 +1337,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts one or more virtual machines in a VM scale set. @@ -1349,8 +1349,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1405,7 +1405,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1456,7 +1456,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. @@ -1469,8 +1469,8 @@ async def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1525,7 +1525,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1576,12 +1576,12 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1591,8 +1591,8 @@ async def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1647,7 +1647,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1695,7 +1695,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1707,8 +1707,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1763,7 +1763,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1814,7 +1814,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set. @@ -1826,8 +1826,8 @@ async def begin_reimage( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1882,7 +1882,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1933,7 +1933,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. @@ -1946,8 +1946,8 @@ async def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2002,7 +2002,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( resource_group_name: str, vm_scale_set_name: str, platform_update_domain: int, - **kwargs + **kwargs: Any ) -> "_models.RecoveryWalkResponse": """Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_sizes_operations.py index b9cce48c8ec4..775003f706dd 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machine_sizes_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machines_operations.py index fefae9996a03..f68a7026e27f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_virtual_machines_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Gets all the virtual machines under the specified subscription for the specified location. @@ -118,7 +118,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -173,7 +173,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -186,8 +186,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -245,7 +245,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -302,7 +302,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. @@ -314,8 +314,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -373,7 +373,7 @@ async def _update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -430,7 +430,7 @@ async def begin_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to update a virtual machine. @@ -442,8 +442,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -500,7 +500,7 @@ async def _delete_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -542,7 +542,7 @@ async def begin_delete( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete a virtual machine. @@ -552,8 +552,8 @@ async def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -607,7 +607,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -669,7 +669,7 @@ async def instance_view( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineInstanceView": """Retrieves information about the run-time state of a virtual machine. @@ -727,7 +727,7 @@ async def _convert_to_managed_disks_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -769,10 +769,10 @@ async def begin_convert_to_managed_disks( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -780,8 +780,8 @@ async def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -834,7 +834,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -876,7 +876,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -887,8 +887,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -941,7 +941,7 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: """Sets the state of the virtual machine to generalized. @@ -993,7 +993,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -1063,7 +1063,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -1132,7 +1132,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -1207,7 +1207,7 @@ async def _power_off_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1249,7 +1249,7 @@ async def begin_power_off( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -1260,8 +1260,8 @@ async def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1314,7 +1314,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1356,7 +1356,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to restart a virtual machine. @@ -1366,8 +1366,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1420,7 +1420,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1462,7 +1462,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to start a virtual machine. @@ -1472,8 +1472,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1526,7 +1526,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1568,7 +1568,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1578,8 +1578,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1632,7 +1632,7 @@ async def _perform_maintenance_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1674,7 +1674,7 @@ async def begin_perform_maintenance( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to perform maintenance on a virtual machine. @@ -1684,8 +1684,8 @@ async def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1739,7 +1739,7 @@ async def _run_command_initial( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1794,7 +1794,7 @@ async def begin_run_command( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on the VM. @@ -1806,8 +1806,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_compute_management_client_enums.py index 58f660377804..02ae9ee27229 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_compute_management_client_enums.py @@ -238,8 +238,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. + see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models.py index c12efbe5d4d6..4fd908ad2ab2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models.py @@ -42,8 +42,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -1000,11 +1000,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -1362,13 +1362,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_04_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_04_01.models.ImageDataDisk] :param 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). @@ -1985,9 +1985,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -1998,12 +1996,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -2015,30 +2012,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_04_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_04_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -3062,8 +3057,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -3091,13 +3085,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_04_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_04_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_04_01.models.DataDisk] """ @@ -3419,9 +3413,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -3534,11 +3528,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_04_01.models.SubResource @@ -3550,15 +3543,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -3697,9 +3689,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -3760,10 +3752,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -3975,10 +3967,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -4313,8 +4305,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_04_01.models.SubResource """ @@ -4452,10 +4444,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -5074,12 +5066,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -5091,30 +5082,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_04_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_04_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -5297,15 +5286,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_04_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetDataDisk] """ @@ -5350,8 +5337,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): false. However, if singlePlacementGroup is false, it may not be modified to true. :type single_placement_group: bool :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_04_01.models.SubResource """ @@ -5735,25 +5722,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_04_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -6017,15 +6002,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -6186,11 +6170,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_04_01.models.SubResource @@ -6202,15 +6185,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -6334,9 +6316,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models_py3.py index bfc4ae8af2b5..57ebb3e376ba 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -47,8 +47,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -1101,11 +1101,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -1501,13 +1501,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_04_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_04_01.models.ImageDataDisk] :param 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). @@ -2195,9 +2195,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -2208,12 +2206,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -2225,30 +2222,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_04_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_04_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -3372,8 +3367,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -3404,13 +3398,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_04_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_04_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_04_01.models.DataDisk] """ @@ -3755,9 +3749,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -3878,11 +3872,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_04_01.models.SubResource @@ -3894,15 +3887,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -4063,9 +4055,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -4128,10 +4120,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -4173,8 +4165,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -4374,10 +4366,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -4400,8 +4392,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -4753,8 +4745,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_04_01.models.SubResource """ @@ -4914,10 +4906,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str """ @@ -4949,8 +4941,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineScaleSetExtension, self).__init__(**kwargs) @@ -5606,12 +5598,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -5623,30 +5614,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_04_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_04_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -5844,15 +5833,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_04_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetDataDisk] """ @@ -5901,8 +5888,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): false. However, if singlePlacementGroup is false, it may not be modified to true. :type single_placement_group: bool :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_04_01.models.SubResource """ @@ -6344,25 +6331,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_04_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -6655,15 +6640,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -6842,11 +6826,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_04_01.models.SubResource @@ -6858,15 +6841,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -7011,9 +6993,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_disks_operations.py index 4a8b761790af..73fdb12b9837 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2018_04_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2018_04_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_04_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_images_operations.py index b5c9a49d8211..5529e69f6603 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_images_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -253,8 +253,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -365,8 +365,8 @@ def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_log_analytics_operations.py index b72e29b92e9d..b03b2c3fe005 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_log_analytics_operations.py @@ -116,8 +116,8 @@ def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -238,8 +238,8 @@ def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_snapshots_operations.py index cf47607a2f07..b120d227d8b9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_snapshots_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2018_04_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2018_04_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_04_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_extensions_operations.py index b4c9f4a1c6b2..ba425c162acc 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -382,8 +382,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_extensions_operations.py index 536801d8f076..52eb3ce64d9a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_extensions_operations.py @@ -130,8 +130,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -249,8 +249,8 @@ def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index b603a58d6716..bf99e87fd193 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -104,8 +104,8 @@ def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -214,8 +214,8 @@ def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_vms_operations.py index 64971c0427be..d0219e46f8da 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_set_vms_operations.py @@ -110,8 +110,8 @@ def begin_reimage( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -226,8 +226,8 @@ def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -343,8 +343,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -477,8 +477,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -596,8 +596,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -932,8 +932,8 @@ def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1047,8 +1047,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1162,8 +1162,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1278,8 +1278,8 @@ def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1393,8 +1393,8 @@ def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1524,8 +1524,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_sets_operations.py index 8f09706e57df..f97479cbec7d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -249,8 +249,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -361,8 +361,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -542,8 +542,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -660,8 +660,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1133,8 +1133,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1254,8 +1254,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1375,8 +1375,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1497,8 +1497,8 @@ def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1610,8 +1610,8 @@ def begin_perform_maintenance( # type: (...) -> LROPoller[None] """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1621,8 +1621,8 @@ def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1739,8 +1739,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1860,8 +1860,8 @@ def begin_reimage( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1982,8 +1982,8 @@ def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machines_operations.py index 247e44fba2e1..38aabbfa76d0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_virtual_machines_operations.py @@ -193,8 +193,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -323,8 +323,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -453,8 +453,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -565,8 +565,8 @@ def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -788,8 +788,8 @@ def begin_convert_to_managed_disks( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -797,8 +797,8 @@ def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -906,8 +906,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1285,8 +1285,8 @@ def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1393,8 +1393,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1501,8 +1501,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1609,8 +1609,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1717,8 +1717,8 @@ def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1841,8 +1841,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_04_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_compute_management_client.py index b4d1044819de..ba4eb57001ab 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import Operations @@ -156,6 +157,24 @@ def __init__( self.snapshots = SnapshotsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_configuration.py index b8a65bf8e1e3..53f2bbe2598e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_metadata.json index edce950cfe3f..c7b04b3e9c7f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -119,11 +119,5 @@ "gallery_image_versions": "GalleryImageVersionsOperations", "disks": "DisksOperations", "snapshots": "SnapshotsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/_compute_management_client.py index 030b7ef0107e..1d384255611a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -153,6 +154,23 @@ def __init__( self.snapshots = SnapshotsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/_configuration.py index df4fac45723e..2a81d224562c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_availability_sets_operations.py index 78d03dea71d6..189c143df412 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -112,7 +112,7 @@ async def update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySetUpdate", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Update an availability set. @@ -177,7 +177,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an availability set. @@ -230,7 +230,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -287,7 +287,7 @@ async def get( def list_by_subscription( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -359,7 +359,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -430,7 +430,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_disks_operations.py index 433f94e9832c..e034f43f96c7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2018_06_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2018_06_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk. @@ -421,8 +421,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_06_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a disk. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_galleries_operations.py index 78b2fc627334..9e3798ff7a05 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_galleries_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, gallery_name: str, gallery: "_models.Gallery", - **kwargs + **kwargs: Any ) -> "_models.Gallery": cls = kwargs.pop('cls', None) # type: ClsType["_models.Gallery"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( resource_group_name: str, gallery_name: str, gallery: "_models.Gallery", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Gallery"]: """Create or update a Shared Image Gallery. @@ -121,8 +121,8 @@ async def begin_create_or_update( :type gallery: ~azure.mgmt.compute.v2018_06_01.models.Gallery :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Gallery or the result of cls(response) @@ -179,7 +179,7 @@ async def get( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> "_models.Gallery": """Retrieves information about a Shared Image Gallery. @@ -237,7 +237,7 @@ async def _delete_initial( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -281,7 +281,7 @@ async def begin_delete( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a Shared Image Gallery. @@ -291,8 +291,8 @@ async def begin_delete( :type gallery_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -344,7 +344,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryList"]: """List galleries under a resource group. @@ -413,7 +413,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryList"]: """List galleries under a subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_gallery_image_versions_operations.py index 0cfbe0448483..ff05b21925e7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_gallery_image_versions_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersion", - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImageVersion"] error_map = { @@ -114,7 +114,7 @@ async def begin_create_or_update( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersion", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImageVersion"]: """Create or update a gallery Image Version. @@ -136,8 +136,8 @@ async def begin_create_or_update( :type gallery_image_version: ~azure.mgmt.compute.v2018_06_01.models.GalleryImageVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -201,7 +201,7 @@ async def get( gallery_image_name: str, gallery_image_version_name: str, expand: Optional[Union[str, "_models.ReplicationStatusTypes"]] = None, - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": """Retrieves information about a gallery Image Version. @@ -273,7 +273,7 @@ async def _delete_initial( gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -321,7 +321,7 @@ async def begin_delete( gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Image Version. @@ -337,8 +337,8 @@ async def begin_delete( :type gallery_image_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -396,7 +396,7 @@ def list_by_gallery_image( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryImageVersionList"]: """List gallery Image Versions in a gallery Image Definition. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_gallery_images_operations.py index f9941c8295ac..193d856738e2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_gallery_images_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImage", - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImage"] error_map = { @@ -111,7 +111,7 @@ async def begin_create_or_update( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImage", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImage"]: """Create or update a gallery Image Definition. @@ -128,8 +128,8 @@ async def begin_create_or_update( :type gallery_image: ~azure.mgmt.compute.v2018_06_01.models.GalleryImage :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImage or the result of cls(response) @@ -189,7 +189,7 @@ async def get( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": """Retrieves information about a gallery Image Definition. @@ -252,7 +252,7 @@ async def _delete_initial( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -298,7 +298,7 @@ async def begin_delete( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery image. @@ -311,8 +311,8 @@ async def begin_delete( :type gallery_image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -367,7 +367,7 @@ def list_by_gallery( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryImageList"]: """List gallery Image Definitions in a gallery. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_images_operations.py index 6f430ce37776..f2be7fc8b6b6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_images_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Create or update an image. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Update an image. @@ -245,8 +245,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -303,7 +303,7 @@ async def _delete_initial( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -345,7 +345,7 @@ async def begin_delete( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an Image. @@ -355,8 +355,8 @@ async def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -410,7 +410,7 @@ async def get( resource_group_name: str, image_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Image": """Gets an image. @@ -471,7 +471,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of images under a resource group. @@ -540,7 +540,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_log_analytics_operations.py index 35815ed24467..ae1d6cd3a269 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_log_analytics_operations.py @@ -46,7 +46,7 @@ async def _export_request_rate_by_interval_initial( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -99,7 +99,7 @@ async def begin_export_request_rate_by_interval( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show Api requests made by this subscription in the given time window to show throttling activities. @@ -110,8 +110,8 @@ async def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -166,7 +166,7 @@ async def _export_throttled_requests_initial( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -219,7 +219,7 @@ async def begin_export_throttled_requests( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show total throttled Api requests for this subscription in the given time window. @@ -230,8 +230,8 @@ async def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_operations.py index 279070387501..d4793e6ff717 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ComputeOperationListResult"]: """Gets a list of compute operations. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_proximity_placement_groups_operations.py index 333ff9feade6..b5a63b127baf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_proximity_placement_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_proximity_placement_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroup", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Create or update a proximity placement group. @@ -116,7 +116,7 @@ async def update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Update a proximity placement group. @@ -181,7 +181,7 @@ async def delete( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a proximity placement group. @@ -234,7 +234,7 @@ async def get( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Retrieves information about a proximity placement group . @@ -290,7 +290,7 @@ async def get( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a subscription. @@ -357,7 +357,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a resource group. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_snapshots_operations.py index 82db420be321..886c1cfa9605 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2018_06_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -249,8 +249,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2018_06_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a snapshot. @@ -421,8 +421,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_06_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a snapshot. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_usage_operations.py index fd1f4887a1ac..3097276585df 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_extension_images_operations.py index fe156c4acbc0..0c35459ba42b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_extensions_operations.py index 411e3cc39c12..b38d538ae328 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -360,7 +360,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -372,8 +372,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -430,7 +430,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. @@ -496,7 +496,7 @@ async def list( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_images_operations.py index 91a84772d0c7..2c70e0a089ed 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_run_commands_operations.py index 4193b00ed5df..330ef59280b0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_run_commands_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RunCommandListResult"]: """Lists all available run commands for a subscription in a location. @@ -115,7 +115,7 @@ async def get( self, location: str, command_id: str, - **kwargs + **kwargs: Any ) -> "_models.RunCommandDocument": """Gets specific run command for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py index 340b548eccf5..fd5c668cd975 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to create or update an extension. @@ -124,8 +124,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -229,7 +229,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -241,8 +241,8 @@ async def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -299,7 +299,7 @@ async def get( vm_scale_set_name: str, vmss_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": """The operation to get the extension. @@ -364,7 +364,7 @@ def list( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetExtensionListResult"]: """Gets a list of all extensions in a VM scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 8558a9ab5305..c3e17e02e39b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -46,7 +46,7 @@ async def _cancel_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -88,7 +88,7 @@ async def begin_cancel( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Cancels the current virtual machine scale set rolling upgrade. @@ -98,8 +98,8 @@ async def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -152,7 +152,7 @@ async def _start_os_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -194,7 +194,7 @@ async def begin_start_os_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available @@ -206,8 +206,8 @@ async def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -260,7 +260,7 @@ async def _start_extension_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -302,7 +302,7 @@ async def begin_start_extension_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest @@ -314,8 +314,8 @@ async def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -368,7 +368,7 @@ async def get_latest( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.RollingUpgradeStatusInfo": """Gets the status of the latest virtual machine scale set rolling upgrade. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_vms_operations.py index e959521be047..f4aa27d305dc 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -49,7 +49,7 @@ async def _reimage_initial( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -102,7 +102,7 @@ async def begin_reimage( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -116,8 +116,8 @@ async def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -174,7 +174,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -218,7 +218,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. @@ -231,8 +231,8 @@ async def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -288,7 +288,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -332,7 +332,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -346,8 +346,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -404,7 +404,7 @@ async def _update_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] error_map = { @@ -463,7 +463,7 @@ async def begin_update( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVM"]: """Updates a virtual machine of a VM scale set. @@ -478,8 +478,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -539,7 +539,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -583,7 +583,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a virtual machine from a VM scale set. @@ -595,8 +595,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -652,7 +652,7 @@ async def get( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -714,7 +714,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -778,7 +778,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -868,7 +868,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -912,7 +912,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -926,8 +926,8 @@ async def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -983,7 +983,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1027,7 +1027,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts a virtual machine in a VM scale set. @@ -1039,8 +1039,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1096,7 +1096,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1140,7 +1140,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a virtual machine in a VM scale set. @@ -1152,8 +1152,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1209,7 +1209,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1253,7 +1253,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. @@ -1266,8 +1266,8 @@ async def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1323,7 +1323,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1367,7 +1367,7 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Performs maintenance on a virtual machine in a VM scale set. @@ -1379,8 +1379,8 @@ async def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1437,7 +1437,7 @@ async def _run_command_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1494,7 +1494,7 @@ async def begin_run_command( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on a virtual machine in a VM scale set. @@ -1508,8 +1508,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_sets_operations.py index 09881a18084b..2513a79ae2ff 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -229,7 +229,7 @@ async def begin_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Update a VM scale set. @@ -241,8 +241,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -299,7 +299,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -341,7 +341,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a VM scale set. @@ -351,8 +351,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -405,7 +405,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -464,7 +464,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -515,7 +515,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -529,8 +529,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -585,7 +585,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -633,7 +633,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes virtual machines in a VM scale set. @@ -645,8 +645,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -700,7 +700,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -757,7 +757,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -826,7 +826,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -896,7 +896,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -971,7 +971,7 @@ def get_os_upgrade_history( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListOSUpgradeHistory"]: """Gets list of OS upgrades on a VM scale set instance. @@ -1046,7 +1046,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1097,7 +1097,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -1111,8 +1111,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1167,7 +1167,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1218,7 +1218,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts one or more virtual machines in a VM scale set. @@ -1230,8 +1230,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1286,7 +1286,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1337,7 +1337,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts one or more virtual machines in a VM scale set. @@ -1349,8 +1349,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1405,7 +1405,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1456,7 +1456,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. @@ -1469,8 +1469,8 @@ async def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1525,7 +1525,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1576,12 +1576,12 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1591,8 +1591,8 @@ async def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1647,7 +1647,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1695,7 +1695,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1707,8 +1707,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1763,7 +1763,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1814,7 +1814,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual @@ -1828,8 +1828,8 @@ async def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1884,7 +1884,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1935,7 +1935,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. @@ -1948,8 +1948,8 @@ async def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2004,7 +2004,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( resource_group_name: str, vm_scale_set_name: str, platform_update_domain: int, - **kwargs + **kwargs: Any ) -> "_models.RecoveryWalkResponse": """Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_sizes_operations.py index 68a993e8eaed..a47267f3d4a7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_sizes_operations.py @@ -44,10 +44,10 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machines_operations.py index 11fc78751276..5de57a5bd6d4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machines_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Gets all the virtual machines under the specified subscription for the specified location. @@ -118,7 +118,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -173,7 +173,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -186,8 +186,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -245,7 +245,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -302,7 +302,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. @@ -314,8 +314,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -373,7 +373,7 @@ async def _update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -430,7 +430,7 @@ async def begin_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to update a virtual machine. @@ -442,8 +442,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -500,7 +500,7 @@ async def _delete_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -542,7 +542,7 @@ async def begin_delete( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete a virtual machine. @@ -552,8 +552,8 @@ async def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -607,7 +607,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -669,7 +669,7 @@ async def instance_view( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineInstanceView": """Retrieves information about the run-time state of a virtual machine. @@ -727,7 +727,7 @@ async def _convert_to_managed_disks_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -769,10 +769,10 @@ async def begin_convert_to_managed_disks( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -780,8 +780,8 @@ async def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -834,7 +834,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -876,7 +876,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -887,8 +887,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -941,7 +941,7 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: """Sets the state of the virtual machine to generalized. @@ -993,7 +993,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -1063,7 +1063,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -1132,7 +1132,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -1207,7 +1207,7 @@ async def _power_off_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1249,7 +1249,7 @@ async def begin_power_off( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -1260,8 +1260,8 @@ async def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1314,7 +1314,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1356,7 +1356,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to restart a virtual machine. @@ -1366,8 +1366,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1420,7 +1420,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1462,7 +1462,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to start a virtual machine. @@ -1472,8 +1472,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1526,7 +1526,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1568,7 +1568,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1578,8 +1578,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1633,7 +1633,7 @@ async def _reimage_initial( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1684,7 +1684,7 @@ async def begin_reimage( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages the virtual machine which has an ephemeral OS disk back to its initial state. @@ -1696,8 +1696,8 @@ async def begin_reimage( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1751,7 +1751,7 @@ async def _perform_maintenance_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1793,7 +1793,7 @@ async def begin_perform_maintenance( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to perform maintenance on a virtual machine. @@ -1803,8 +1803,8 @@ async def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1858,7 +1858,7 @@ async def _run_command_initial( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1913,7 +1913,7 @@ async def begin_run_command( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on the VM. @@ -1925,8 +1925,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_compute_management_client_enums.py index 96e0578d41bc..ca7cbc2532ea 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_compute_management_client_enums.py @@ -325,8 +325,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. + see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models.py index 70a455d68bb7..88124dd0f194 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models.py @@ -64,8 +64,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -805,14 +805,12 @@ class Disk(Resource): :param disk_iops_read_write: The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. For a description of the range of values you can set, see `Ultra SSD Managed Disk Offerings - `_. + `_. :type disk_iops_read_write: long :param disk_m_bps_read_write: The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. For a description of the range of values you can set, see `Ultra SSD Managed Disk Offerings - `_. + `_. :type disk_m_bps_read_write: int """ @@ -1697,11 +1695,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -2086,13 +2084,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_06_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_06_01.models.ImageDataDisk] :param 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). @@ -2746,9 +2744,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -2759,12 +2755,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -2776,30 +2771,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_06_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_06_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -3949,8 +3942,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -3978,13 +3970,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_06_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_06_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_06_01.models.DataDisk] """ @@ -4366,9 +4358,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -4484,11 +4476,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_06_01.models.SubResource @@ -4500,15 +4491,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -4649,9 +4639,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -4712,10 +4702,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -4927,10 +4917,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -5286,8 +5276,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_06_01.models.SubResource """ @@ -5425,10 +5415,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -6094,12 +6084,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -6111,30 +6100,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_06_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_06_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -6365,15 +6352,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_06_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetDataDisk] """ @@ -6418,8 +6403,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): false. However, if singlePlacementGroup is false, it may not be modified to true. :type single_placement_group: bool :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_06_01.models.SubResource """ @@ -6812,25 +6797,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_06_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -7100,15 +7083,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -7274,11 +7256,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_06_01.models.SubResource @@ -7290,15 +7271,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -7424,9 +7404,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models_py3.py index e09460ad8d9c..e02dcb752082 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -71,8 +71,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -877,14 +877,12 @@ class Disk(Resource): :param disk_iops_read_write: The number of IOPS allowed for this disk; only settable for UltraSSD disks. One operation can transfer between 4k and 256k bytes. For a description of the range of values you can set, see `Ultra SSD Managed Disk Offerings - `_. + `_. :type disk_iops_read_write: long :param disk_m_bps_read_write: The bandwidth allowed for this disk; only settable for UltraSSD disks. MBps means millions of bytes per second - MB here uses the ISO notation, of powers of 10. For a description of the range of values you can set, see `Ultra SSD Managed Disk Offerings - `_. + `_. :type disk_m_bps_read_write: int """ @@ -1855,11 +1853,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -2286,13 +2284,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_06_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_06_01.models.ImageDataDisk] :param 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). @@ -3021,9 +3019,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -3034,12 +3030,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -3051,30 +3046,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_06_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_06_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -4331,8 +4324,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -4363,13 +4355,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_06_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_06_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_06_01.models.DataDisk] """ @@ -4777,9 +4769,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -4903,11 +4895,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_06_01.models.SubResource @@ -4919,15 +4910,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -5091,9 +5081,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -5156,10 +5146,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -5201,8 +5191,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -5402,10 +5392,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -5428,8 +5418,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -5804,8 +5794,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_06_01.models.SubResource """ @@ -5965,10 +5955,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -6004,8 +5994,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): @@ -6707,12 +6697,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -6724,30 +6713,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_06_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_06_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -6999,15 +6986,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_06_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetDataDisk] """ @@ -7056,8 +7041,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): false. However, if singlePlacementGroup is false, it may not be modified to true. :type single_placement_group: bool :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_06_01.models.SubResource """ @@ -7509,25 +7494,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_06_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -7827,15 +7810,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -8020,11 +8002,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_06_01.models.SubResource @@ -8036,15 +8017,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -8192,9 +8172,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_disks_operations.py index 7d072af1b147..31d0599fccc0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2018_06_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2018_06_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_06_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_galleries_operations.py index 32d23b0e44cd..5826710edf73 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_galleries_operations.py @@ -127,8 +127,8 @@ def begin_create_or_update( :type gallery: ~azure.mgmt.compute.v2018_06_01.models.Gallery :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Gallery or the result of cls(response) @@ -300,8 +300,8 @@ def begin_delete( :type gallery_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_gallery_image_versions_operations.py index 5b1b39abe19c..cc5b6d8000c6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_gallery_image_versions_operations.py @@ -142,8 +142,8 @@ def begin_create_or_update( :type gallery_image_version: ~azure.mgmt.compute.v2018_06_01.models.GalleryImageVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -346,8 +346,8 @@ def begin_delete( :type gallery_image_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_gallery_images_operations.py index eb5eb7c7b400..bf8a95fa88ec 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_gallery_images_operations.py @@ -134,8 +134,8 @@ def begin_create_or_update( :type gallery_image: ~azure.mgmt.compute.v2018_06_01.models.GalleryImage :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImage or the result of cls(response) @@ -320,8 +320,8 @@ def begin_delete( :type gallery_image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_images_operations.py index 8b7e2abf2fa5..6285754477f8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_images_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -253,8 +253,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -365,8 +365,8 @@ def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_log_analytics_operations.py index fa9ed48dec35..0a9db2685700 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_log_analytics_operations.py @@ -116,8 +116,8 @@ def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -238,8 +238,8 @@ def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_snapshots_operations.py index b904a99d0aaf..feb5b51e192b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_snapshots_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2018_06_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2018_06_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_06_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_extensions_operations.py index 1dd8368b2221..45f03830bc44 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -382,8 +382,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_extensions_operations.py index b46f1dbc11b2..22e6fb68d125 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_extensions_operations.py @@ -130,8 +130,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -249,8 +249,8 @@ def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 4bb61b7b529d..c652df5de931 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -104,8 +104,8 @@ def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -214,8 +214,8 @@ def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -324,8 +324,8 @@ def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_vms_operations.py index c695c5162501..55ec1add96df 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_set_vms_operations.py @@ -122,8 +122,8 @@ def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -239,8 +239,8 @@ def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -356,8 +356,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -490,8 +490,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -609,8 +609,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -945,8 +945,8 @@ def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1060,8 +1060,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1175,8 +1175,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1291,8 +1291,8 @@ def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1406,8 +1406,8 @@ def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1537,8 +1537,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_sets_operations.py index 17ae2a92908b..44a9c5fee11b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -249,8 +249,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -361,8 +361,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -542,8 +542,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -660,8 +660,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1133,8 +1133,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1254,8 +1254,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1375,8 +1375,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1497,8 +1497,8 @@ def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1610,8 +1610,8 @@ def begin_perform_maintenance( # type: (...) -> LROPoller[None] """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1621,8 +1621,8 @@ def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1739,8 +1739,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1862,8 +1862,8 @@ def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1984,8 +1984,8 @@ def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_sizes_operations.py index b28e79182942..f2bc4c21ba75 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machine_sizes_operations.py @@ -51,8 +51,8 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.VirtualMachineSizeListResult"] - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machines_operations.py index ab0ecb90d6fc..39a49d93298d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_virtual_machines_operations.py @@ -193,8 +193,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -323,8 +323,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -453,8 +453,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -565,8 +565,8 @@ def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -788,8 +788,8 @@ def begin_convert_to_managed_disks( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -797,8 +797,8 @@ def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -906,8 +906,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1285,8 +1285,8 @@ def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1393,8 +1393,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1501,8 +1501,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1609,8 +1609,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1729,8 +1729,8 @@ def begin_reimage( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1838,8 +1838,8 @@ def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1962,8 +1962,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_06_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_compute_management_client.py index d85a35770ba6..ce1bd9e74923 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import DisksOperations @@ -61,6 +62,24 @@ def __init__( self.snapshots = SnapshotsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_configuration.py index 7801cdce2453..00c450b59f77 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_metadata.json index 011e4887759a..4e66a6ba24cc 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -100,11 +100,5 @@ "operation_groups": { "disks": "DisksOperations", "snapshots": "SnapshotsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/_compute_management_client.py index 41d9fcafc629..bbfd95310e8f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -58,6 +59,23 @@ def __init__( self.snapshots = SnapshotsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/_configuration.py index 327ec20f41c5..002e4033854e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/operations/_disks_operations.py index c2da71dbef48..2e07fb2dd4e8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2018_09_30.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2018_09_30.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk. @@ -421,8 +421,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_09_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a disk. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/operations/_snapshots_operations.py index 7e3ad5c95046..69412df70b6b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2018_09_30.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -249,8 +249,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2018_09_30.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a snapshot. @@ -421,8 +421,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_09_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a snapshot. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/operations/_disks_operations.py index d2323250c5b9..e546e3ca1e85 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2018_09_30.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2018_09_30.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_09_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/operations/_snapshots_operations.py index 5b45f243f7db..7d2b91b55e37 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/operations/_snapshots_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2018_09_30.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2018_09_30.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2018_09_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_compute_management_client.py index f205577bc9ed..a85fe3ab63dd 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import Operations @@ -131,6 +132,24 @@ def __init__( self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_configuration.py index 56f50ffd73c1..0597be64765b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_metadata.json index 385daad7a10b..f2e899dafd84 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -114,11 +114,5 @@ "virtual_machine_scale_set_vms": "VirtualMachineScaleSetVMsOperations", "log_analytics": "LogAnalyticsOperations", "virtual_machine_run_commands": "VirtualMachineRunCommandsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/_compute_management_client.py index 4109da03e7d8..eb1c9ec7f7c1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -128,6 +129,23 @@ def __init__( self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/_configuration.py index d226c1829dd6..43f774c21d5f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_availability_sets_operations.py index 79d9d14574c2..9bd3b3021cdf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -112,7 +112,7 @@ async def update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySetUpdate", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Update an availability set. @@ -177,7 +177,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an availability set. @@ -230,7 +230,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -287,7 +287,7 @@ async def get( def list_by_subscription( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -359,7 +359,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -430,7 +430,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_images_operations.py index 21e1ade3697e..311b04713ed3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_images_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Create or update an image. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Update an image. @@ -245,8 +245,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -303,7 +303,7 @@ async def _delete_initial( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -345,7 +345,7 @@ async def begin_delete( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an Image. @@ -355,8 +355,8 @@ async def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -410,7 +410,7 @@ async def get( resource_group_name: str, image_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Image": """Gets an image. @@ -471,7 +471,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of images under a resource group. @@ -540,7 +540,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_log_analytics_operations.py index b78f7f806f28..334a429dd334 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_log_analytics_operations.py @@ -46,7 +46,7 @@ async def _export_request_rate_by_interval_initial( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -99,7 +99,7 @@ async def begin_export_request_rate_by_interval( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show Api requests made by this subscription in the given time window to show throttling activities. @@ -110,8 +110,8 @@ async def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -166,7 +166,7 @@ async def _export_throttled_requests_initial( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -219,7 +219,7 @@ async def begin_export_throttled_requests( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show total throttled Api requests for this subscription in the given time window. @@ -230,8 +230,8 @@ async def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_operations.py index 564bd11abdba..534d5e46385e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ComputeOperationListResult"]: """Gets a list of compute operations. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_proximity_placement_groups_operations.py index bc4069161dc2..45c1c07580e4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_proximity_placement_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_proximity_placement_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroup", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Create or update a proximity placement group. @@ -116,7 +116,7 @@ async def update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Update a proximity placement group. @@ -181,7 +181,7 @@ async def delete( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a proximity placement group. @@ -234,7 +234,7 @@ async def get( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Retrieves information about a proximity placement group . @@ -290,7 +290,7 @@ async def get( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a subscription. @@ -357,7 +357,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a resource group. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_usage_operations.py index ca2cd188f79d..46436dfd27d9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_extension_images_operations.py index 1852b658bb79..21dc02b80627 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_extensions_operations.py index 7a4acec00564..1aa79728041c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -360,7 +360,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -372,8 +372,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -430,7 +430,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. @@ -496,7 +496,7 @@ async def list( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_images_operations.py index e4bd6c017677..fb9f71ad6d1b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_run_commands_operations.py index 54c9df205aad..14f46b2a0a20 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_run_commands_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RunCommandListResult"]: """Lists all available run commands for a subscription in a location. @@ -115,7 +115,7 @@ async def get( self, location: str, command_id: str, - **kwargs + **kwargs: Any ) -> "_models.RunCommandDocument": """Gets specific run command for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py index 72b30b4b1998..8ed3e33d8ed2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to create or update an extension. @@ -124,8 +124,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -229,7 +229,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -241,8 +241,8 @@ async def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -299,7 +299,7 @@ async def get( vm_scale_set_name: str, vmss_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": """The operation to get the extension. @@ -364,7 +364,7 @@ def list( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetExtensionListResult"]: """Gets a list of all extensions in a VM scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 7c8ed0cd5e48..781792adda52 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -46,7 +46,7 @@ async def _cancel_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -88,7 +88,7 @@ async def begin_cancel( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Cancels the current virtual machine scale set rolling upgrade. @@ -98,8 +98,8 @@ async def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -152,7 +152,7 @@ async def _start_os_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -194,7 +194,7 @@ async def begin_start_os_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available @@ -206,8 +206,8 @@ async def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -260,7 +260,7 @@ async def _start_extension_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -302,7 +302,7 @@ async def begin_start_extension_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest @@ -314,8 +314,8 @@ async def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -368,7 +368,7 @@ async def get_latest( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.RollingUpgradeStatusInfo": """Gets the status of the latest virtual machine scale set rolling upgrade. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_vms_operations.py index 0a4602dbdbd0..658770e712a9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -49,7 +49,7 @@ async def _reimage_initial( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -102,7 +102,7 @@ async def begin_reimage( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -116,8 +116,8 @@ async def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -174,7 +174,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -218,7 +218,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. @@ -231,8 +231,8 @@ async def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -288,7 +288,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -332,7 +332,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -346,8 +346,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -404,7 +404,7 @@ async def _update_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] error_map = { @@ -463,7 +463,7 @@ async def begin_update( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVM"]: """Updates a virtual machine of a VM scale set. @@ -478,8 +478,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -539,7 +539,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -583,7 +583,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a virtual machine from a VM scale set. @@ -595,8 +595,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -652,7 +652,7 @@ async def get( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -714,7 +714,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -778,7 +778,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -868,7 +868,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -912,7 +912,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -926,8 +926,8 @@ async def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -983,7 +983,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1027,7 +1027,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts a virtual machine in a VM scale set. @@ -1039,8 +1039,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1096,7 +1096,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1140,7 +1140,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a virtual machine in a VM scale set. @@ -1152,8 +1152,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1209,7 +1209,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1253,7 +1253,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. @@ -1266,8 +1266,8 @@ async def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1323,7 +1323,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1367,7 +1367,7 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Performs maintenance on a virtual machine in a VM scale set. @@ -1379,8 +1379,8 @@ async def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1437,7 +1437,7 @@ async def _run_command_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1494,7 +1494,7 @@ async def begin_run_command( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on a virtual machine in a VM scale set. @@ -1508,8 +1508,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_sets_operations.py index c91a1b1eec11..352036f030a6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -229,7 +229,7 @@ async def begin_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Update a VM scale set. @@ -241,8 +241,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -299,7 +299,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -341,7 +341,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a VM scale set. @@ -351,8 +351,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -405,7 +405,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -464,7 +464,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -515,7 +515,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -529,8 +529,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -585,7 +585,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -633,7 +633,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes virtual machines in a VM scale set. @@ -645,8 +645,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -700,7 +700,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -757,7 +757,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -826,7 +826,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -896,7 +896,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -971,7 +971,7 @@ def get_os_upgrade_history( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListOSUpgradeHistory"]: """Gets list of OS upgrades on a VM scale set instance. @@ -1046,7 +1046,7 @@ async def _power_off_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1097,7 +1097,7 @@ async def begin_power_off( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -1111,8 +1111,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1167,7 +1167,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1218,7 +1218,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts one or more virtual machines in a VM scale set. @@ -1230,8 +1230,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1286,7 +1286,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1337,7 +1337,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts one or more virtual machines in a VM scale set. @@ -1349,8 +1349,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1405,7 +1405,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1456,7 +1456,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. @@ -1469,8 +1469,8 @@ async def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1525,7 +1525,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1576,12 +1576,12 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1591,8 +1591,8 @@ async def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1647,7 +1647,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1695,7 +1695,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1707,8 +1707,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1763,7 +1763,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1814,7 +1814,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual @@ -1828,8 +1828,8 @@ async def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1884,7 +1884,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1935,7 +1935,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. @@ -1948,8 +1948,8 @@ async def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2004,7 +2004,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( resource_group_name: str, vm_scale_set_name: str, platform_update_domain: int, - **kwargs + **kwargs: Any ) -> "_models.RecoveryWalkResponse": """Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_sizes_operations.py index 5023b2c4dfa2..0787c2a1f4e8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machine_sizes_operations.py @@ -44,10 +44,10 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machines_operations.py index 086f7b94f780..384538081a19 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/aio/operations/_virtual_machines_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Gets all the virtual machines under the specified subscription for the specified location. @@ -118,7 +118,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -173,7 +173,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -186,8 +186,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -245,7 +245,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -302,7 +302,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. @@ -314,8 +314,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -373,7 +373,7 @@ async def _update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -430,7 +430,7 @@ async def begin_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to update a virtual machine. @@ -442,8 +442,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -500,7 +500,7 @@ async def _delete_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -542,7 +542,7 @@ async def begin_delete( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete a virtual machine. @@ -552,8 +552,8 @@ async def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -607,7 +607,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -669,7 +669,7 @@ async def instance_view( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineInstanceView": """Retrieves information about the run-time state of a virtual machine. @@ -727,7 +727,7 @@ async def _convert_to_managed_disks_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -769,10 +769,10 @@ async def begin_convert_to_managed_disks( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -780,8 +780,8 @@ async def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -834,7 +834,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -876,7 +876,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -887,8 +887,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -941,7 +941,7 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: """Sets the state of the virtual machine to generalized. @@ -993,7 +993,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -1063,7 +1063,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -1132,7 +1132,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -1207,7 +1207,7 @@ async def _power_off_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1249,7 +1249,7 @@ async def begin_power_off( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -1260,8 +1260,8 @@ async def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1314,7 +1314,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1356,7 +1356,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to restart a virtual machine. @@ -1366,8 +1366,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1420,7 +1420,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1462,7 +1462,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to start a virtual machine. @@ -1472,8 +1472,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1526,7 +1526,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1568,7 +1568,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1578,8 +1578,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1633,7 +1633,7 @@ async def _reimage_initial( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1684,7 +1684,7 @@ async def begin_reimage( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages the virtual machine which has an ephemeral OS disk back to its initial state. @@ -1696,8 +1696,8 @@ async def begin_reimage( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1751,7 +1751,7 @@ async def _perform_maintenance_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1793,7 +1793,7 @@ async def begin_perform_maintenance( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to perform maintenance on a virtual machine. @@ -1803,8 +1803,8 @@ async def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1858,7 +1858,7 @@ async def _run_command_initial( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1913,7 +1913,7 @@ async def begin_run_command( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on the VM. @@ -1925,8 +1925,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_compute_management_client_enums.py index ed91fc9c5d09..866e704e5eee 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_compute_management_client_enums.py @@ -229,8 +229,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. + see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models.py index 427803b49980..91590daa2e31 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models.py @@ -39,8 +39,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -165,8 +165,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. If this is set to true for Windows based scale sets, recommendation is to set `enableAutomaticUpdates - `_ to false. + `_ + to false. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -795,11 +795,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -1126,13 +1126,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_10_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_10_01.models.ImageDataDisk] :param 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). @@ -1701,9 +1701,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -1714,12 +1712,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1731,30 +1728,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_10_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_10_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -2587,8 +2582,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -2616,13 +2610,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_10_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_10_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_10_01.models.DataDisk] """ @@ -2970,9 +2964,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -3088,11 +3082,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_10_01.models.SubResource @@ -3104,15 +3097,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -3253,9 +3245,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -3316,10 +3308,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -3531,10 +3523,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -3901,8 +3893,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_10_01.models.SubResource """ @@ -4044,10 +4036,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -4713,12 +4705,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -4730,30 +4721,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_10_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_10_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -4984,15 +4973,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_10_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetDataDisk] """ @@ -5043,8 +5030,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): false. However, if singlePlacementGroup is false, it may not be modified to true. :type single_placement_group: bool :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_10_01.models.SubResource """ @@ -5441,25 +5428,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_10_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -5729,15 +5714,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -5903,11 +5887,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_10_01.models.SubResource @@ -5919,15 +5902,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -6054,9 +6036,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models_py3.py index 10a66b562bf1..8eff37093a44 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -46,8 +46,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -187,8 +187,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. If this is set to true for Windows based scale sets, recommendation is to set `enableAutomaticUpdates - `_ to false. + `_ + to false. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -873,11 +873,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -1239,13 +1239,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_10_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_10_01.models.ImageDataDisk] :param 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). @@ -1881,9 +1881,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -1894,12 +1892,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -1911,30 +1908,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_10_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_10_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -2847,8 +2842,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -2879,13 +2873,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_10_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_10_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_10_01.models.DataDisk] """ @@ -3255,9 +3249,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -3381,11 +3375,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_10_01.models.SubResource @@ -3397,15 +3390,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -3569,9 +3561,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -3634,10 +3626,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -3679,8 +3671,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -3880,10 +3872,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -3906,8 +3898,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -4294,8 +4286,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_10_01.models.SubResource """ @@ -4461,10 +4453,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -4500,8 +4492,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): @@ -5203,12 +5195,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -5220,30 +5211,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2018_10_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2018_10_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -5495,15 +5484,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2018_10_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetDataDisk] """ @@ -5558,8 +5545,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): false. However, if singlePlacementGroup is false, it may not be modified to true. :type single_placement_group: bool :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2018_10_01.models.SubResource """ @@ -6017,25 +6004,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_10_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str """ @@ -6335,15 +6320,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -6528,11 +6512,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2018_10_01.models.SubResource @@ -6544,15 +6527,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -6701,9 +6683,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_images_operations.py index 4b0164fe43f2..172496ef4985 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_images_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -253,8 +253,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -365,8 +365,8 @@ def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_log_analytics_operations.py index 0f44fd9a5025..843addff44c9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_log_analytics_operations.py @@ -116,8 +116,8 @@ def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -238,8 +238,8 @@ def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_extensions_operations.py index d2538c6746fb..9cc2cbf04cd4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -382,8 +382,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_extensions_operations.py index a11b2761e65b..a5f678f1d855 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_extensions_operations.py @@ -130,8 +130,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -249,8 +249,8 @@ def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 1e18dcbde5ad..07422870eb4d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -104,8 +104,8 @@ def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -214,8 +214,8 @@ def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -324,8 +324,8 @@ def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_vms_operations.py index 90eb2d858742..30a201900bd6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_set_vms_operations.py @@ -122,8 +122,8 @@ def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -239,8 +239,8 @@ def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -356,8 +356,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -490,8 +490,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -609,8 +609,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -945,8 +945,8 @@ def begin_power_off( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1060,8 +1060,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1175,8 +1175,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1291,8 +1291,8 @@ def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1406,8 +1406,8 @@ def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1537,8 +1537,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_sets_operations.py index 91e203a1ded8..6abedea51f26 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -249,8 +249,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -361,8 +361,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -542,8 +542,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -660,8 +660,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1133,8 +1133,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1254,8 +1254,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1375,8 +1375,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1497,8 +1497,8 @@ def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1610,8 +1610,8 @@ def begin_perform_maintenance( # type: (...) -> LROPoller[None] """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1621,8 +1621,8 @@ def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1739,8 +1739,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1862,8 +1862,8 @@ def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1984,8 +1984,8 @@ def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_sizes_operations.py index 2b8400fdcccf..2864bdc98072 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machine_sizes_operations.py @@ -51,8 +51,8 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.VirtualMachineSizeListResult"] - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machines_operations.py index 39bc0b9f37f8..6810ce1be4e5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/operations/_virtual_machines_operations.py @@ -193,8 +193,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -323,8 +323,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -453,8 +453,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -565,8 +565,8 @@ def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -788,8 +788,8 @@ def begin_convert_to_managed_disks( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -797,8 +797,8 @@ def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -906,8 +906,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1285,8 +1285,8 @@ def begin_power_off( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1393,8 +1393,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1501,8 +1501,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1609,8 +1609,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1729,8 +1729,8 @@ def begin_reimage( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1838,8 +1838,8 @@ def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1962,8 +1962,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2018_10_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_compute_management_client.py index 8bedc447edfc..82e58a80e929 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import Operations @@ -176,6 +177,24 @@ def __init__( self.snapshots = SnapshotsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_configuration.py index 73a64eacd5b9..d7bafac3e499 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_metadata.json index 4c0ab6d8c61e..3b59bc0b0e35 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -123,11 +123,5 @@ "gallery_application_versions": "GalleryApplicationVersionsOperations", "disks": "DisksOperations", "snapshots": "SnapshotsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/_compute_management_client.py index f08ee4eeb543..f286537fd09c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -173,6 +174,23 @@ def __init__( self.snapshots = SnapshotsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/_configuration.py index 001d17e68aa0..3a19e101e45e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_availability_sets_operations.py index afb895b06008..949d5c011628 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -112,7 +112,7 @@ async def update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySetUpdate", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Update an availability set. @@ -177,7 +177,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an availability set. @@ -230,7 +230,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -287,7 +287,7 @@ async def get( def list_by_subscription( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -359,7 +359,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -430,7 +430,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_dedicated_host_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_dedicated_host_groups_operations.py index ca69778c7c9b..7aa078359fb9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_dedicated_host_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_dedicated_host_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, host_group_name: str, parameters: "_models.DedicatedHostGroup", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] @@ -118,7 +118,7 @@ async def update( resource_group_name: str, host_group_name: str, parameters: "_models.DedicatedHostGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Update an dedicated host group. @@ -183,7 +183,7 @@ async def delete( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a dedicated host group. @@ -236,7 +236,7 @@ async def get( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Retrieves information about a dedicated host group. @@ -293,7 +293,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: """Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. @@ -363,7 +363,7 @@ async def get_next(next_link=None): def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: """Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_dedicated_hosts_operations.py index 57a497b802b4..2fc1f615df83 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_dedicated_hosts_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( host_group_name: str, host_name: str, parameters: "_models.DedicatedHost", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( host_group_name: str, host_name: str, parameters: "_models.DedicatedHost", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DedicatedHost"]: """Create or update a dedicated host . @@ -122,8 +122,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.DedicatedHost :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) @@ -184,7 +184,7 @@ async def _update_initial( host_group_name: str, host_name: str, parameters: "_models.DedicatedHostUpdate", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] error_map = { @@ -239,7 +239,7 @@ async def begin_update( host_group_name: str, host_name: str, parameters: "_models.DedicatedHostUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DedicatedHost"]: """Update an dedicated host . @@ -253,8 +253,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.DedicatedHostUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) @@ -314,7 +314,7 @@ async def _delete_initial( resource_group_name: str, host_group_name: str, host_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -358,7 +358,7 @@ async def begin_delete( resource_group_name: str, host_group_name: str, host_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a dedicated host. @@ -370,8 +370,8 @@ async def begin_delete( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -428,7 +428,7 @@ async def get( host_group_name: str, host_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": """Retrieves information about a dedicated host. @@ -493,7 +493,7 @@ def list_by_host_group( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostListResult"]: """Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_disks_operations.py index 142c31699d92..572b4b2cca9a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2019_03_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2019_03_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk. @@ -421,8 +421,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_03_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a disk. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_galleries_operations.py index e15fce7802e1..599c14d5f84e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_galleries_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, gallery_name: str, gallery: "_models.Gallery", - **kwargs + **kwargs: Any ) -> "_models.Gallery": cls = kwargs.pop('cls', None) # type: ClsType["_models.Gallery"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( resource_group_name: str, gallery_name: str, gallery: "_models.Gallery", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Gallery"]: """Create or update a Shared Image Gallery. @@ -121,8 +121,8 @@ async def begin_create_or_update( :type gallery: ~azure.mgmt.compute.v2019_03_01.models.Gallery :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Gallery or the result of cls(response) @@ -179,7 +179,7 @@ async def get( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> "_models.Gallery": """Retrieves information about a Shared Image Gallery. @@ -237,7 +237,7 @@ async def _delete_initial( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -281,7 +281,7 @@ async def begin_delete( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a Shared Image Gallery. @@ -291,8 +291,8 @@ async def begin_delete( :type gallery_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -344,7 +344,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryList"]: """List galleries under a resource group. @@ -413,7 +413,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryList"]: """List galleries under a subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_application_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_application_versions_operations.py index 92214623e278..501e6c77ef4c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_application_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_application_versions_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersion", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplicationVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplicationVersion"] error_map = { @@ -114,7 +114,7 @@ async def begin_create_or_update( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersion", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplicationVersion"]: """Create or update a gallery Application Version. @@ -136,8 +136,8 @@ async def begin_create_or_update( :type gallery_application_version: ~azure.mgmt.compute.v2019_03_01.models.GalleryApplicationVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -201,7 +201,7 @@ async def get( gallery_application_name: str, gallery_application_version_name: str, expand: Optional[Union[str, "_models.ReplicationStatusTypes"]] = None, - **kwargs + **kwargs: Any ) -> "_models.GalleryApplicationVersion": """Retrieves information about a gallery Application Version. @@ -274,7 +274,7 @@ async def _delete_initial( gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -322,7 +322,7 @@ async def begin_delete( gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Application Version. @@ -339,8 +339,8 @@ async def begin_delete( :type gallery_application_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -398,7 +398,7 @@ def list_by_gallery_application( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryApplicationVersionList"]: """List gallery Application Versions in a gallery Application Definition. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_applications_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_applications_operations.py index 1efb02257f81..f2cdbe28111f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_applications_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_applications_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplication", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplication": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplication"] error_map = { @@ -111,7 +111,7 @@ async def begin_create_or_update( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplication", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplication"]: """Create or update a gallery Application Definition. @@ -129,8 +129,8 @@ async def begin_create_or_update( :type gallery_application: ~azure.mgmt.compute.v2019_03_01.models.GalleryApplication :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplication or the result of cls(response) @@ -190,7 +190,7 @@ async def get( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> "_models.GalleryApplication": """Retrieves information about a gallery Application Definition. @@ -254,7 +254,7 @@ async def _delete_initial( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -300,7 +300,7 @@ async def begin_delete( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Application. @@ -313,8 +313,8 @@ async def begin_delete( :type gallery_application_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -369,7 +369,7 @@ def list_by_gallery( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryApplicationList"]: """List gallery Application Definitions in a gallery. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_image_versions_operations.py index 87e84c57b693..36d85cfd2e5d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_image_versions_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersion", - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImageVersion"] error_map = { @@ -114,7 +114,7 @@ async def begin_create_or_update( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersion", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImageVersion"]: """Create or update a gallery Image Version. @@ -136,8 +136,8 @@ async def begin_create_or_update( :type gallery_image_version: ~azure.mgmt.compute.v2019_03_01.models.GalleryImageVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -201,7 +201,7 @@ async def get( gallery_image_name: str, gallery_image_version_name: str, expand: Optional[Union[str, "_models.ReplicationStatusTypes"]] = None, - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": """Retrieves information about a gallery Image Version. @@ -273,7 +273,7 @@ async def _delete_initial( gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -321,7 +321,7 @@ async def begin_delete( gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Image Version. @@ -337,8 +337,8 @@ async def begin_delete( :type gallery_image_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -396,7 +396,7 @@ def list_by_gallery_image( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryImageVersionList"]: """List gallery Image Versions in a gallery Image Definition. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_images_operations.py index 791b25447546..c35707630021 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_gallery_images_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImage", - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImage"] error_map = { @@ -111,7 +111,7 @@ async def begin_create_or_update( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImage", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImage"]: """Create or update a gallery Image Definition. @@ -128,8 +128,8 @@ async def begin_create_or_update( :type gallery_image: ~azure.mgmt.compute.v2019_03_01.models.GalleryImage :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImage or the result of cls(response) @@ -189,7 +189,7 @@ async def get( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": """Retrieves information about a gallery Image Definition. @@ -252,7 +252,7 @@ async def _delete_initial( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -298,7 +298,7 @@ async def begin_delete( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery image. @@ -311,8 +311,8 @@ async def begin_delete( :type gallery_image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -367,7 +367,7 @@ def list_by_gallery( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryImageList"]: """List gallery Image Definitions in a gallery. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_images_operations.py index 56da38ca564f..0ee11e180e4c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_images_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Create or update an image. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Update an image. @@ -245,8 +245,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -303,7 +303,7 @@ async def _delete_initial( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -345,7 +345,7 @@ async def begin_delete( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an Image. @@ -355,8 +355,8 @@ async def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -410,7 +410,7 @@ async def get( resource_group_name: str, image_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Image": """Gets an image. @@ -471,7 +471,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of images under a resource group. @@ -540,7 +540,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_log_analytics_operations.py index d7361a6c4124..b8ddf8c8700f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_log_analytics_operations.py @@ -46,7 +46,7 @@ async def _export_request_rate_by_interval_initial( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -99,7 +99,7 @@ async def begin_export_request_rate_by_interval( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show Api requests made by this subscription in the given time window to show throttling activities. @@ -110,8 +110,8 @@ async def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -166,7 +166,7 @@ async def _export_throttled_requests_initial( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -219,7 +219,7 @@ async def begin_export_throttled_requests( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show total throttled Api requests for this subscription in the given time window. @@ -230,8 +230,8 @@ async def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_operations.py index 6b25f21555e8..2c72afef258a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ComputeOperationListResult"]: """Gets a list of compute operations. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_proximity_placement_groups_operations.py index d483da485e15..17da591ce07f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_proximity_placement_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_proximity_placement_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroup", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Create or update a proximity placement group. @@ -116,7 +116,7 @@ async def update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Update a proximity placement group. @@ -181,7 +181,7 @@ async def delete( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a proximity placement group. @@ -234,7 +234,7 @@ async def get( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Retrieves information about a proximity placement group . @@ -290,7 +290,7 @@ async def get( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a subscription. @@ -357,7 +357,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a resource group. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_snapshots_operations.py index f0214881083c..99d94d66ca46 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2019_03_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -249,8 +249,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2019_03_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a snapshot. @@ -421,8 +421,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_03_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a snapshot. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_usage_operations.py index d2c22bc28738..97c2a51023f3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_extension_images_operations.py index f2ab0485f69d..6f77b960574d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_extensions_operations.py index d33333b3da96..0411d309e156 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -360,7 +360,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -372,8 +372,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -430,7 +430,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. @@ -496,7 +496,7 @@ async def list( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_images_operations.py index 578c8ce248b2..b98b37101c22 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_run_commands_operations.py index 67b4a321240c..4faf4d8f7470 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_run_commands_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RunCommandListResult"]: """Lists all available run commands for a subscription in a location. @@ -115,7 +115,7 @@ async def get( self, location: str, command_id: str, - **kwargs + **kwargs: Any ) -> "_models.RunCommandDocument": """Gets specific run command for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py index b5f48e4be0e0..87a6014579c3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to create or update an extension. @@ -124,8 +124,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -229,7 +229,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -241,8 +241,8 @@ async def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -299,7 +299,7 @@ async def get( vm_scale_set_name: str, vmss_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": """The operation to get the extension. @@ -364,7 +364,7 @@ def list( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetExtensionListResult"]: """Gets a list of all extensions in a VM scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 9712c37a8bf7..44d76ebca8f6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -46,7 +46,7 @@ async def _cancel_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -88,7 +88,7 @@ async def begin_cancel( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Cancels the current virtual machine scale set rolling upgrade. @@ -98,8 +98,8 @@ async def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -152,7 +152,7 @@ async def _start_os_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -194,7 +194,7 @@ async def begin_start_os_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available @@ -206,8 +206,8 @@ async def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -260,7 +260,7 @@ async def _start_extension_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -302,7 +302,7 @@ async def begin_start_extension_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest @@ -314,8 +314,8 @@ async def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -368,7 +368,7 @@ async def get_latest( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.RollingUpgradeStatusInfo": """Gets the status of the latest virtual machine scale set rolling upgrade. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_vms_operations.py index 81a654621115..a0b960f4289a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -49,7 +49,7 @@ async def _reimage_initial( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -102,7 +102,7 @@ async def begin_reimage( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -116,8 +116,8 @@ async def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -174,7 +174,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -218,7 +218,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. @@ -231,8 +231,8 @@ async def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -288,7 +288,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -332,7 +332,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -346,8 +346,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -404,7 +404,7 @@ async def _update_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] error_map = { @@ -463,7 +463,7 @@ async def begin_update( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVM"]: """Updates a virtual machine of a VM scale set. @@ -478,8 +478,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -539,7 +539,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -583,7 +583,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a virtual machine from a VM scale set. @@ -595,8 +595,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -653,7 +653,7 @@ async def get( vm_scale_set_name: str, instance_id: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -719,7 +719,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -783,7 +783,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -874,7 +874,7 @@ async def _power_off_initial( vm_scale_set_name: str, instance_id: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -921,7 +921,7 @@ async def begin_power_off( vm_scale_set_name: str, instance_id: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -939,8 +939,8 @@ async def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -997,7 +997,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1041,7 +1041,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts a virtual machine in a VM scale set. @@ -1053,8 +1053,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1110,7 +1110,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1154,7 +1154,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a virtual machine in a VM scale set. @@ -1166,8 +1166,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1223,7 +1223,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1267,7 +1267,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. @@ -1280,8 +1280,8 @@ async def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1337,7 +1337,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1381,7 +1381,7 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Performs maintenance on a virtual machine in a VM scale set. @@ -1393,8 +1393,8 @@ async def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1451,7 +1451,7 @@ async def _run_command_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1508,7 +1508,7 @@ async def begin_run_command( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on a virtual machine in a VM scale set. @@ -1522,8 +1522,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_sets_operations.py index 9dbe2a11d4aa..1edc8c73fd36 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -229,7 +229,7 @@ async def begin_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Update a VM scale set. @@ -241,8 +241,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -299,7 +299,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -341,7 +341,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a VM scale set. @@ -351,8 +351,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -405,7 +405,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -464,7 +464,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -515,7 +515,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -529,8 +529,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -585,7 +585,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -633,7 +633,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes virtual machines in a VM scale set. @@ -645,8 +645,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -700,7 +700,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -757,7 +757,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -826,7 +826,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -896,7 +896,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -971,7 +971,7 @@ def get_os_upgrade_history( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListOSUpgradeHistory"]: """Gets list of OS upgrades on a VM scale set instance. @@ -1047,7 +1047,7 @@ async def _power_off_initial( vm_scale_set_name: str, skip_shutdown: Optional[bool] = False, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1101,7 +1101,7 @@ async def begin_power_off( vm_scale_set_name: str, skip_shutdown: Optional[bool] = False, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -1119,8 +1119,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1176,7 +1176,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1227,7 +1227,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts one or more virtual machines in a VM scale set. @@ -1239,8 +1239,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1295,7 +1295,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1346,7 +1346,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts one or more virtual machines in a VM scale set. @@ -1358,8 +1358,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1414,7 +1414,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1465,7 +1465,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. @@ -1478,8 +1478,8 @@ async def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1534,7 +1534,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1585,12 +1585,12 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1600,8 +1600,8 @@ async def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1656,7 +1656,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1704,7 +1704,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1716,8 +1716,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1772,7 +1772,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1823,7 +1823,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual @@ -1837,8 +1837,8 @@ async def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1893,7 +1893,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1944,7 +1944,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. @@ -1957,8 +1957,8 @@ async def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2013,7 +2013,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( resource_group_name: str, vm_scale_set_name: str, platform_update_domain: int, - **kwargs + **kwargs: Any ) -> "_models.RecoveryWalkResponse": """Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. @@ -2077,7 +2077,7 @@ async def convert_to_single_placement_group( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VMScaleSetConvertToSinglePlacementGroupInput", - **kwargs + **kwargs: Any ) -> None: """Converts SinglePlacementGroup property to true for a existing virtual machine scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_sizes_operations.py index cd879f930085..43c33543bf20 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machine_sizes_operations.py @@ -44,10 +44,10 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machines_operations.py index c7466c1d822e..ae4b44ba14b4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/aio/operations/_virtual_machines_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Gets all the virtual machines under the specified subscription for the specified location. @@ -118,7 +118,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -173,7 +173,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -186,8 +186,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -245,7 +245,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -302,7 +302,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. @@ -314,8 +314,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -373,7 +373,7 @@ async def _update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -430,7 +430,7 @@ async def begin_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to update a virtual machine. @@ -442,8 +442,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -500,7 +500,7 @@ async def _delete_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -542,7 +542,7 @@ async def begin_delete( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete a virtual machine. @@ -552,8 +552,8 @@ async def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -607,7 +607,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -669,7 +669,7 @@ async def instance_view( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineInstanceView": """Retrieves information about the run-time state of a virtual machine. @@ -727,7 +727,7 @@ async def _convert_to_managed_disks_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -769,10 +769,10 @@ async def begin_convert_to_managed_disks( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -780,8 +780,8 @@ async def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -834,7 +834,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -876,7 +876,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -887,8 +887,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -941,7 +941,7 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: """Sets the state of the virtual machine to generalized. @@ -993,7 +993,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -1063,7 +1063,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -1132,7 +1132,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -1208,7 +1208,7 @@ async def _power_off_initial( resource_group_name: str, vm_name: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1253,7 +1253,7 @@ async def begin_power_off( resource_group_name: str, vm_name: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -1268,8 +1268,8 @@ async def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1323,7 +1323,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1365,7 +1365,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to restart a virtual machine. @@ -1375,8 +1375,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1429,7 +1429,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1471,7 +1471,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to start a virtual machine. @@ -1481,8 +1481,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1535,7 +1535,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1577,7 +1577,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1587,8 +1587,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1642,7 +1642,7 @@ async def _reimage_initial( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1693,7 +1693,7 @@ async def begin_reimage( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages the virtual machine which has an ephemeral OS disk back to its initial state. @@ -1705,8 +1705,8 @@ async def begin_reimage( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1760,7 +1760,7 @@ async def _perform_maintenance_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1802,7 +1802,7 @@ async def begin_perform_maintenance( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to perform maintenance on a virtual machine. @@ -1812,8 +1812,8 @@ async def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1867,7 +1867,7 @@ async def _run_command_initial( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1922,7 +1922,7 @@ async def begin_run_command( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on the VM. @@ -1934,8 +1934,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py index 67ce1d802bff..f42046f8bca6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_compute_management_client_enums.py @@ -254,9 +254,7 @@ class OperatingSystemStateTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, En SPECIALIZED = "Specialized" class OperatingSystemTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """This property allows you to specify the supported type of the OS that application is built for. - :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **Windows** - :code:`
    `:code:`
    ` **Linux** + """The operating system of the osDiskImage. """ WINDOWS = "Windows" @@ -360,8 +358,8 @@ class StorageAccountTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): StandardSSD_LRS uses Standard SSD. Premium_LRS uses Premium SSD. UltraSSD_LRS uses Ultra disk. For more information regarding disks supported for Windows Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-types and, for Linux - Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disks- - types + Virtual Machines, refer to + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disks-types """ STANDARD_LRS = "Standard_LRS" @@ -430,8 +428,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. + see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models.py index c775203bd946..f75cf6248ab1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models.py @@ -64,8 +64,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -190,8 +190,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for Windows based scale sets, `enableAutomaticUpdates - `_ is automatically set to false and cannot be set to true. + `_ + is automatically set to false and cannot be set to true. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -2525,11 +2525,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -2919,13 +2919,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_03_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_03_01.models.ImageDataDisk] :param 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). @@ -3584,9 +3584,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -3597,12 +3595,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -3614,30 +3611,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_03_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_03_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -4870,8 +4865,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -4899,13 +4893,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_03_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_03_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_03_01.models.DataDisk] """ @@ -5383,9 +5377,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -5501,11 +5495,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :code:`
    `:code:`
    `This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. @@ -5541,15 +5534,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -5700,9 +5692,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -5763,10 +5755,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -5978,10 +5970,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -6358,8 +6350,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_03_01.models.SubResource :param additional_capabilities: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines @@ -6513,10 +6505,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -7182,12 +7174,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -7199,30 +7190,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_03_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_03_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -7453,15 +7442,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_03_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetDataDisk] """ @@ -7520,8 +7507,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): chosen for removal when a Virtual Machine Scale Set is scaled-in. :type scale_in_policy: ~azure.mgmt.compute.v2019_03_01.models.ScaleInPolicy :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_03_01.models.SubResource """ @@ -7941,25 +7928,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2019_03_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar model_definition_applied: Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine. @@ -8258,15 +8243,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -8465,11 +8449,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :code:`
    `:code:`
    `This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. @@ -8505,15 +8488,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -8672,9 +8654,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py index 8ca90c5aa296..5953c50c8eeb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -71,8 +71,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -212,8 +212,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for Windows based scale sets, `enableAutomaticUpdates - `_ is automatically set to false and cannot be set to true. + `_ + is automatically set to false and cannot be set to true. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -2764,11 +2764,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -3201,13 +3201,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_03_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_03_01.models.ImageDataDisk] :param 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). @@ -3942,9 +3942,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." @@ -3955,12 +3953,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -3972,30 +3969,28 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_03_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_03_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -5342,8 +5337,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -5374,13 +5368,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_03_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_03_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_03_01.models.DataDisk] """ @@ -5894,9 +5888,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -6020,11 +6014,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :code:`
    `:code:`
    `This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. @@ -6060,15 +6053,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -6247,9 +6239,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -6312,10 +6304,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -6357,8 +6349,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -6558,10 +6550,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -6584,8 +6576,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -6984,8 +6976,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_03_01.models.SubResource :param additional_capabilities: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines @@ -7165,10 +7157,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -7204,8 +7196,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): @@ -7907,12 +7899,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -7924,30 +7915,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_03_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_03_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -8199,15 +8188,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_03_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetDataDisk] """ @@ -8270,8 +8257,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): chosen for removal when a Virtual Machine Scale Set is scaled-in. :type scale_in_policy: ~azure.mgmt.compute.v2019_03_01.models.ScaleInPolicy :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_03_01.models.SubResource """ @@ -8757,25 +8744,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2019_03_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar model_definition_applied: Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine. @@ -9108,15 +9093,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -9338,11 +9322,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :code:`
    `:code:`
    `This property cannot exist along with a non-null properties.virtualMachineScaleSet reference. @@ -9378,15 +9361,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -9574,9 +9556,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_dedicated_hosts_operations.py index 51b375eac9f1..27fd1be3413f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_dedicated_hosts_operations.py @@ -128,8 +128,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.DedicatedHost :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) @@ -261,8 +261,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.DedicatedHostUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) @@ -380,8 +380,8 @@ def begin_delete( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_disks_operations.py index c31fc794fa80..1a031a2eefa6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2019_03_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2019_03_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_03_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_galleries_operations.py index 7f30cdfa78ec..1c4cb92b5d97 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_galleries_operations.py @@ -127,8 +127,8 @@ def begin_create_or_update( :type gallery: ~azure.mgmt.compute.v2019_03_01.models.Gallery :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Gallery or the result of cls(response) @@ -300,8 +300,8 @@ def begin_delete( :type gallery_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_application_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_application_versions_operations.py index 0acf98c520b2..f56804e17dd4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_application_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_application_versions_operations.py @@ -142,8 +142,8 @@ def begin_create_or_update( :type gallery_application_version: ~azure.mgmt.compute.v2019_03_01.models.GalleryApplicationVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -348,8 +348,8 @@ def begin_delete( :type gallery_application_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_applications_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_applications_operations.py index c4f552428276..2fccd124082d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_applications_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_applications_operations.py @@ -135,8 +135,8 @@ def begin_create_or_update( :type gallery_application: ~azure.mgmt.compute.v2019_03_01.models.GalleryApplication :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplication or the result of cls(response) @@ -322,8 +322,8 @@ def begin_delete( :type gallery_application_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_image_versions_operations.py index a93cfbd0e0f6..a804b29b5728 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_image_versions_operations.py @@ -142,8 +142,8 @@ def begin_create_or_update( :type gallery_image_version: ~azure.mgmt.compute.v2019_03_01.models.GalleryImageVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -346,8 +346,8 @@ def begin_delete( :type gallery_image_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_images_operations.py index df01898adcb5..eb780d465c10 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_gallery_images_operations.py @@ -134,8 +134,8 @@ def begin_create_or_update( :type gallery_image: ~azure.mgmt.compute.v2019_03_01.models.GalleryImage :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImage or the result of cls(response) @@ -320,8 +320,8 @@ def begin_delete( :type gallery_image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_images_operations.py index 686963089d68..64b464d6084d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_images_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -253,8 +253,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -365,8 +365,8 @@ def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_log_analytics_operations.py index 155672591e94..35d1c9189f33 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_log_analytics_operations.py @@ -116,8 +116,8 @@ def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -238,8 +238,8 @@ def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_snapshots_operations.py index 21f9adac2f16..af115cc1028e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_snapshots_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2019_03_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2019_03_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_03_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_extensions_operations.py index 7d4417dd1567..e116602f1a63 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -382,8 +382,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_extensions_operations.py index a5fc25939415..8cf334ccb3c6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_extensions_operations.py @@ -130,8 +130,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -249,8 +249,8 @@ def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index af30d357f3f7..e585ad2a5cba 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -104,8 +104,8 @@ def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -214,8 +214,8 @@ def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -324,8 +324,8 @@ def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_vms_operations.py index f3fe8e7606dc..5f121c09ef3e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_set_vms_operations.py @@ -122,8 +122,8 @@ def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -239,8 +239,8 @@ def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -356,8 +356,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -490,8 +490,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -609,8 +609,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -958,8 +958,8 @@ def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1074,8 +1074,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1189,8 +1189,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1305,8 +1305,8 @@ def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1420,8 +1420,8 @@ def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1551,8 +1551,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_sets_operations.py index 44dae6ef7d94..fe1150a224e8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -249,8 +249,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -361,8 +361,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -542,8 +542,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -660,8 +660,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1141,8 +1141,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1263,8 +1263,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1384,8 +1384,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1506,8 +1506,8 @@ def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1619,8 +1619,8 @@ def begin_perform_maintenance( # type: (...) -> LROPoller[None] """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1630,8 +1630,8 @@ def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1748,8 +1748,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1871,8 +1871,8 @@ def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1993,8 +1993,8 @@ def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_sizes_operations.py index 7f43f54c5c83..3e7799c6d24d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_sizes_operations.py @@ -51,8 +51,8 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.VirtualMachineSizeListResult"] - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machines_operations.py index aa968e73cae7..31cbb3d9dd77 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machines_operations.py @@ -193,8 +193,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -323,8 +323,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -453,8 +453,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -565,8 +565,8 @@ def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -788,8 +788,8 @@ def begin_convert_to_managed_disks( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -797,8 +797,8 @@ def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -906,8 +906,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1293,8 +1293,8 @@ def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1402,8 +1402,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1510,8 +1510,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1618,8 +1618,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1738,8 +1738,8 @@ def begin_reimage( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1847,8 +1847,8 @@ def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1971,8 +1971,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_03_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_compute_management_client.py index cbbf6786ef71..507de8e1794e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import ResourceSkusOperations @@ -55,6 +56,24 @@ def __init__( self.resource_skus = ResourceSkusOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_configuration.py index 449ea85e35fd..bbd40942fe96 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_metadata.json index 98420266370c..d3569701e0b0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": false, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -99,11 +99,5 @@ }, "operation_groups": { "resource_skus": "ResourceSkusOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file 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 new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/_compute_management_client.py index 8ff46cd8a872..7b81c3374e1d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -52,6 +53,23 @@ def __init__( self.resource_skus = ResourceSkusOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/_configuration.py index a97c9b38f7c0..583ee3bd3f5b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/operations/_resource_skus_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/operations/_resource_skus_operations.py index 0c92815711a8..263e7a0922e6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/operations/_resource_skus_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/aio/operations/_resource_skus_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceSkusResult"]: """Gets the list of Microsoft.Compute SKUs available for your Subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_compute_management_client.py index 7a3a61413914..0e1d05ab0365 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import Operations @@ -186,6 +187,24 @@ def __init__( self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_configuration.py index 95f9b3d41e22..6862fe532113 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_metadata.json index af2e31ee32e3..18a98ea30a4f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -125,11 +125,5 @@ "gallery_applications": "GalleryApplicationsOperations", "gallery_application_versions": "GalleryApplicationVersionsOperations", "virtual_machine_run_commands": "VirtualMachineRunCommandsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file 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 new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/_compute_management_client.py index f161044379f0..b521721fdbf4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -183,6 +184,23 @@ def __init__( self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/_configuration.py index 4203940bea31..7ac23952bcb5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_availability_sets_operations.py index f2b851b3a078..166a83e34b43 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -112,7 +112,7 @@ async def update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySetUpdate", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Update an availability set. @@ -177,7 +177,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an availability set. @@ -230,7 +230,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -287,7 +287,7 @@ async def get( def list_by_subscription( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -359,7 +359,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -430,7 +430,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_dedicated_host_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_dedicated_host_groups_operations.py index ef5806af8665..a158bf4ffc55 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_dedicated_host_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_dedicated_host_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, host_group_name: str, parameters: "_models.DedicatedHostGroup", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] @@ -118,7 +118,7 @@ async def update( resource_group_name: str, host_group_name: str, parameters: "_models.DedicatedHostGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Update an dedicated host group. @@ -183,7 +183,7 @@ async def delete( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a dedicated host group. @@ -236,7 +236,7 @@ async def get( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Retrieves information about a dedicated host group. @@ -293,7 +293,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: """Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. @@ -363,7 +363,7 @@ async def get_next(next_link=None): def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: """Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_dedicated_hosts_operations.py index 1689bde55f6e..e79ddd4dcf5a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_dedicated_hosts_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( host_group_name: str, host_name: str, parameters: "_models.DedicatedHost", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( host_group_name: str, host_name: str, parameters: "_models.DedicatedHost", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DedicatedHost"]: """Create or update a dedicated host . @@ -122,8 +122,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.DedicatedHost :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) @@ -184,7 +184,7 @@ async def _update_initial( host_group_name: str, host_name: str, parameters: "_models.DedicatedHostUpdate", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] error_map = { @@ -239,7 +239,7 @@ async def begin_update( host_group_name: str, host_name: str, parameters: "_models.DedicatedHostUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DedicatedHost"]: """Update an dedicated host . @@ -253,8 +253,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.DedicatedHostUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) @@ -314,7 +314,7 @@ async def _delete_initial( resource_group_name: str, host_group_name: str, host_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -358,7 +358,7 @@ async def begin_delete( resource_group_name: str, host_group_name: str, host_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a dedicated host. @@ -370,8 +370,8 @@ async def begin_delete( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -428,7 +428,7 @@ async def get( host_group_name: str, host_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": """Retrieves information about a dedicated host. @@ -493,7 +493,7 @@ def list_by_host_group( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostListResult"]: """Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_disk_encryption_sets_operations.py index 5036357c887e..ea036892ed22 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_disk_encryption_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Creates or updates a disk encryption set. @@ -120,8 +120,8 @@ async def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2019_07_01.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -179,7 +179,7 @@ async def _update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -236,7 +236,7 @@ async def begin_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Updates (patches) a disk encryption set. @@ -251,8 +251,8 @@ async def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2019_07_01.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -309,7 +309,7 @@ async def get( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": """Gets information about a disk encryption set. @@ -369,7 +369,7 @@ async def _delete_initial( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -413,7 +413,7 @@ async def begin_delete( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk encryption set. @@ -425,8 +425,8 @@ async def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -478,7 +478,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a resource group. @@ -547,7 +547,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_disks_operations.py index 0864206a441b..4aa9c81ea3a0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2019_07_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2019_07_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk. @@ -421,8 +421,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_07_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a disk. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_galleries_operations.py index 053dffc24deb..d1ca6cfe8414 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_galleries_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, gallery_name: str, gallery: "_models.Gallery", - **kwargs + **kwargs: Any ) -> "_models.Gallery": cls = kwargs.pop('cls', None) # type: ClsType["_models.Gallery"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( resource_group_name: str, gallery_name: str, gallery: "_models.Gallery", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Gallery"]: """Create or update a Shared Image Gallery. @@ -121,8 +121,8 @@ async def begin_create_or_update( :type gallery: ~azure.mgmt.compute.v2019_07_01.models.Gallery :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Gallery or the result of cls(response) @@ -180,7 +180,7 @@ async def _update_initial( resource_group_name: str, gallery_name: str, gallery: "_models.GalleryUpdate", - **kwargs + **kwargs: Any ) -> "_models.Gallery": cls = kwargs.pop('cls', None) # type: ClsType["_models.Gallery"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, gallery_name: str, gallery: "_models.GalleryUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Gallery"]: """Update a Shared Image Gallery. @@ -246,8 +246,8 @@ async def begin_update( :type gallery: ~azure.mgmt.compute.v2019_07_01.models.GalleryUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Gallery or the result of cls(response) @@ -304,7 +304,7 @@ async def get( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> "_models.Gallery": """Retrieves information about a Shared Image Gallery. @@ -362,7 +362,7 @@ async def _delete_initial( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -406,7 +406,7 @@ async def begin_delete( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a Shared Image Gallery. @@ -416,8 +416,8 @@ async def begin_delete( :type gallery_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -469,7 +469,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryList"]: """List galleries under a resource group. @@ -538,7 +538,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryList"]: """List galleries under a subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_application_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_application_versions_operations.py index 0da449dcd948..73bc4b21acf5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_application_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_application_versions_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersion", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplicationVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplicationVersion"] error_map = { @@ -114,7 +114,7 @@ async def begin_create_or_update( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersion", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplicationVersion"]: """Create or update a gallery Application Version. @@ -136,8 +136,8 @@ async def begin_create_or_update( :type gallery_application_version: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -201,7 +201,7 @@ async def _update_initial( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersionUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplicationVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplicationVersion"] error_map = { @@ -258,7 +258,7 @@ async def begin_update( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplicationVersion"]: """Update a gallery Application Version. @@ -280,8 +280,8 @@ async def begin_update( :type gallery_application_version: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -345,7 +345,7 @@ async def get( gallery_application_name: str, gallery_application_version_name: str, expand: Optional[Union[str, "_models.ReplicationStatusTypes"]] = None, - **kwargs + **kwargs: Any ) -> "_models.GalleryApplicationVersion": """Retrieves information about a gallery Application Version. @@ -418,7 +418,7 @@ async def _delete_initial( gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -466,7 +466,7 @@ async def begin_delete( gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Application Version. @@ -483,8 +483,8 @@ async def begin_delete( :type gallery_application_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -542,7 +542,7 @@ def list_by_gallery_application( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryApplicationVersionList"]: """List gallery Application Versions in a gallery Application Definition. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_applications_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_applications_operations.py index d6ea67648351..3e4516657406 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_applications_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_applications_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplication", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplication": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplication"] error_map = { @@ -111,7 +111,7 @@ async def begin_create_or_update( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplication", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplication"]: """Create or update a gallery Application Definition. @@ -129,8 +129,8 @@ async def begin_create_or_update( :type gallery_application: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplication :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplication or the result of cls(response) @@ -191,7 +191,7 @@ async def _update_initial( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplicationUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplication": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplication"] error_map = { @@ -246,7 +246,7 @@ async def begin_update( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplicationUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplication"]: """Update a gallery Application Definition. @@ -263,8 +263,8 @@ async def begin_update( :type gallery_application: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplication or the result of cls(response) @@ -324,7 +324,7 @@ async def get( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> "_models.GalleryApplication": """Retrieves information about a gallery Application Definition. @@ -388,7 +388,7 @@ async def _delete_initial( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -434,7 +434,7 @@ async def begin_delete( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Application. @@ -447,8 +447,8 @@ async def begin_delete( :type gallery_application_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -503,7 +503,7 @@ def list_by_gallery( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryApplicationList"]: """List gallery Application Definitions in a gallery. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_image_versions_operations.py index ff769b72a073..0bd1225c7f96 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_image_versions_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersion", - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImageVersion"] error_map = { @@ -114,7 +114,7 @@ async def begin_create_or_update( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersion", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImageVersion"]: """Create or update a gallery Image Version. @@ -136,8 +136,8 @@ async def begin_create_or_update( :type gallery_image_version: ~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -201,7 +201,7 @@ async def _update_initial( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersionUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImageVersion"] error_map = { @@ -258,7 +258,7 @@ async def begin_update( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImageVersion"]: """Update a gallery Image Version. @@ -280,8 +280,8 @@ async def begin_update( :type gallery_image_version: ~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -345,7 +345,7 @@ async def get( gallery_image_name: str, gallery_image_version_name: str, expand: Optional[Union[str, "_models.ReplicationStatusTypes"]] = None, - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": """Retrieves information about a gallery Image Version. @@ -417,7 +417,7 @@ async def _delete_initial( gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -465,7 +465,7 @@ async def begin_delete( gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Image Version. @@ -481,8 +481,8 @@ async def begin_delete( :type gallery_image_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -540,7 +540,7 @@ def list_by_gallery_image( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryImageVersionList"]: """List gallery Image Versions in a gallery Image Definition. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_images_operations.py index 3ac59af34cf6..32e069a63557 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_gallery_images_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImage", - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImage"] error_map = { @@ -111,7 +111,7 @@ async def begin_create_or_update( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImage", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImage"]: """Create or update a gallery Image Definition. @@ -128,8 +128,8 @@ async def begin_create_or_update( :type gallery_image: ~azure.mgmt.compute.v2019_07_01.models.GalleryImage :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImage or the result of cls(response) @@ -190,7 +190,7 @@ async def _update_initial( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImage"] error_map = { @@ -245,7 +245,7 @@ async def begin_update( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImage"]: """Update a gallery Image Definition. @@ -262,8 +262,8 @@ async def begin_update( :type gallery_image: ~azure.mgmt.compute.v2019_07_01.models.GalleryImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImage or the result of cls(response) @@ -323,7 +323,7 @@ async def get( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": """Retrieves information about a gallery Image Definition. @@ -386,7 +386,7 @@ async def _delete_initial( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -432,7 +432,7 @@ async def begin_delete( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery image. @@ -445,8 +445,8 @@ async def begin_delete( :type gallery_image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -501,7 +501,7 @@ def list_by_gallery( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryImageList"]: """List gallery Image Definitions in a gallery. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_images_operations.py index 05c1d2bd6b97..cf958d4598f3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_images_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Create or update an image. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Update an image. @@ -245,8 +245,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -303,7 +303,7 @@ async def _delete_initial( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -345,7 +345,7 @@ async def begin_delete( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an Image. @@ -355,8 +355,8 @@ async def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -410,7 +410,7 @@ async def get( resource_group_name: str, image_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Image": """Gets an image. @@ -471,7 +471,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of images under a resource group. @@ -540,7 +540,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_log_analytics_operations.py index 34e8c47900c5..31c9fd726a73 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_log_analytics_operations.py @@ -46,7 +46,7 @@ async def _export_request_rate_by_interval_initial( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -99,7 +99,7 @@ async def begin_export_request_rate_by_interval( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show Api requests made by this subscription in the given time window to show throttling activities. @@ -110,8 +110,8 @@ async def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -166,7 +166,7 @@ async def _export_throttled_requests_initial( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -219,7 +219,7 @@ async def begin_export_throttled_requests( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show total throttled Api requests for this subscription in the given time window. @@ -230,8 +230,8 @@ async def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_operations.py index ca4635f6767f..dba6b6c8ebb9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ComputeOperationListResult"]: """Gets a list of compute operations. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_proximity_placement_groups_operations.py index aaa74490286e..d2bc6eb098f3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_proximity_placement_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_proximity_placement_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroup", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Create or update a proximity placement group. @@ -116,7 +116,7 @@ async def update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Update a proximity placement group. @@ -181,7 +181,7 @@ async def delete( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a proximity placement group. @@ -235,7 +235,7 @@ async def get( resource_group_name: str, proximity_placement_group_name: str, include_colocation_status: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Retrieves information about a proximity placement group . @@ -296,7 +296,7 @@ async def get( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a subscription. @@ -363,7 +363,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a resource group. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_snapshots_operations.py index 0a7e4f0ddb51..bbd9a6bc8aa1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2019_07_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -249,8 +249,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2019_07_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a snapshot. @@ -421,8 +421,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_07_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a snapshot. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_usage_operations.py index f87ae577a12d..9d7cf9db9ee6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_extension_images_operations.py index 8c05cb7d2937..49efab2d031d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_extensions_operations.py index 88a0b1735f29..c3a8fcc9da1e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -360,7 +360,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -372,8 +372,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -430,7 +430,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. @@ -496,7 +496,7 @@ async def list( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_images_operations.py index c40c3925ba8b..de71204e3d57 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_run_commands_operations.py index 10d5e664a1c5..94f11c60156c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_run_commands_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RunCommandListResult"]: """Lists all available run commands for a subscription in a location. @@ -115,7 +115,7 @@ async def get( self, location: str, command_id: str, - **kwargs + **kwargs: Any ) -> "_models.RunCommandDocument": """Gets specific run command for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py index 5fa69140c369..4c2af73b58fe 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to create or update an extension. @@ -124,8 +124,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -186,7 +186,7 @@ async def _update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -245,7 +245,7 @@ async def begin_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to update an extension. @@ -260,8 +260,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -321,7 +321,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -365,7 +365,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -377,8 +377,8 @@ async def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -435,7 +435,7 @@ async def get( vm_scale_set_name: str, vmss_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": """The operation to get the extension. @@ -500,7 +500,7 @@ def list( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetExtensionListResult"]: """Gets a list of all extensions in a VM scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index e5e21130cb08..33f123b601df 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -46,7 +46,7 @@ async def _cancel_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -88,7 +88,7 @@ async def begin_cancel( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Cancels the current virtual machine scale set rolling upgrade. @@ -98,8 +98,8 @@ async def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -152,7 +152,7 @@ async def _start_os_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -194,7 +194,7 @@ async def begin_start_os_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available @@ -206,8 +206,8 @@ async def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -260,7 +260,7 @@ async def _start_extension_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -302,7 +302,7 @@ async def begin_start_extension_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest @@ -314,8 +314,8 @@ async def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -368,7 +368,7 @@ async def get_latest( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.RollingUpgradeStatusInfo": """Gets the status of the latest virtual machine scale set rolling upgrade. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py index 14d24c4a2609..da6f2b5e4a46 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -110,7 +110,7 @@ async def begin_create_or_update( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the VMSS VM extension. @@ -127,8 +127,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -192,7 +192,7 @@ async def _update_initial( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -249,7 +249,7 @@ async def begin_update( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the VMSS VM extension. @@ -266,8 +266,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -330,7 +330,7 @@ async def _delete_initial( vm_scale_set_name: str, instance_id: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -378,7 +378,7 @@ async def begin_delete( vm_scale_set_name: str, instance_id: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the VMSS VM extension. @@ -392,8 +392,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -453,7 +453,7 @@ async def get( instance_id: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the VMSS VM extension. @@ -523,7 +523,7 @@ async def list( vm_scale_set_name: str, instance_id: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of an instance in Virtual Machine Scaleset. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_vms_operations.py index 1a02e1c1c6d4..1ff097874863 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -49,7 +49,7 @@ async def _reimage_initial( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -102,7 +102,7 @@ async def begin_reimage( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -116,8 +116,8 @@ async def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -174,7 +174,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -218,7 +218,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. @@ -231,8 +231,8 @@ async def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -288,7 +288,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -332,7 +332,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -346,8 +346,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -404,7 +404,7 @@ async def _update_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] error_map = { @@ -463,7 +463,7 @@ async def begin_update( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVM"]: """Updates a virtual machine of a VM scale set. @@ -478,8 +478,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -539,7 +539,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -583,7 +583,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a virtual machine from a VM scale set. @@ -595,8 +595,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -653,7 +653,7 @@ async def get( vm_scale_set_name: str, instance_id: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -719,7 +719,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -783,7 +783,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -874,7 +874,7 @@ async def _power_off_initial( vm_scale_set_name: str, instance_id: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -921,7 +921,7 @@ async def begin_power_off( vm_scale_set_name: str, instance_id: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -939,8 +939,8 @@ async def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -997,7 +997,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1041,7 +1041,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts a virtual machine in a VM scale set. @@ -1053,8 +1053,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1110,7 +1110,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1154,7 +1154,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a virtual machine in a VM scale set. @@ -1166,8 +1166,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1223,7 +1223,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1267,7 +1267,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. @@ -1280,8 +1280,8 @@ async def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1337,7 +1337,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1381,7 +1381,7 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine in a VMScaleSet, moves it to an already updated node, and powers it back on during the self-service phase of planned maintenance. @@ -1394,8 +1394,8 @@ async def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1452,7 +1452,7 @@ async def _run_command_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1509,7 +1509,7 @@ async def begin_run_command( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on a virtual machine in a VM scale set. @@ -1523,8 +1523,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_sets_operations.py index 10460623f5b0..9066f1433d9a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -229,7 +229,7 @@ async def begin_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Update a VM scale set. @@ -241,8 +241,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -299,7 +299,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -341,7 +341,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a VM scale set. @@ -351,8 +351,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -405,7 +405,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -464,7 +464,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -515,7 +515,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -529,8 +529,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -585,7 +585,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -633,7 +633,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes virtual machines in a VM scale set. @@ -645,8 +645,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -700,7 +700,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -757,7 +757,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -826,7 +826,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -896,7 +896,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -971,7 +971,7 @@ def get_os_upgrade_history( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListOSUpgradeHistory"]: """Gets list of OS upgrades on a VM scale set instance. @@ -1047,7 +1047,7 @@ async def _power_off_initial( vm_scale_set_name: str, skip_shutdown: Optional[bool] = False, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1101,7 +1101,7 @@ async def begin_power_off( vm_scale_set_name: str, skip_shutdown: Optional[bool] = False, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -1119,8 +1119,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1176,7 +1176,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1227,7 +1227,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts one or more virtual machines in a VM scale set. @@ -1239,8 +1239,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1295,7 +1295,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1346,7 +1346,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts one or more virtual machines in a VM scale set. @@ -1358,8 +1358,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1414,7 +1414,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1465,7 +1465,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. @@ -1478,8 +1478,8 @@ async def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1534,7 +1534,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1585,12 +1585,12 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1600,8 +1600,8 @@ async def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1656,7 +1656,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1704,7 +1704,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1716,8 +1716,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1772,7 +1772,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1823,7 +1823,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual @@ -1837,8 +1837,8 @@ async def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1893,7 +1893,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1944,7 +1944,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. @@ -1957,8 +1957,8 @@ async def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2013,7 +2013,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( resource_group_name: str, vm_scale_set_name: str, platform_update_domain: int, - **kwargs + **kwargs: Any ) -> "_models.RecoveryWalkResponse": """Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. @@ -2077,7 +2077,7 @@ async def convert_to_single_placement_group( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VMScaleSetConvertToSinglePlacementGroupInput", - **kwargs + **kwargs: Any ) -> None: """Converts SinglePlacementGroup property to true for a existing virtual machine scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_sizes_operations.py index 5bc36af4b546..ae9c7f215e6b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machine_sizes_operations.py @@ -44,10 +44,10 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machines_operations.py index 53800d7aede0..5859fbdf05c5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/aio/operations/_virtual_machines_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Gets all the virtual machines under the specified subscription for the specified location. @@ -118,7 +118,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -173,7 +173,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -186,8 +186,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -245,7 +245,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -302,7 +302,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. @@ -315,8 +315,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -374,7 +374,7 @@ async def _update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -431,7 +431,7 @@ async def begin_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to update a virtual machine. @@ -443,8 +443,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -501,7 +501,7 @@ async def _delete_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -543,7 +543,7 @@ async def begin_delete( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete a virtual machine. @@ -553,8 +553,8 @@ async def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -608,7 +608,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -670,7 +670,7 @@ async def instance_view( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineInstanceView": """Retrieves information about the run-time state of a virtual machine. @@ -728,7 +728,7 @@ async def _convert_to_managed_disks_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -770,15 +770,14 @@ async def begin_convert_to_managed_disks( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. :code:`
    `For Windows, please refer to `Convert a - virtual machine from unmanaged disks to managed disks. `_.:code:`
    `For Linux, - please refer to `Convert a virtual machine from unmanaged disks to managed disks. - `_. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :code:`
    `For Windows, please refer to + `Convert a virtual machine from unmanaged disks to managed disks. + `_.:code:`
    `For + Linux, please refer to `Convert a virtual machine from unmanaged disks to managed disks. + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -786,8 +785,8 @@ async def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -840,7 +839,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -882,7 +881,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -893,8 +892,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -947,14 +946,14 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: """Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. :code:`
    `For Windows, please refer to - `Create a managed image of a generalized VM in Azure `_.:code:`
    `For Linux, please refer - to `How to create an image of a virtual machine or VHD `_. + `Create a managed image of a generalized VM in Azure + `_.:code:`
    `For + Linux, please refer to `How to create an image of a virtual machine or VHD + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1004,7 +1003,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -1075,7 +1074,7 @@ async def get_next(next_link=None): def list_all( self, status_only: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -1149,7 +1148,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -1225,7 +1224,7 @@ async def _power_off_initial( resource_group_name: str, vm_name: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1270,7 +1269,7 @@ async def begin_power_off( resource_group_name: str, vm_name: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -1285,8 +1284,8 @@ async def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1340,7 +1339,7 @@ async def _reapply_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1384,7 +1383,7 @@ async def begin_reapply( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to reapply a virtual machine's state. @@ -1394,8 +1393,8 @@ async def begin_reapply( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1448,7 +1447,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1490,7 +1489,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to restart a virtual machine. @@ -1500,8 +1499,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1554,7 +1553,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1596,7 +1595,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to start a virtual machine. @@ -1606,8 +1605,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1660,7 +1659,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1702,7 +1701,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1712,8 +1711,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1767,7 +1766,7 @@ async def _reimage_initial( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1818,7 +1817,7 @@ async def begin_reimage( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages the virtual machine which has an ephemeral OS disk back to its initial state. @@ -1830,8 +1829,8 @@ async def begin_reimage( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1885,7 +1884,7 @@ async def _perform_maintenance_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1927,7 +1926,7 @@ async def begin_perform_maintenance( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine, moves it to an already updated node, and powers it back on during the self-service phase of planned maintenance. @@ -1938,8 +1937,8 @@ async def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1993,7 +1992,7 @@ async def _run_command_initial( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -2048,7 +2047,7 @@ async def begin_run_command( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on the VM. @@ -2060,8 +2059,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py index e62828b513fc..74e3b3efb358 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_compute_management_client_enums.py @@ -269,7 +269,7 @@ class OperatingSystemStateTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, En SPECIALIZED = "Specialized" class OperatingSystemTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The Operating System type. + """The operating system of the osDiskImage. """ WINDOWS = "Windows" @@ -373,8 +373,8 @@ class StorageAccountTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): StandardSSD_LRS uses Standard SSD. Premium_LRS uses Premium SSD. UltraSSD_LRS uses Ultra disk. For more information regarding disks supported for Windows Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-types and, for Linux - Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disks- - types + Virtual Machines, refer to + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disks-types """ STANDARD_LRS = "Standard_LRS" @@ -443,8 +443,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. + see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models.py index 7d502a99c30e..b98735b6b009 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models.py @@ -64,8 +64,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -190,8 +190,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for Windows based scale sets, `enableAutomaticUpdates - `_ is automatically set to false and cannot be set to true. + `_ + is automatically set to false and cannot be set to true. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -3053,11 +3053,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -3488,13 +3488,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_07_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_07_01.models.ImageDataDisk] :param 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). @@ -4158,9 +4158,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` This property cannot be updated after the VM is created. @@ -4172,12 +4170,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -4189,12 +4186,11 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum @@ -4204,19 +4200,19 @@ class OSProfile(msrest.serialization.Model): saved as a file, for more information see `Custom Data on Azure VMs `_ :code:`
    `:code:`
    ` For using cloud-init for your Linux VM, see `Using cloud-init to customize a Linux VM during - creation `_. + creation + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_07_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_07_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -5466,8 +5462,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -5495,13 +5490,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_07_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_07_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_07_01.models.DataDisk] """ @@ -6002,9 +5997,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -6121,11 +6116,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -6166,15 +6160,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -6325,9 +6318,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -6388,10 +6381,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -6603,10 +6596,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -6983,8 +6976,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_07_01.models.SubResource :param additional_capabilities: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines @@ -7153,10 +7146,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -7278,10 +7271,10 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -7907,12 +7900,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -7924,30 +7916,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_07_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_07_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -8184,15 +8174,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_07_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetDataDisk] """ @@ -8251,8 +8239,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): chosen for removal when a Virtual Machine Scale Set is scaled-in. :type scale_in_policy: ~azure.mgmt.compute.v2019_07_01.models.ScaleInPolicy :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_07_01.models.SubResource """ @@ -8672,25 +8660,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2019_07_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar model_definition_applied: Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine. @@ -8989,15 +8975,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -9200,11 +9185,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -9245,15 +9229,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -9416,9 +9399,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py index 331836b70eb1..b69c83336527 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -71,8 +71,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -212,8 +212,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for Windows based scale sets, `enableAutomaticUpdates - `_ is automatically set to false and cannot be set to true. + `_ + is automatically set to false and cannot be set to true. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -3364,11 +3364,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -3850,13 +3850,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_07_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_07_01.models.ImageDataDisk] :param 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). @@ -4597,9 +4597,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` This property cannot be updated after the VM is created. @@ -4611,12 +4609,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -4628,12 +4625,11 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum @@ -4643,19 +4639,19 @@ class OSProfile(msrest.serialization.Model): saved as a file, for more information see `Custom Data on Azure VMs `_ :code:`
    `:code:`
    ` For using cloud-init for your Linux VM, see `Using cloud-init to customize a Linux VM during - creation `_. + creation + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_07_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_07_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -6022,8 +6018,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -6054,13 +6049,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_07_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_07_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_07_01.models.DataDisk] """ @@ -6600,9 +6595,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -6727,11 +6722,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -6772,15 +6766,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -6959,9 +6952,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -7024,10 +7017,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -7069,8 +7062,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -7270,10 +7263,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -7296,8 +7289,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -7696,8 +7689,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_07_01.models.SubResource :param additional_capabilities: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines @@ -7894,10 +7887,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -7935,8 +7928,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): @@ -8034,10 +8027,10 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -8075,8 +8068,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): @@ -8731,12 +8724,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -8748,30 +8740,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_07_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_07_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -9030,15 +9020,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_07_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetDataDisk] """ @@ -9101,8 +9089,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): chosen for removal when a Virtual Machine Scale Set is scaled-in. :type scale_in_policy: ~azure.mgmt.compute.v2019_07_01.models.ScaleInPolicy :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_07_01.models.SubResource """ @@ -9588,25 +9576,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2019_07_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar model_definition_applied: Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine. @@ -9939,15 +9925,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -10173,11 +10158,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -10218,15 +10202,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -10418,9 +10401,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_dedicated_hosts_operations.py index 19bc585faba3..d84df318e303 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_dedicated_hosts_operations.py @@ -128,8 +128,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.DedicatedHost :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) @@ -261,8 +261,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.DedicatedHostUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) @@ -380,8 +380,8 @@ def begin_delete( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_disk_encryption_sets_operations.py index 65026b02d569..9844211b0bf9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_disk_encryption_sets_operations.py @@ -126,8 +126,8 @@ def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2019_07_01.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -259,8 +259,8 @@ def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2019_07_01.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -436,8 +436,8 @@ def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_disks_operations.py index d40226884d36..29a5731d3ffc 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2019_07_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2019_07_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_07_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_galleries_operations.py index 574a76923b51..cafbc5f9220c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_galleries_operations.py @@ -127,8 +127,8 @@ def begin_create_or_update( :type gallery: ~azure.mgmt.compute.v2019_07_01.models.Gallery :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Gallery or the result of cls(response) @@ -254,8 +254,8 @@ def begin_update( :type gallery: ~azure.mgmt.compute.v2019_07_01.models.GalleryUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Gallery or the result of cls(response) @@ -427,8 +427,8 @@ def begin_delete( :type gallery_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_application_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_application_versions_operations.py index 0b10b8fdeb81..5d55e9ba2aa2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_application_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_application_versions_operations.py @@ -142,8 +142,8 @@ def begin_create_or_update( :type gallery_application_version: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -288,8 +288,8 @@ def begin_update( :type gallery_application_version: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -494,8 +494,8 @@ def begin_delete( :type gallery_application_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_applications_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_applications_operations.py index 7b6b2a310321..ee6f8e1d34f2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_applications_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_applications_operations.py @@ -135,8 +135,8 @@ def begin_create_or_update( :type gallery_application: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplication :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplication or the result of cls(response) @@ -271,8 +271,8 @@ def begin_update( :type gallery_application: ~azure.mgmt.compute.v2019_07_01.models.GalleryApplicationUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplication or the result of cls(response) @@ -458,8 +458,8 @@ def begin_delete( :type gallery_application_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_image_versions_operations.py index 44b5952f03ea..f774dc68eeda 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_image_versions_operations.py @@ -142,8 +142,8 @@ def begin_create_or_update( :type gallery_image_version: ~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -288,8 +288,8 @@ def begin_update( :type gallery_image_version: ~azure.mgmt.compute.v2019_07_01.models.GalleryImageVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -492,8 +492,8 @@ def begin_delete( :type gallery_image_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_images_operations.py index b3dcc183a129..d5a044464e84 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_gallery_images_operations.py @@ -134,8 +134,8 @@ def begin_create_or_update( :type gallery_image: ~azure.mgmt.compute.v2019_07_01.models.GalleryImage :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImage or the result of cls(response) @@ -270,8 +270,8 @@ def begin_update( :type gallery_image: ~azure.mgmt.compute.v2019_07_01.models.GalleryImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImage or the result of cls(response) @@ -456,8 +456,8 @@ def begin_delete( :type gallery_image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_images_operations.py index d8b645f31163..5e6fab4849ea 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_images_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -253,8 +253,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -365,8 +365,8 @@ def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_log_analytics_operations.py index 0f1609c11285..a24568247b8c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_log_analytics_operations.py @@ -116,8 +116,8 @@ def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -238,8 +238,8 @@ def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_snapshots_operations.py index e83954808902..9a475cb3f857 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_snapshots_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2019_07_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2019_07_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_07_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_extensions_operations.py index 10c4648949c4..218522376001 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -382,8 +382,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_extensions_operations.py index 10272f0203f7..84e38e7b7fdf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_extensions_operations.py @@ -130,8 +130,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -268,8 +268,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -387,8 +387,8 @@ def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 5ee86e1fdab5..1a333b14522e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -104,8 +104,8 @@ def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -214,8 +214,8 @@ def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -324,8 +324,8 @@ def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py index 4e68af1fbfc7..37cc76401686 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py @@ -133,8 +133,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -274,8 +274,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -402,8 +402,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_vms_operations.py index f89adfc178c1..249d70471d65 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_set_vms_operations.py @@ -122,8 +122,8 @@ def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -239,8 +239,8 @@ def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -356,8 +356,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -490,8 +490,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -609,8 +609,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -958,8 +958,8 @@ def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1074,8 +1074,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1189,8 +1189,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1305,8 +1305,8 @@ def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1421,8 +1421,8 @@ def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1552,8 +1552,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_sets_operations.py index 9960d2111f78..b056e0c7cdaa 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -249,8 +249,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -361,8 +361,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -542,8 +542,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -660,8 +660,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1141,8 +1141,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1263,8 +1263,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1384,8 +1384,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1506,8 +1506,8 @@ def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1619,8 +1619,8 @@ def begin_perform_maintenance( # type: (...) -> LROPoller[None] """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1630,8 +1630,8 @@ def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1748,8 +1748,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1871,8 +1871,8 @@ def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1993,8 +1993,8 @@ def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_sizes_operations.py index b023a8931170..3b8e850c6868 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machine_sizes_operations.py @@ -51,8 +51,8 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.VirtualMachineSizeListResult"] - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machines_operations.py index eea80331a7eb..efa2a520e954 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/operations/_virtual_machines_operations.py @@ -193,8 +193,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -324,8 +324,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -454,8 +454,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -566,8 +566,8 @@ def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -789,13 +789,12 @@ def begin_convert_to_managed_disks( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. :code:`
    `For Windows, please refer to `Convert a - virtual machine from unmanaged disks to managed disks. `_.:code:`
    `For Linux, - please refer to `Convert a virtual machine from unmanaged disks to managed disks. - `_. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :code:`
    `For Windows, please refer to + `Convert a virtual machine from unmanaged disks to managed disks. + `_.:code:`
    `For + Linux, please refer to `Convert a virtual machine from unmanaged disks to managed disks. + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -803,8 +802,8 @@ def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -912,8 +911,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -971,10 +970,10 @@ def generalize( # type: (...) -> None """Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. :code:`
    `For Windows, please refer to - `Create a managed image of a generalized VM in Azure `_.:code:`
    `For Linux, please refer - to `How to create an image of a virtual machine or VHD `_. + `Create a managed image of a generalized VM in Azure + `_.:code:`
    `For + Linux, please refer to `How to create an image of a virtual machine or VHD + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1310,8 +1309,8 @@ def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1421,8 +1420,8 @@ def begin_reapply( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1529,8 +1528,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1637,8 +1636,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1745,8 +1744,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1865,8 +1864,8 @@ def begin_reimage( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1975,8 +1974,8 @@ def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2099,8 +2098,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_07_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_compute_management_client.py index 637da39beaca..a519b1cedc3c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import DisksOperations @@ -66,6 +67,24 @@ def __init__( self.disk_encryption_sets = DiskEncryptionSetsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_configuration.py index 45351f86240a..ff8b47047489 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_metadata.json index 80371b00359b..827e6ddb45f9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -101,11 +101,5 @@ "disks": "DisksOperations", "snapshots": "SnapshotsOperations", "disk_encryption_sets": "DiskEncryptionSetsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/_compute_management_client.py index 896aa8817f96..e9177ccb618d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -63,6 +64,23 @@ def __init__( self.disk_encryption_sets = DiskEncryptionSetsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/_configuration.py index 8f91d7173f40..2c331f35d733 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_disk_encryption_sets_operations.py index f60a49d89d25..776516fe17aa 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_disk_encryption_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Creates or updates a disk encryption set. @@ -120,8 +120,8 @@ async def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2019_11_01.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -179,7 +179,7 @@ async def _update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -236,7 +236,7 @@ async def begin_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Updates (patches) a disk encryption set. @@ -251,8 +251,8 @@ async def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2019_11_01.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -309,7 +309,7 @@ async def get( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": """Gets information about a disk encryption set. @@ -369,7 +369,7 @@ async def _delete_initial( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -413,7 +413,7 @@ async def begin_delete( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk encryption set. @@ -425,8 +425,8 @@ async def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -478,7 +478,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a resource group. @@ -547,7 +547,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_disks_operations.py index 6438c2a29752..3ee1aa5fe4a7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2019_11_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2019_11_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk. @@ -421,8 +421,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_11_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a disk. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_snapshots_operations.py index eaeb8224a628..cd62b08fbcb9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2019_11_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -249,8 +249,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2019_11_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a snapshot. @@ -421,8 +421,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_11_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a snapshot. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_disk_encryption_sets_operations.py index 6a00a55bc7be..58c10ea69446 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_disk_encryption_sets_operations.py @@ -126,8 +126,8 @@ def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2019_11_01.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -259,8 +259,8 @@ def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2019_11_01.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -436,8 +436,8 @@ def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_disks_operations.py index 5b38943d48f5..72333f589afd 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2019_11_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2019_11_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_11_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_snapshots_operations.py index c13421558459..bcff06814c28 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/operations/_snapshots_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2019_11_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2019_11_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2019_11_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_compute_management_client.py index 249869d97f82..1d157fd8de15 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import Operations @@ -176,6 +177,24 @@ def __init__( self.gallery_application_versions = GalleryApplicationVersionsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_configuration.py index af0e285dd89f..cd1d1877ca75 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_metadata.json index b90d67154417..9b1f5fcf8689 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -123,11 +123,5 @@ "gallery_image_versions": "GalleryImageVersionsOperations", "gallery_applications": "GalleryApplicationsOperations", "gallery_application_versions": "GalleryApplicationVersionsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file 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 new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/_compute_management_client.py index 8fca3e525bf8..9897d9fd35b6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -173,6 +174,23 @@ def __init__( self.gallery_application_versions = GalleryApplicationVersionsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/_configuration.py index 71ba8b9eb38a..0fa404f182e5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_availability_sets_operations.py index a28fb3eb7b8f..784ac9dcf918 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -112,7 +112,7 @@ async def update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySetUpdate", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Update an availability set. @@ -177,7 +177,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an availability set. @@ -230,7 +230,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -287,7 +287,7 @@ async def get( def list_by_subscription( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -359,7 +359,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -430,7 +430,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_dedicated_host_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_dedicated_host_groups_operations.py index 14a78f106566..9906d861621f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_dedicated_host_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_dedicated_host_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, host_group_name: str, parameters: "_models.DedicatedHostGroup", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] @@ -118,7 +118,7 @@ async def update( resource_group_name: str, host_group_name: str, parameters: "_models.DedicatedHostGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Update an dedicated host group. @@ -183,7 +183,7 @@ async def delete( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a dedicated host group. @@ -236,7 +236,7 @@ async def get( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Retrieves information about a dedicated host group. @@ -293,7 +293,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: """Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. @@ -363,7 +363,7 @@ async def get_next(next_link=None): def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: """Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_dedicated_hosts_operations.py index 637051dfc954..b88564b19c28 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_dedicated_hosts_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( host_group_name: str, host_name: str, parameters: "_models.DedicatedHost", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( host_group_name: str, host_name: str, parameters: "_models.DedicatedHost", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DedicatedHost"]: """Create or update a dedicated host . @@ -122,8 +122,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.DedicatedHost :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) @@ -184,7 +184,7 @@ async def _update_initial( host_group_name: str, host_name: str, parameters: "_models.DedicatedHostUpdate", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] error_map = { @@ -239,7 +239,7 @@ async def begin_update( host_group_name: str, host_name: str, parameters: "_models.DedicatedHostUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DedicatedHost"]: """Update an dedicated host . @@ -253,8 +253,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.DedicatedHostUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) @@ -314,7 +314,7 @@ async def _delete_initial( resource_group_name: str, host_group_name: str, host_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -358,7 +358,7 @@ async def begin_delete( resource_group_name: str, host_group_name: str, host_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a dedicated host. @@ -370,8 +370,8 @@ async def begin_delete( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -428,7 +428,7 @@ async def get( host_group_name: str, host_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": """Retrieves information about a dedicated host. @@ -493,7 +493,7 @@ def list_by_host_group( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostListResult"]: """Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_galleries_operations.py index 0c09a0d46633..8e39277e82ee 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_galleries_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, gallery_name: str, gallery: "_models.Gallery", - **kwargs + **kwargs: Any ) -> "_models.Gallery": cls = kwargs.pop('cls', None) # type: ClsType["_models.Gallery"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( resource_group_name: str, gallery_name: str, gallery: "_models.Gallery", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Gallery"]: """Create or update a Shared Image Gallery. @@ -121,8 +121,8 @@ async def begin_create_or_update( :type gallery: ~azure.mgmt.compute.v2019_12_01.models.Gallery :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Gallery or the result of cls(response) @@ -180,7 +180,7 @@ async def _update_initial( resource_group_name: str, gallery_name: str, gallery: "_models.GalleryUpdate", - **kwargs + **kwargs: Any ) -> "_models.Gallery": cls = kwargs.pop('cls', None) # type: ClsType["_models.Gallery"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, gallery_name: str, gallery: "_models.GalleryUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Gallery"]: """Update a Shared Image Gallery. @@ -246,8 +246,8 @@ async def begin_update( :type gallery: ~azure.mgmt.compute.v2019_12_01.models.GalleryUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Gallery or the result of cls(response) @@ -304,7 +304,7 @@ async def get( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> "_models.Gallery": """Retrieves information about a Shared Image Gallery. @@ -362,7 +362,7 @@ async def _delete_initial( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -406,7 +406,7 @@ async def begin_delete( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a Shared Image Gallery. @@ -416,8 +416,8 @@ async def begin_delete( :type gallery_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -469,7 +469,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryList"]: """List galleries under a resource group. @@ -538,7 +538,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryList"]: """List galleries under a subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_application_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_application_versions_operations.py index 16c501f89df3..8ecee118331e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_application_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_application_versions_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersion", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplicationVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplicationVersion"] error_map = { @@ -114,7 +114,7 @@ async def begin_create_or_update( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersion", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplicationVersion"]: """Create or update a gallery Application Version. @@ -136,8 +136,8 @@ async def begin_create_or_update( :type gallery_application_version: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplicationVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -201,7 +201,7 @@ async def _update_initial( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersionUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplicationVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplicationVersion"] error_map = { @@ -258,7 +258,7 @@ async def begin_update( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplicationVersion"]: """Update a gallery Application Version. @@ -280,8 +280,8 @@ async def begin_update( :type gallery_application_version: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplicationVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -345,7 +345,7 @@ async def get( gallery_application_name: str, gallery_application_version_name: str, expand: Optional[Union[str, "_models.ReplicationStatusTypes"]] = None, - **kwargs + **kwargs: Any ) -> "_models.GalleryApplicationVersion": """Retrieves information about a gallery Application Version. @@ -418,7 +418,7 @@ async def _delete_initial( gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -466,7 +466,7 @@ async def begin_delete( gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Application Version. @@ -483,8 +483,8 @@ async def begin_delete( :type gallery_application_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -542,7 +542,7 @@ def list_by_gallery_application( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryApplicationVersionList"]: """List gallery Application Versions in a gallery Application Definition. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_applications_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_applications_operations.py index 462e18cfadd9..5927e1f75946 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_applications_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_applications_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplication", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplication": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplication"] error_map = { @@ -111,7 +111,7 @@ async def begin_create_or_update( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplication", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplication"]: """Create or update a gallery Application Definition. @@ -129,8 +129,8 @@ async def begin_create_or_update( :type gallery_application: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplication :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplication or the result of cls(response) @@ -191,7 +191,7 @@ async def _update_initial( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplicationUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplication": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplication"] error_map = { @@ -246,7 +246,7 @@ async def begin_update( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplicationUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplication"]: """Update a gallery Application Definition. @@ -263,8 +263,8 @@ async def begin_update( :type gallery_application: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplicationUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplication or the result of cls(response) @@ -324,7 +324,7 @@ async def get( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> "_models.GalleryApplication": """Retrieves information about a gallery Application Definition. @@ -388,7 +388,7 @@ async def _delete_initial( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -434,7 +434,7 @@ async def begin_delete( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Application. @@ -447,8 +447,8 @@ async def begin_delete( :type gallery_application_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -503,7 +503,7 @@ def list_by_gallery( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryApplicationList"]: """List gallery Application Definitions in a gallery. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_image_versions_operations.py index 8e625c8b0bb7..06f18d2c4e70 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_image_versions_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersion", - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImageVersion"] error_map = { @@ -114,7 +114,7 @@ async def begin_create_or_update( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersion", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImageVersion"]: """Create or update a gallery Image Version. @@ -136,8 +136,8 @@ async def begin_create_or_update( :type gallery_image_version: ~azure.mgmt.compute.v2019_12_01.models.GalleryImageVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -201,7 +201,7 @@ async def _update_initial( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersionUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImageVersion"] error_map = { @@ -258,7 +258,7 @@ async def begin_update( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImageVersion"]: """Update a gallery Image Version. @@ -280,8 +280,8 @@ async def begin_update( :type gallery_image_version: ~azure.mgmt.compute.v2019_12_01.models.GalleryImageVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -345,7 +345,7 @@ async def get( gallery_image_name: str, gallery_image_version_name: str, expand: Optional[Union[str, "_models.ReplicationStatusTypes"]] = None, - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": """Retrieves information about a gallery Image Version. @@ -417,7 +417,7 @@ async def _delete_initial( gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -465,7 +465,7 @@ async def begin_delete( gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Image Version. @@ -481,8 +481,8 @@ async def begin_delete( :type gallery_image_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -540,7 +540,7 @@ def list_by_gallery_image( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryImageVersionList"]: """List gallery Image Versions in a gallery Image Definition. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_images_operations.py index 5003b3d3311a..9a3aad3181c3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_gallery_images_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImage", - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImage"] error_map = { @@ -111,7 +111,7 @@ async def begin_create_or_update( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImage", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImage"]: """Create or update a gallery Image Definition. @@ -128,8 +128,8 @@ async def begin_create_or_update( :type gallery_image: ~azure.mgmt.compute.v2019_12_01.models.GalleryImage :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImage or the result of cls(response) @@ -190,7 +190,7 @@ async def _update_initial( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImage"] error_map = { @@ -245,7 +245,7 @@ async def begin_update( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImage"]: """Update a gallery Image Definition. @@ -262,8 +262,8 @@ async def begin_update( :type gallery_image: ~azure.mgmt.compute.v2019_12_01.models.GalleryImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImage or the result of cls(response) @@ -323,7 +323,7 @@ async def get( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": """Retrieves information about a gallery Image Definition. @@ -386,7 +386,7 @@ async def _delete_initial( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -432,7 +432,7 @@ async def begin_delete( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery image. @@ -445,8 +445,8 @@ async def begin_delete( :type gallery_image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -501,7 +501,7 @@ def list_by_gallery( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryImageList"]: """List gallery Image Definitions in a gallery. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_images_operations.py index 8930c3fb81dc..2b7ddddb7337 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_images_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Create or update an image. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Update an image. @@ -245,8 +245,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -303,7 +303,7 @@ async def _delete_initial( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -345,7 +345,7 @@ async def begin_delete( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an Image. @@ -355,8 +355,8 @@ async def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -410,7 +410,7 @@ async def get( resource_group_name: str, image_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Image": """Gets an image. @@ -471,7 +471,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of images under a resource group. @@ -540,7 +540,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_log_analytics_operations.py index 2524e309ebbe..958c2af0addf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_log_analytics_operations.py @@ -46,7 +46,7 @@ async def _export_request_rate_by_interval_initial( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -99,7 +99,7 @@ async def begin_export_request_rate_by_interval( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show Api requests made by this subscription in the given time window to show throttling activities. @@ -110,8 +110,8 @@ async def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -166,7 +166,7 @@ async def _export_throttled_requests_initial( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -219,7 +219,7 @@ async def begin_export_throttled_requests( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show total throttled Api requests for this subscription in the given time window. @@ -230,8 +230,8 @@ async def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_operations.py index f144e2e612ca..e4aef9fdda3a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ComputeOperationListResult"]: """Gets a list of compute operations. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_proximity_placement_groups_operations.py index 3b4e5d347bb1..cf9e330cdfaf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_proximity_placement_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_proximity_placement_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroup", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Create or update a proximity placement group. @@ -116,7 +116,7 @@ async def update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Update a proximity placement group. @@ -181,7 +181,7 @@ async def delete( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a proximity placement group. @@ -235,7 +235,7 @@ async def get( resource_group_name: str, proximity_placement_group_name: str, include_colocation_status: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Retrieves information about a proximity placement group . @@ -296,7 +296,7 @@ async def get( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a subscription. @@ -363,7 +363,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a resource group. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_ssh_public_keys_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_ssh_public_keys_operations.py index 15d3f0a83ce6..d52134185a0a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_ssh_public_keys_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_ssh_public_keys_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SshPublicKeysGroupListResult"]: """Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. @@ -111,7 +111,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SshPublicKeysGroupListResult"]: """Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. @@ -184,7 +184,7 @@ async def create( resource_group_name: str, ssh_public_key_name: str, parameters: "_models.SshPublicKeyResource", - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyResource": """Creates a new SSH public key resource. @@ -254,7 +254,7 @@ async def update( resource_group_name: str, ssh_public_key_name: str, parameters: "_models.SshPublicKeyUpdateResource", - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyResource": """Updates a new SSH public key resource. @@ -319,7 +319,7 @@ async def delete( self, resource_group_name: str, ssh_public_key_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an SSH public key. @@ -372,7 +372,7 @@ async def get( self, resource_group_name: str, ssh_public_key_name: str, - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyResource": """Retrieves information about an SSH public key. @@ -430,7 +430,7 @@ async def generate_key_pair( self, resource_group_name: str, ssh_public_key_name: str, - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyGenerateKeyPairResult": """Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_usage_operations.py index ba19529ffdaa..aef27c762c3a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_extension_images_operations.py index bef8b05ce219..e682436881e3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_extensions_operations.py index 9d7e9e2d2e84..b026d92f5c72 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -360,7 +360,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -372,8 +372,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -430,7 +430,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. @@ -496,7 +496,7 @@ async def list( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_images_operations.py index f249d81af460..e164fa6dd1cd 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_run_commands_operations.py index d7d96a9b26ae..fff249604651 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_run_commands_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RunCommandListResult"]: """Lists all available run commands for a subscription in a location. @@ -115,7 +115,7 @@ async def get( self, location: str, command_id: str, - **kwargs + **kwargs: Any ) -> "_models.RunCommandDocument": """Gets specific run command for a subscription in a location. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py index 6655f14a4139..436301028c31 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to create or update an extension. @@ -124,8 +124,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -186,7 +186,7 @@ async def _update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -245,7 +245,7 @@ async def begin_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to update an extension. @@ -260,8 +260,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -321,7 +321,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -365,7 +365,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -377,8 +377,8 @@ async def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -435,7 +435,7 @@ async def get( vm_scale_set_name: str, vmss_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": """The operation to get the extension. @@ -500,7 +500,7 @@ def list( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetExtensionListResult"]: """Gets a list of all extensions in a VM scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 7bed27d180a6..8e260a3aa167 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -46,7 +46,7 @@ async def _cancel_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -88,7 +88,7 @@ async def begin_cancel( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Cancels the current virtual machine scale set rolling upgrade. @@ -98,8 +98,8 @@ async def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -152,7 +152,7 @@ async def _start_os_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -194,7 +194,7 @@ async def begin_start_os_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available @@ -206,8 +206,8 @@ async def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -260,7 +260,7 @@ async def _start_extension_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -302,7 +302,7 @@ async def begin_start_extension_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest @@ -314,8 +314,8 @@ async def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -368,7 +368,7 @@ async def get_latest( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.RollingUpgradeStatusInfo": """Gets the status of the latest virtual machine scale set rolling upgrade. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py index 39f0edcf6d68..bc9308f1aa77 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -110,7 +110,7 @@ async def begin_create_or_update( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the VMSS VM extension. @@ -127,8 +127,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -192,7 +192,7 @@ async def _update_initial( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -249,7 +249,7 @@ async def begin_update( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the VMSS VM extension. @@ -266,8 +266,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -330,7 +330,7 @@ async def _delete_initial( vm_scale_set_name: str, instance_id: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -378,7 +378,7 @@ async def begin_delete( vm_scale_set_name: str, instance_id: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the VMSS VM extension. @@ -392,8 +392,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -453,7 +453,7 @@ async def get( instance_id: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the VMSS VM extension. @@ -523,7 +523,7 @@ async def list( vm_scale_set_name: str, instance_id: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of an instance in Virtual Machine Scaleset. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py index 9a19225f08a3..71d90ab4e38c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -49,7 +49,7 @@ async def _reimage_initial( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -102,7 +102,7 @@ async def begin_reimage( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -116,8 +116,8 @@ async def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -174,7 +174,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -218,7 +218,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. @@ -231,8 +231,8 @@ async def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -288,7 +288,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -332,7 +332,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -346,8 +346,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -404,7 +404,7 @@ async def _update_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] error_map = { @@ -463,7 +463,7 @@ async def begin_update( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVM"]: """Updates a virtual machine of a VM scale set. @@ -478,8 +478,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -539,7 +539,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -583,7 +583,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a virtual machine from a VM scale set. @@ -595,8 +595,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -653,7 +653,7 @@ async def get( vm_scale_set_name: str, instance_id: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -719,7 +719,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -783,7 +783,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -874,7 +874,7 @@ async def _power_off_initial( vm_scale_set_name: str, instance_id: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -921,7 +921,7 @@ async def begin_power_off( vm_scale_set_name: str, instance_id: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -939,8 +939,8 @@ async def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -997,7 +997,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1041,7 +1041,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts a virtual machine in a VM scale set. @@ -1053,8 +1053,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1110,7 +1110,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1154,7 +1154,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a virtual machine in a VM scale set. @@ -1166,8 +1166,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1223,7 +1223,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1267,7 +1267,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. @@ -1280,8 +1280,8 @@ async def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1337,7 +1337,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1381,7 +1381,7 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine in a VMScaleSet, moves it to an already updated node, and powers it back on during the self-service phase of planned maintenance. @@ -1394,8 +1394,8 @@ async def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1451,7 +1451,7 @@ async def simulate_eviction( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: """The operation to simulate the eviction of spot virtual machine in a VM scale set. The eviction will occur within 30 minutes of calling the API. @@ -1510,7 +1510,7 @@ async def _run_command_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1567,7 +1567,7 @@ async def begin_run_command( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on a virtual machine in a VM scale set. @@ -1581,8 +1581,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_sets_operations.py index 17aa166f6bfc..67cfd3fde4f5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -229,7 +229,7 @@ async def begin_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Update a VM scale set. @@ -241,8 +241,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -299,7 +299,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -341,7 +341,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a VM scale set. @@ -351,8 +351,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -405,7 +405,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -464,7 +464,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -515,7 +515,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -529,8 +529,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -585,7 +585,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -633,7 +633,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes virtual machines in a VM scale set. @@ -645,8 +645,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -700,7 +700,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -757,7 +757,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -826,7 +826,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -896,7 +896,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -971,7 +971,7 @@ def get_os_upgrade_history( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListOSUpgradeHistory"]: """Gets list of OS upgrades on a VM scale set instance. @@ -1047,7 +1047,7 @@ async def _power_off_initial( vm_scale_set_name: str, skip_shutdown: Optional[bool] = False, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1101,7 +1101,7 @@ async def begin_power_off( vm_scale_set_name: str, skip_shutdown: Optional[bool] = False, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -1119,8 +1119,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1176,7 +1176,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1227,7 +1227,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts one or more virtual machines in a VM scale set. @@ -1239,8 +1239,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1295,7 +1295,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1346,7 +1346,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts one or more virtual machines in a VM scale set. @@ -1358,8 +1358,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1414,7 +1414,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1465,7 +1465,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. @@ -1478,8 +1478,8 @@ async def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1534,7 +1534,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1585,12 +1585,12 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1600,8 +1600,8 @@ async def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1656,7 +1656,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1704,7 +1704,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1716,8 +1716,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1772,7 +1772,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1823,7 +1823,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual @@ -1837,8 +1837,8 @@ async def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1893,7 +1893,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1944,7 +1944,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. @@ -1957,8 +1957,8 @@ async def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2013,7 +2013,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( resource_group_name: str, vm_scale_set_name: str, platform_update_domain: int, - **kwargs + **kwargs: Any ) -> "_models.RecoveryWalkResponse": """Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. @@ -2077,7 +2077,7 @@ async def convert_to_single_placement_group( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VMScaleSetConvertToSinglePlacementGroupInput", - **kwargs + **kwargs: Any ) -> None: """Converts SinglePlacementGroup property to true for a existing virtual machine scale set. @@ -2138,7 +2138,7 @@ async def _set_orchestration_service_state_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.OrchestrationServiceStateInput", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2186,7 +2186,7 @@ async def begin_set_orchestration_service_state( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.OrchestrationServiceStateInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Changes ServiceState property for a given service. @@ -2198,8 +2198,8 @@ async def begin_set_orchestration_service_state( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.OrchestrationServiceStateInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_sizes_operations.py index 89977ca36386..9549f6fb9855 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machine_sizes_operations.py @@ -44,10 +44,10 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machines_operations.py index 12d7559df866..cd2cc9a8e1ab 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/aio/operations/_virtual_machines_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Gets all the virtual machines under the specified subscription for the specified location. @@ -118,7 +118,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -173,7 +173,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -186,8 +186,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -245,7 +245,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -302,7 +302,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. @@ -315,8 +315,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -374,7 +374,7 @@ async def _update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -431,7 +431,7 @@ async def begin_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to update a virtual machine. @@ -443,8 +443,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -501,7 +501,7 @@ async def _delete_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -543,7 +543,7 @@ async def begin_delete( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete a virtual machine. @@ -553,8 +553,8 @@ async def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -608,7 +608,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -670,7 +670,7 @@ async def instance_view( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineInstanceView": """Retrieves information about the run-time state of a virtual machine. @@ -728,7 +728,7 @@ async def _convert_to_managed_disks_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -770,15 +770,14 @@ async def begin_convert_to_managed_disks( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. :code:`
    `For Windows, please refer to `Convert a - virtual machine from unmanaged disks to managed disks. `_.:code:`
    `For Linux, - please refer to `Convert a virtual machine from unmanaged disks to managed disks. - `_. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :code:`
    `For Windows, please refer to + `Convert a virtual machine from unmanaged disks to managed disks. + `_.:code:`
    `For + Linux, please refer to `Convert a virtual machine from unmanaged disks to managed disks. + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -786,8 +785,8 @@ async def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -840,7 +839,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -882,7 +881,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -893,8 +892,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -947,14 +946,14 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: """Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. :code:`
    `For Windows, please refer to - `Create a managed image of a generalized VM in Azure `_.:code:`
    `For Linux, please refer - to `How to create an image of a virtual machine or VHD `_. + `Create a managed image of a generalized VM in Azure + `_.:code:`
    `For + Linux, please refer to `How to create an image of a virtual machine or VHD + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1004,7 +1003,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -1075,7 +1074,7 @@ async def get_next(next_link=None): def list_all( self, status_only: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -1149,7 +1148,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -1225,7 +1224,7 @@ async def _power_off_initial( resource_group_name: str, vm_name: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1270,7 +1269,7 @@ async def begin_power_off( resource_group_name: str, vm_name: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -1285,8 +1284,8 @@ async def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1340,7 +1339,7 @@ async def _reapply_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1384,7 +1383,7 @@ async def begin_reapply( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to reapply a virtual machine's state. @@ -1394,8 +1393,8 @@ async def begin_reapply( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1448,7 +1447,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1490,7 +1489,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to restart a virtual machine. @@ -1500,8 +1499,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1554,7 +1553,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1596,7 +1595,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to start a virtual machine. @@ -1606,8 +1605,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1660,7 +1659,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1702,7 +1701,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1712,8 +1711,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1767,7 +1766,7 @@ async def _reimage_initial( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1818,7 +1817,7 @@ async def begin_reimage( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages the virtual machine which has an ephemeral OS disk back to its initial state. @@ -1830,8 +1829,8 @@ async def begin_reimage( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1885,7 +1884,7 @@ async def _perform_maintenance_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1927,7 +1926,7 @@ async def begin_perform_maintenance( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine, moves it to an already updated node, and powers it back on during the self-service phase of planned maintenance. @@ -1938,8 +1937,8 @@ async def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1992,7 +1991,7 @@ async def simulate_eviction( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: """The operation to simulate the eviction of spot virtual machine. The eviction will occur within 30 minutes of calling the API. @@ -2047,7 +2046,7 @@ async def _run_command_initial( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -2102,7 +2101,7 @@ async def begin_run_command( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on the VM. @@ -2114,8 +2113,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_compute_management_client_enums.py index 9020740d5aa3..9119a47b155d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_compute_management_client_enums.py @@ -75,10 +75,10 @@ class DiffDiskPlacement(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the ephemeral disk placement for operating system disk. This property can be used by user in the request to choose the location i.e, cache disk or resource disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer - Ephemeral OS disk size requirements for Windows VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at - https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size- - requirements + Ephemeral OS disk size requirements for Windows VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements + and Linux VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements """ CACHE_DISK = "CacheDisk" @@ -323,8 +323,8 @@ class StorageAccountTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): StandardSSD_LRS uses Standard SSD. Premium_LRS uses Premium SSD. UltraSSD_LRS uses Ultra disk. For more information regarding disks supported for Windows Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-types and, for Linux - Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disks- - types + Virtual Machines, refer to + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disks-types """ STANDARD_LRS = "Standard_LRS" @@ -393,8 +393,8 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. + see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models.py index 097c51764c6e..c71777a5e30c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models.py @@ -39,8 +39,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -165,8 +165,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for Windows based scale sets, `enableAutomaticUpdates - `_ is automatically set to false and cannot be set to true. + `_ + is automatically set to false and cannot be set to true. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -1219,10 +1219,10 @@ class DiffDiskSettings(msrest.serialization.Model): disk.:code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **CacheDisk** :code:`
    `:code:`
    ` **ResourceDisk** :code:`
    `:code:`
    ` Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.:code:`
    `:code:`
    ` - Refer to VM size documentation for Windows VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible - values include: "CacheDisk", "ResourceDisk". + Refer to VM size documentation for Windows VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes and Linux VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes to check which VM sizes + exposes a cache disk. Possible values include: "CacheDisk", "ResourceDisk". :type placement: str or ~azure.mgmt.compute.v2019_12_01.models.DiffDiskPlacement """ @@ -2641,11 +2641,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -3045,13 +3045,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_12_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_12_01.models.ImageDataDisk] :param 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). @@ -3738,9 +3738,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` This property cannot be updated after the VM is created. @@ -3752,12 +3750,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -3769,12 +3766,11 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum @@ -3784,20 +3780,19 @@ class OSProfile(msrest.serialization.Model): saved as a file, for more information see `Custom Data on Azure VMs `_ :code:`
    `:code:`
    ` For using cloud-init for your Linux VM, see `Using cloud-init to - customize a Linux VM during creation `_. + customize a Linux VM during creation + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -4816,8 +4811,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -4987,13 +4981,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_12_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_12_01.models.DataDisk] """ @@ -5500,9 +5494,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -5619,11 +5613,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -5664,15 +5657,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -5823,9 +5815,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -5886,10 +5878,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -6101,10 +6093,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -6482,8 +6474,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_12_01.models.SubResource :param additional_capabilities: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines @@ -6652,10 +6644,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -6777,10 +6769,10 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -7412,12 +7404,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -7429,30 +7420,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -7689,15 +7678,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetDataDisk] """ @@ -7756,8 +7743,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): chosen for removal when a Virtual Machine Scale Set is scaled-in. :type scale_in_policy: ~azure.mgmt.compute.v2019_12_01.models.ScaleInPolicy :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_12_01.models.SubResource """ @@ -8177,25 +8164,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2019_12_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar model_definition_applied: Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine. @@ -8494,15 +8479,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -8705,11 +8689,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -8750,15 +8733,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -8921,9 +8903,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py index 52cee5cf5369..8f4bf037e8fc 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -46,8 +46,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -187,8 +187,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for Windows based scale sets, `enableAutomaticUpdates - `_ is automatically set to false and cannot be set to true. + `_ + is automatically set to false and cannot be set to true. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -1330,10 +1330,10 @@ class DiffDiskSettings(msrest.serialization.Model): disk.:code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **CacheDisk** :code:`
    `:code:`
    ` **ResourceDisk** :code:`
    `:code:`
    ` Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.:code:`
    `:code:`
    ` - Refer to VM size documentation for Windows VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible - values include: "CacheDisk", "ResourceDisk". + Refer to VM size documentation for Windows VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes and Linux VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes to check which VM sizes + exposes a cache disk. Possible values include: "CacheDisk", "ResourceDisk". :type placement: str or ~azure.mgmt.compute.v2019_12_01.models.DiffDiskPlacement """ @@ -2903,11 +2903,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on - region and availability set. For a list of available sizes use these APIs: - :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. + :code:`
    `:code:`
    ` The available VM sizes depend on region and availability set. For a + list of available sizes use these APIs: :code:`
    `:code:`
    ` `List all available virtual + machine sizes in an availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -3355,13 +3355,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_12_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_12_01.models.ImageDataDisk] :param 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). @@ -4124,9 +4124,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` This property cannot be updated after the VM is created. @@ -4138,12 +4136,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -4155,12 +4152,11 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum @@ -4170,20 +4166,19 @@ class OSProfile(msrest.serialization.Model): saved as a file, for more information see `Custom Data on Azure VMs `_ :code:`
    `:code:`
    ` For using cloud-init for your Linux VM, see `Using cloud-init to - customize a Linux VM during creation `_. + customize a Linux VM during creation + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -5294,8 +5289,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -5482,13 +5476,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_12_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_12_01.models.DataDisk] """ @@ -6035,9 +6029,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -6162,11 +6156,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -6207,15 +6200,14 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -6394,9 +6386,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -6459,10 +6451,10 @@ class VirtualMachineExtension(Resource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -6504,8 +6496,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -6705,10 +6697,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -6731,8 +6723,8 @@ def __init__( type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -7132,8 +7124,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_12_01.models.SubResource :param additional_capabilities: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines @@ -7330,10 +7322,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -7371,8 +7363,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): @@ -7470,10 +7462,10 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): upgrade minor versions unless redeployed, even with this property set to true. :type auto_upgrade_minor_version: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -7511,8 +7503,8 @@ def __init__( type_properties_type: Optional[str] = None, type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): @@ -8173,12 +8165,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -8190,30 +8181,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2019_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2019_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -8472,15 +8461,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2019_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetDataDisk] """ @@ -8543,8 +8530,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): chosen for removal when a Virtual Machine Scale Set is scaled-in. :type scale_in_policy: ~azure.mgmt.compute.v2019_12_01.models.ScaleInPolicy :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2019_12_01.models.SubResource """ @@ -9030,25 +9017,23 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2019_12_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar model_definition_applied: Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine. @@ -9381,15 +9366,14 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetExtensionProfile - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :param priority: Specifies the priority for the virtual machines in the scale set. :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: @@ -9615,11 +9599,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -9660,15 +9643,14 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineInstanceView - :param license_type: Specifies that the image or disk that is being used was licensed on- - premises. This element is only used for images that contain the Windows Server operating + :param license_type: Specifies that the image or disk that is being used was licensed + on-premises. This element is only used for images that contain the Windows Server operating system. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` Windows_Client :code:`
    `:code:`
    ` Windows_Server :code:`
    `:code:`
    ` If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server - `_ :code:`
    `:code:`
    ` - Minimum api-version: 2015-06-15. + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. :type license_type: str :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. @@ -9860,9 +9842,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_dedicated_hosts_operations.py index d2690dad65df..e490756ba264 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_dedicated_hosts_operations.py @@ -128,8 +128,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.DedicatedHost :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) @@ -261,8 +261,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.DedicatedHostUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) @@ -380,8 +380,8 @@ def begin_delete( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_galleries_operations.py index e021545f05e9..3ba51a9743d6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_galleries_operations.py @@ -127,8 +127,8 @@ def begin_create_or_update( :type gallery: ~azure.mgmt.compute.v2019_12_01.models.Gallery :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Gallery or the result of cls(response) @@ -254,8 +254,8 @@ def begin_update( :type gallery: ~azure.mgmt.compute.v2019_12_01.models.GalleryUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Gallery or the result of cls(response) @@ -427,8 +427,8 @@ def begin_delete( :type gallery_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_application_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_application_versions_operations.py index c3167e6d84a6..9a664ba0492f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_application_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_application_versions_operations.py @@ -142,8 +142,8 @@ def begin_create_or_update( :type gallery_application_version: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplicationVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -288,8 +288,8 @@ def begin_update( :type gallery_application_version: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplicationVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -494,8 +494,8 @@ def begin_delete( :type gallery_application_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_applications_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_applications_operations.py index 64f167d7e37b..c7c6ac2be35c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_applications_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_applications_operations.py @@ -135,8 +135,8 @@ def begin_create_or_update( :type gallery_application: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplication :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplication or the result of cls(response) @@ -271,8 +271,8 @@ def begin_update( :type gallery_application: ~azure.mgmt.compute.v2019_12_01.models.GalleryApplicationUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplication or the result of cls(response) @@ -458,8 +458,8 @@ def begin_delete( :type gallery_application_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_image_versions_operations.py index be0cb73ac466..acda04f1dc3b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_image_versions_operations.py @@ -142,8 +142,8 @@ def begin_create_or_update( :type gallery_image_version: ~azure.mgmt.compute.v2019_12_01.models.GalleryImageVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -288,8 +288,8 @@ def begin_update( :type gallery_image_version: ~azure.mgmt.compute.v2019_12_01.models.GalleryImageVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -492,8 +492,8 @@ def begin_delete( :type gallery_image_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_images_operations.py index fbcbf2830a8b..8a234714f270 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_gallery_images_operations.py @@ -134,8 +134,8 @@ def begin_create_or_update( :type gallery_image: ~azure.mgmt.compute.v2019_12_01.models.GalleryImage :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImage or the result of cls(response) @@ -270,8 +270,8 @@ def begin_update( :type gallery_image: ~azure.mgmt.compute.v2019_12_01.models.GalleryImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImage or the result of cls(response) @@ -456,8 +456,8 @@ def begin_delete( :type gallery_image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_images_operations.py index 537af15a3319..c0b7a25ea2d4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_images_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -253,8 +253,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -365,8 +365,8 @@ def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_log_analytics_operations.py index 8d60a53dd637..3af4b3c21020 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_log_analytics_operations.py @@ -116,8 +116,8 @@ def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -238,8 +238,8 @@ def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_extensions_operations.py index 83e6a982044a..b5bd929d4c3e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -382,8 +382,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_extensions_operations.py index cd72b79ea89d..4f5e0f0b368c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_extensions_operations.py @@ -130,8 +130,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -268,8 +268,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -387,8 +387,8 @@ def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 0b4bcf5243a3..a65a788baa18 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -104,8 +104,8 @@ def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -214,8 +214,8 @@ def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -324,8 +324,8 @@ def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py index 182b85a0a35b..215995870701 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py @@ -133,8 +133,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -274,8 +274,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -402,8 +402,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_vms_operations.py index 09d15bfab36e..02910d832545 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_set_vms_operations.py @@ -122,8 +122,8 @@ def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -239,8 +239,8 @@ def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -356,8 +356,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -490,8 +490,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -609,8 +609,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -958,8 +958,8 @@ def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1074,8 +1074,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1189,8 +1189,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1305,8 +1305,8 @@ def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1421,8 +1421,8 @@ def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1611,8 +1611,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_sets_operations.py index 3a14fd0c749d..8d4f89058dd3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -249,8 +249,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -361,8 +361,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -542,8 +542,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -660,8 +660,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1141,8 +1141,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1263,8 +1263,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1384,8 +1384,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1506,8 +1506,8 @@ def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1619,8 +1619,8 @@ def begin_perform_maintenance( # type: (...) -> LROPoller[None] """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1630,8 +1630,8 @@ def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1748,8 +1748,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1871,8 +1871,8 @@ def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1993,8 +1993,8 @@ def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2238,8 +2238,8 @@ def begin_set_orchestration_service_state( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.OrchestrationServiceStateInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_sizes_operations.py index d212e013241f..cf971748f531 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machine_sizes_operations.py @@ -51,8 +51,8 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.VirtualMachineSizeListResult"] - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machines_operations.py index aeda2cd8dc29..9115904be71c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machines_operations.py @@ -193,8 +193,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -324,8 +324,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -454,8 +454,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -566,8 +566,8 @@ def begin_delete( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -789,13 +789,12 @@ def begin_convert_to_managed_disks( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. :code:`
    `For Windows, please refer to `Convert a - virtual machine from unmanaged disks to managed disks. `_.:code:`
    `For Linux, - please refer to `Convert a virtual machine from unmanaged disks to managed disks. - `_. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :code:`
    `For Windows, please refer to + `Convert a virtual machine from unmanaged disks to managed disks. + `_.:code:`
    `For + Linux, please refer to `Convert a virtual machine from unmanaged disks to managed disks. + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -803,8 +802,8 @@ def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -912,8 +911,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -971,10 +970,10 @@ def generalize( # type: (...) -> None """Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. :code:`
    `For Windows, please refer to - `Create a managed image of a generalized VM in Azure `_.:code:`
    `For Linux, please refer - to `How to create an image of a virtual machine or VHD `_. + `Create a managed image of a generalized VM in Azure + `_.:code:`
    `For + Linux, please refer to `How to create an image of a virtual machine or VHD + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1310,8 +1309,8 @@ def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1421,8 +1420,8 @@ def begin_reapply( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1529,8 +1528,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1637,8 +1636,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1745,8 +1744,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1865,8 +1864,8 @@ def begin_reimage( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1975,8 +1974,8 @@ def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2154,8 +2153,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2019_12_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_compute_management_client.py index e4349e9e25cc..4d26c528f5e0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import DisksOperations @@ -71,6 +72,24 @@ def __init__( self.disk_accesses = DiskAccessesOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_configuration.py index c73a911e4b9a..236004dede34 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_metadata.json index 4d3995cb40bf..7028a801e5b9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -102,11 +102,5 @@ "snapshots": "SnapshotsOperations", "disk_encryption_sets": "DiskEncryptionSetsOperations", "disk_accesses": "DiskAccessesOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file 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 new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/_compute_management_client.py index d0f08ca2041e..71ef125605c4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -68,6 +69,23 @@ def __init__( self.disk_accesses = DiskAccessesOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/_configuration.py index c36d4da4899c..b2ea43b9b84d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disk_accesses_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disk_accesses_operations.py index fd2271f8fe69..6ababed65ef7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disk_accesses_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disk_accesses_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccess", - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskAccess"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccess", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskAccess"]: """Creates or updates a disk access resource. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk_access: ~azure.mgmt.compute.v2020_05_01.models.DiskAccess :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskAccess or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccessUpdate", - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskAccess"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccessUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskAccess"]: """Updates (patches) a disk access resource. @@ -249,8 +249,8 @@ async def begin_update( :type disk_access: ~azure.mgmt.compute.v2020_05_01.models.DiskAccessUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskAccess or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": """Gets information about a disk access resource. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -411,7 +411,7 @@ async def begin_delete( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk access resource. @@ -423,8 +423,8 @@ async def begin_delete( :type disk_access_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -476,7 +476,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskAccessList"]: """Lists all the disk access resources under a resource group. @@ -545,7 +545,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskAccessList"]: """Lists all the disk access resources under a subscription. @@ -613,7 +613,7 @@ async def get_private_link_resources( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateLinkResourceListResult": """Gets the private link resources possible under disk access resource. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disk_encryption_sets_operations.py index d31e72cdcc00..68544b7e217d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disk_encryption_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Creates or updates a disk encryption set. @@ -120,8 +120,8 @@ async def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_05_01.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -179,7 +179,7 @@ async def _update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -236,7 +236,7 @@ async def begin_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Updates (patches) a disk encryption set. @@ -251,8 +251,8 @@ async def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_05_01.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -309,7 +309,7 @@ async def get( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": """Gets information about a disk encryption set. @@ -369,7 +369,7 @@ async def _delete_initial( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -413,7 +413,7 @@ async def begin_delete( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk encryption set. @@ -425,8 +425,8 @@ async def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -478,7 +478,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a resource group. @@ -547,7 +547,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disks_operations.py index 6ae066cef39d..3f271e6541ec 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2020_05_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2020_05_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk. @@ -421,8 +421,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_05_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a disk. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_snapshots_operations.py index 4b8add1f5518..26840d0ee1bf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2020_05_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -249,8 +249,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2020_05_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a snapshot. @@ -421,8 +421,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_05_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a snapshot. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disk_accesses_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disk_accesses_operations.py index 1975cfeefe59..52c73b66c51e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disk_accesses_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disk_accesses_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk_access: ~azure.mgmt.compute.v2020_05_01.models.DiskAccess :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskAccess or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk_access: ~azure.mgmt.compute.v2020_05_01.models.DiskAccessUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskAccess or the result of cls(response) @@ -434,8 +434,8 @@ def begin_delete( :type disk_access_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disk_encryption_sets_operations.py index 920b4245e3e2..d614048b3c99 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disk_encryption_sets_operations.py @@ -126,8 +126,8 @@ def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_05_01.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -259,8 +259,8 @@ def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_05_01.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -436,8 +436,8 @@ def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disks_operations.py index be9b46dd29c4..5f35c1a06244 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2020_05_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2020_05_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_05_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_snapshots_operations.py index 3f0b23623b70..4d7cf1ab04e8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/operations/_snapshots_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2020_05_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2020_05_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_05_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_compute_management_client.py index 7bc161f6c288..634071bd8421 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import Operations @@ -156,6 +157,24 @@ def __init__( self.virtual_machine_scale_set_vm_run_commands = VirtualMachineScaleSetVMRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_configuration.py index da0a0d93973b..6b091bdb220b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_metadata.json index 04c43150dedc..dd30d5c82e4c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -119,11 +119,5 @@ "log_analytics": "LogAnalyticsOperations", "virtual_machine_run_commands": "VirtualMachineRunCommandsOperations", "virtual_machine_scale_set_vm_run_commands": "VirtualMachineScaleSetVMRunCommandsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file 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 new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/_compute_management_client.py index 74fce5582858..4876a9bef368 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -153,6 +154,23 @@ def __init__( self.virtual_machine_scale_set_vm_run_commands = VirtualMachineScaleSetVMRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/_configuration.py index 366e07b06b21..391e31bcbf5a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_availability_sets_operations.py index b8ac2fdcfe0b..52e49e6959f3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -112,7 +112,7 @@ async def update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySetUpdate", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Update an availability set. @@ -177,7 +177,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an availability set. @@ -230,7 +230,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -287,7 +287,7 @@ async def get( def list_by_subscription( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -359,7 +359,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -430,7 +430,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_dedicated_host_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_dedicated_host_groups_operations.py index 5ca6b81b5e56..ce9ab2496bf1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_dedicated_host_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_dedicated_host_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, host_group_name: str, parameters: "_models.DedicatedHostGroup", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] @@ -118,7 +118,7 @@ async def update( resource_group_name: str, host_group_name: str, parameters: "_models.DedicatedHostGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Update an dedicated host group. @@ -183,7 +183,7 @@ async def delete( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a dedicated host group. @@ -237,7 +237,7 @@ async def get( resource_group_name: str, host_group_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Retrieves information about a dedicated host group. @@ -299,7 +299,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: """Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. @@ -369,7 +369,7 @@ async def get_next(next_link=None): def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: """Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_dedicated_hosts_operations.py index 71c0d552a159..bd32555120d7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_dedicated_hosts_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( host_group_name: str, host_name: str, parameters: "_models.DedicatedHost", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( host_group_name: str, host_name: str, parameters: "_models.DedicatedHost", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DedicatedHost"]: """Create or update a dedicated host . @@ -122,8 +122,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.DedicatedHost :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) @@ -184,7 +184,7 @@ async def _update_initial( host_group_name: str, host_name: str, parameters: "_models.DedicatedHostUpdate", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] error_map = { @@ -239,7 +239,7 @@ async def begin_update( host_group_name: str, host_name: str, parameters: "_models.DedicatedHostUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DedicatedHost"]: """Update an dedicated host . @@ -253,8 +253,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.DedicatedHostUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) @@ -314,7 +314,7 @@ async def _delete_initial( resource_group_name: str, host_group_name: str, host_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -358,7 +358,7 @@ async def begin_delete( resource_group_name: str, host_group_name: str, host_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a dedicated host. @@ -370,8 +370,8 @@ async def begin_delete( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -428,7 +428,7 @@ async def get( host_group_name: str, host_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": """Retrieves information about a dedicated host. @@ -493,7 +493,7 @@ def list_by_host_group( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostListResult"]: """Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_images_operations.py index bd9a681b662b..89e801ec4ead 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_images_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Create or update an image. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Update an image. @@ -245,8 +245,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -303,7 +303,7 @@ async def _delete_initial( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -345,7 +345,7 @@ async def begin_delete( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an Image. @@ -355,8 +355,8 @@ async def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -410,7 +410,7 @@ async def get( resource_group_name: str, image_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Image": """Gets an image. @@ -471,7 +471,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of images under a resource group. @@ -540,7 +540,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_log_analytics_operations.py index cb26560180b9..6708f769ea48 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_log_analytics_operations.py @@ -46,7 +46,7 @@ async def _export_request_rate_by_interval_initial( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -99,7 +99,7 @@ async def begin_export_request_rate_by_interval( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show Api requests made by this subscription in the given time window to show throttling activities. @@ -110,8 +110,8 @@ async def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -166,7 +166,7 @@ async def _export_throttled_requests_initial( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -219,7 +219,7 @@ async def begin_export_throttled_requests( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show total throttled Api requests for this subscription in the given time window. @@ -230,8 +230,8 @@ async def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_operations.py index 6c00974f6e74..8dc951e3af69 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ComputeOperationListResult"]: """Gets a list of compute operations. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_proximity_placement_groups_operations.py index 98a4fb022d75..2ef6d4dcfb23 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_proximity_placement_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_proximity_placement_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroup", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Create or update a proximity placement group. @@ -116,7 +116,7 @@ async def update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Update a proximity placement group. @@ -181,7 +181,7 @@ async def delete( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a proximity placement group. @@ -235,7 +235,7 @@ async def get( resource_group_name: str, proximity_placement_group_name: str, include_colocation_status: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Retrieves information about a proximity placement group . @@ -296,7 +296,7 @@ async def get( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a subscription. @@ -363,7 +363,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a resource group. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_ssh_public_keys_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_ssh_public_keys_operations.py index 3b266e1cd36c..e27e4fda9a49 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_ssh_public_keys_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_ssh_public_keys_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SshPublicKeysGroupListResult"]: """Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. @@ -111,7 +111,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SshPublicKeysGroupListResult"]: """Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. @@ -184,7 +184,7 @@ async def create( resource_group_name: str, ssh_public_key_name: str, parameters: "_models.SshPublicKeyResource", - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyResource": """Creates a new SSH public key resource. @@ -254,7 +254,7 @@ async def update( resource_group_name: str, ssh_public_key_name: str, parameters: "_models.SshPublicKeyUpdateResource", - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyResource": """Updates a new SSH public key resource. @@ -319,7 +319,7 @@ async def delete( self, resource_group_name: str, ssh_public_key_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an SSH public key. @@ -372,7 +372,7 @@ async def get( self, resource_group_name: str, ssh_public_key_name: str, - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyResource": """Retrieves information about an SSH public key. @@ -430,7 +430,7 @@ async def generate_key_pair( self, resource_group_name: str, ssh_public_key_name: str, - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyGenerateKeyPairResult": """Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_usage_operations.py index 9b2d5453d613..ab110199e992 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_extension_images_operations.py index 6122a6ba803e..de02f76ffacb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_extensions_operations.py index 8afe38bd3402..edd24243981d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -360,7 +360,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -372,8 +372,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -430,7 +430,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. @@ -496,7 +496,7 @@ async def list( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_images_operations.py index 016bbfb65145..a59adbdfb466 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_run_commands_operations.py index ce5132439e40..6c2c17f78733 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_run_commands_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RunCommandListResult"]: """Lists all available run commands for a subscription in a location. @@ -117,7 +117,7 @@ async def get( self, location: str, command_id: str, - **kwargs + **kwargs: Any ) -> "_models.RunCommandDocument": """Gets specific run command for a subscription in a location. @@ -177,7 +177,7 @@ async def _create_or_update_initial( vm_name: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommand", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] error_map = { @@ -236,7 +236,7 @@ async def begin_create_or_update( vm_name: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommand", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: """The operation to create or update the run command. @@ -251,8 +251,8 @@ async def begin_create_or_update( :type run_command: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineRunCommand :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -313,7 +313,7 @@ async def _update_initial( vm_name: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommandUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] error_map = { @@ -368,7 +368,7 @@ async def begin_update( vm_name: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommandUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: """The operation to update the run command. @@ -382,8 +382,8 @@ async def begin_update( :type run_command: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineRunCommandUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -443,7 +443,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, run_command_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -489,7 +489,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, run_command_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the run command. @@ -501,8 +501,8 @@ async def begin_delete( :type run_command_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -559,7 +559,7 @@ async def get_by_virtual_machine( vm_name: str, run_command_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": """The operation to get the run command. @@ -625,7 +625,7 @@ def list_by_virtual_machine( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineRunCommandsListResult"]: """The operation to get all run commands of a Virtual Machine. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py index 5cec1165fe1b..24449f7dc70a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to create or update an extension. @@ -124,8 +124,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -186,7 +186,7 @@ async def _update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -245,7 +245,7 @@ async def begin_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to update an extension. @@ -260,8 +260,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -321,7 +321,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -365,7 +365,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -377,8 +377,8 @@ async def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -435,7 +435,7 @@ async def get( vm_scale_set_name: str, vmss_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": """The operation to get the extension. @@ -500,7 +500,7 @@ def list( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetExtensionListResult"]: """Gets a list of all extensions in a VM scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 6bd81c4976bf..2f872e57269b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -46,7 +46,7 @@ async def _cancel_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -88,7 +88,7 @@ async def begin_cancel( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Cancels the current virtual machine scale set rolling upgrade. @@ -98,8 +98,8 @@ async def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -152,7 +152,7 @@ async def _start_os_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -194,7 +194,7 @@ async def begin_start_os_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available @@ -206,8 +206,8 @@ async def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -260,7 +260,7 @@ async def _start_extension_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -302,7 +302,7 @@ async def begin_start_extension_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest @@ -314,8 +314,8 @@ async def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -368,7 +368,7 @@ async def get_latest( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.RollingUpgradeStatusInfo": """Gets the status of the latest virtual machine scale set rolling upgrade. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py index 59ad4e786e9d..24f2e8305e4d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetVMExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] error_map = { @@ -110,7 +110,7 @@ async def begin_create_or_update( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetVMExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVMExtension"]: """The operation to create or update the VMSS VM extension. @@ -127,8 +127,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) @@ -192,7 +192,7 @@ async def _update_initial( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetVMExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] error_map = { @@ -249,7 +249,7 @@ async def begin_update( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetVMExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVMExtension"]: """The operation to update the VMSS VM extension. @@ -266,8 +266,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) @@ -330,7 +330,7 @@ async def _delete_initial( vm_scale_set_name: str, instance_id: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -378,7 +378,7 @@ async def begin_delete( vm_scale_set_name: str, instance_id: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the VMSS VM extension. @@ -392,8 +392,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -453,7 +453,7 @@ async def get( instance_id: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMExtension": """The operation to get the VMSS VM extension. @@ -523,7 +523,7 @@ async def list( vm_scale_set_name: str, instance_id: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMExtensionsListResult": """The operation to get all extensions of an instance in Virtual Machine Scaleset. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py index 3ddd92ac4ff9..d82a10a88e26 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( instance_id: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommand", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] error_map = { @@ -111,7 +111,7 @@ async def begin_create_or_update( instance_id: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommand", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: """The operation to create or update the VMSS VM run command. @@ -127,8 +127,8 @@ async def begin_create_or_update( :type run_command: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineRunCommand :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -192,7 +192,7 @@ async def _update_initial( instance_id: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommandUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] error_map = { @@ -249,7 +249,7 @@ async def begin_update( instance_id: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommandUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: """The operation to update the VMSS VM run command. @@ -265,8 +265,8 @@ async def begin_update( :type run_command: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineRunCommandUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -329,7 +329,7 @@ async def _delete_initial( vm_scale_set_name: str, instance_id: str, run_command_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -377,7 +377,7 @@ async def begin_delete( vm_scale_set_name: str, instance_id: str, run_command_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the VMSS VM run command. @@ -391,8 +391,8 @@ async def begin_delete( :type run_command_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -452,7 +452,7 @@ async def get( instance_id: str, run_command_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": """The operation to get the VMSS VM run command. @@ -522,7 +522,7 @@ def list( vm_scale_set_name: str, instance_id: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineRunCommandsListResult"]: """The operation to get all run commands of an instance in Virtual Machine Scaleset. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vms_operations.py index ff7969ad9970..2f16a2447b3f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -49,7 +49,7 @@ async def _reimage_initial( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -102,7 +102,7 @@ async def begin_reimage( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -116,8 +116,8 @@ async def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -174,7 +174,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -218,7 +218,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. @@ -231,8 +231,8 @@ async def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -288,7 +288,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -332,7 +332,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -346,8 +346,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -404,7 +404,7 @@ async def _update_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] error_map = { @@ -463,7 +463,7 @@ async def begin_update( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVM"]: """Updates a virtual machine of a VM scale set. @@ -478,8 +478,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -539,7 +539,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -583,7 +583,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a virtual machine from a VM scale set. @@ -595,8 +595,8 @@ async def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -653,7 +653,7 @@ async def get( vm_scale_set_name: str, instance_id: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -719,7 +719,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -783,7 +783,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -874,7 +874,7 @@ async def _power_off_initial( vm_scale_set_name: str, instance_id: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -921,7 +921,7 @@ async def begin_power_off( vm_scale_set_name: str, instance_id: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -939,8 +939,8 @@ async def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -997,7 +997,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1041,7 +1041,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts a virtual machine in a VM scale set. @@ -1053,8 +1053,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1110,7 +1110,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1154,7 +1154,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a virtual machine in a VM scale set. @@ -1166,8 +1166,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1223,7 +1223,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1267,7 +1267,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. @@ -1280,8 +1280,8 @@ async def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1338,7 +1338,7 @@ async def retrieve_boot_diagnostics_data( vm_scale_set_name: str, instance_id: str, sas_uri_expiration_time_in_minutes: Optional[int] = None, - **kwargs + **kwargs: Any ) -> "_models.RetrieveBootDiagnosticsDataResult": """The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. @@ -1407,7 +1407,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1451,7 +1451,7 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Performs maintenance on a virtual machine in a VM scale set. @@ -1463,8 +1463,8 @@ async def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1520,7 +1520,7 @@ async def simulate_eviction( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: """The operation to simulate the eviction of spot virtual machine in a VM scale set. @@ -1578,7 +1578,7 @@ async def _run_command_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1635,7 +1635,7 @@ async def begin_run_command( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on a virtual machine in a VM scale set. @@ -1649,8 +1649,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_sets_operations.py index 80e9bccf0a73..208833ec4f1e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_scale_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -229,7 +229,7 @@ async def begin_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Update a VM scale set. @@ -241,8 +241,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -299,7 +299,7 @@ async def _delete_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -341,7 +341,7 @@ async def begin_delete( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a VM scale set. @@ -351,8 +351,8 @@ async def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -405,7 +405,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -464,7 +464,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -515,7 +515,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -529,8 +529,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -585,7 +585,7 @@ async def _delete_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -633,7 +633,7 @@ async def begin_delete_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes virtual machines in a VM scale set. @@ -645,8 +645,8 @@ async def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -700,7 +700,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -757,7 +757,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -826,7 +826,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -896,7 +896,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -971,7 +971,7 @@ def get_os_upgrade_history( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListOSUpgradeHistory"]: """Gets list of OS upgrades on a VM scale set instance. @@ -1047,7 +1047,7 @@ async def _power_off_initial( vm_scale_set_name: str, skip_shutdown: Optional[bool] = False, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1101,7 +1101,7 @@ async def begin_power_off( vm_scale_set_name: str, skip_shutdown: Optional[bool] = False, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -1119,8 +1119,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1176,7 +1176,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1227,7 +1227,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts one or more virtual machines in a VM scale set. @@ -1239,8 +1239,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1295,7 +1295,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1346,7 +1346,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts one or more virtual machines in a VM scale set. @@ -1358,8 +1358,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1414,7 +1414,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1465,7 +1465,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. @@ -1478,8 +1478,8 @@ async def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1534,7 +1534,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1585,12 +1585,12 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1600,8 +1600,8 @@ async def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1656,7 +1656,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1704,7 +1704,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1716,8 +1716,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1772,7 +1772,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1823,7 +1823,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual @@ -1837,8 +1837,8 @@ async def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1893,7 +1893,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1944,7 +1944,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. @@ -1957,8 +1957,8 @@ async def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2013,7 +2013,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( resource_group_name: str, vm_scale_set_name: str, platform_update_domain: int, - **kwargs + **kwargs: Any ) -> "_models.RecoveryWalkResponse": """Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. @@ -2077,7 +2077,7 @@ async def convert_to_single_placement_group( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VMScaleSetConvertToSinglePlacementGroupInput", - **kwargs + **kwargs: Any ) -> None: """Converts SinglePlacementGroup property to false for a existing virtual machine scale set. @@ -2138,7 +2138,7 @@ async def _set_orchestration_service_state_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.OrchestrationServiceStateInput", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2186,7 +2186,7 @@ async def begin_set_orchestration_service_state( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.OrchestrationServiceStateInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Changes ServiceState property for a given service. @@ -2198,8 +2198,8 @@ async def begin_set_orchestration_service_state( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.OrchestrationServiceStateInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_sizes_operations.py index ed385a923d45..92f776516721 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machine_sizes_operations.py @@ -44,10 +44,10 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machines_operations.py index 4f075aae39d1..b7f0d98500a3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/aio/operations/_virtual_machines_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Gets all the virtual machines under the specified subscription for the specified location. @@ -118,7 +118,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -173,7 +173,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -186,8 +186,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -245,7 +245,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -302,7 +302,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. @@ -315,8 +315,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -374,7 +374,7 @@ async def _update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -431,7 +431,7 @@ async def begin_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to update a virtual machine. @@ -443,8 +443,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -502,7 +502,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, force_deletion: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -547,7 +547,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, force_deletion: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete a virtual machine. @@ -560,8 +560,8 @@ async def begin_delete( :type force_deletion: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -616,7 +616,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -678,7 +678,7 @@ async def instance_view( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineInstanceView": """Retrieves information about the run-time state of a virtual machine. @@ -736,7 +736,7 @@ async def _convert_to_managed_disks_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -778,10 +778,10 @@ async def begin_convert_to_managed_disks( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -789,8 +789,8 @@ async def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -843,7 +843,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -885,7 +885,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -896,8 +896,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -950,14 +950,14 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: """Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. :code:`
    `For Windows, please refer to - `Create a managed image of a generalized VM in Azure `_.:code:`
    `For Linux, please refer - to `How to create an image of a virtual machine or VHD `_. + `Create a managed image of a generalized VM in Azure + `_.:code:`
    `For + Linux, please refer to `How to create an image of a virtual machine or VHD + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1007,7 +1007,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -1078,7 +1078,7 @@ async def get_next(next_link=None): def list_all( self, status_only: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -1152,7 +1152,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -1228,7 +1228,7 @@ async def _power_off_initial( resource_group_name: str, vm_name: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1273,7 +1273,7 @@ async def begin_power_off( resource_group_name: str, vm_name: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -1288,8 +1288,8 @@ async def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1343,7 +1343,7 @@ async def _reapply_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1387,7 +1387,7 @@ async def begin_reapply( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to reapply a virtual machine's state. @@ -1397,8 +1397,8 @@ async def begin_reapply( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1451,7 +1451,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1493,7 +1493,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to restart a virtual machine. @@ -1503,8 +1503,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1557,7 +1557,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1599,7 +1599,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to start a virtual machine. @@ -1609,8 +1609,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1663,7 +1663,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1705,7 +1705,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1715,8 +1715,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1770,7 +1770,7 @@ async def _reimage_initial( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1821,7 +1821,7 @@ async def begin_reimage( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages the virtual machine which has an ephemeral OS disk back to its initial state. @@ -1833,8 +1833,8 @@ async def begin_reimage( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1889,7 +1889,7 @@ async def retrieve_boot_diagnostics_data( resource_group_name: str, vm_name: str, sas_uri_expiration_time_in_minutes: Optional[int] = None, - **kwargs + **kwargs: Any ) -> "_models.RetrieveBootDiagnosticsDataResult": """The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. @@ -1953,7 +1953,7 @@ async def _perform_maintenance_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1995,7 +1995,7 @@ async def begin_perform_maintenance( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to perform maintenance on a virtual machine. @@ -2005,8 +2005,8 @@ async def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2059,7 +2059,7 @@ async def simulate_eviction( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: """The operation to simulate the eviction of spot virtual machine. @@ -2112,7 +2112,7 @@ async def _assess_patches_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineAssessPatchesResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineAssessPatchesResult"]] error_map = { @@ -2161,7 +2161,7 @@ async def begin_assess_patches( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineAssessPatchesResult"]: """Assess patches on the VM. @@ -2171,8 +2171,8 @@ async def begin_assess_patches( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineAssessPatchesResult or the result of cls(response) @@ -2229,7 +2229,7 @@ async def _run_command_initial( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -2284,7 +2284,7 @@ async def begin_run_command( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on the VM. @@ -2296,8 +2296,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py index aa085497ff70..7e1426650c96 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py @@ -66,10 +66,10 @@ class DiffDiskPlacement(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the ephemeral disk placement for operating system disk. This property can be used by user in the request to choose the location i.e, cache disk or resource disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer - Ephemeral OS disk size requirements for Windows VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at - https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size- - requirements + Ephemeral OS disk size requirements for Windows VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements + and Linux VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements """ CACHE_DISK = "CacheDisk" @@ -304,8 +304,9 @@ class StorageAccountTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): can only be set when you create the scale set. NOTE: UltraSSD_LRS can only be used with data disks. It cannot be used with OS Disk. Standard_LRS uses Standard HDD. StandardSSD_LRS uses Standard SSD. Premium_LRS uses Premium SSD. UltraSSD_LRS uses Ultra disk. For more information - regarding disks supported for Windows Virtual Machines, refer to https://docs.microsoft.com/en- - us/azure/virtual-machines/windows/disks-types and, for Linux Virtual Machines, refer to + regarding disks supported for Windows Virtual Machines, refer to + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-types and, for Linux + Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disks-types """ @@ -375,10 +376,11 @@ class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the size of the virtual machine. For more information about virtual machine sizes, - see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and - availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List - all available virtual machine sizes in an availability set + see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The + available VM sizes depend on region and availability set. For a list of available sizes use + these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an + availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py index 48653ca92987..c4b75df8cf9c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py @@ -39,8 +39,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -165,8 +165,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for Windows based scale sets, `enableAutomaticUpdates - `_ is automatically set to false and cannot be set to true. + `_ + is automatically set to false and cannot be set to true. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -1324,10 +1324,10 @@ class DiffDiskSettings(msrest.serialization.Model): disk.:code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **CacheDisk** :code:`
    `:code:`
    ` **ResourceDisk** :code:`
    `:code:`
    ` Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.:code:`
    `:code:`
    ` - Refer to VM size documentation for Windows VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible - values include: "CacheDisk", "ResourceDisk". + Refer to VM size documentation for Windows VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes and Linux VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes to check which VM sizes + exposes a cache disk. Possible values include: "CacheDisk", "ResourceDisk". :type placement: str or ~azure.mgmt.compute.v2020_06_01.models.DiffDiskPlacement """ @@ -1462,10 +1462,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and - availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List - all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The + available VM sizes depend on region and availability set. For a list of available sizes use + these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an + availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -1842,13 +1843,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_06_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_06_01.models.ImageDataDisk] :param 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). @@ -2599,9 +2600,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` This property cannot be updated after the VM is created. @@ -2613,12 +2612,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -2630,12 +2628,11 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum @@ -2645,20 +2642,19 @@ class OSProfile(msrest.serialization.Model): saved as a file, for more information see `Custom Data on Azure VMs `_ :code:`
    `:code:`
    ` For using cloud-init for your Linux VM, see `Using cloud-init to - customize a Linux VM during creation `_. + customize a Linux VM during creation + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2020_06_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2020_06_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -3645,8 +3641,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -3816,13 +3811,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2020_06_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_06_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_06_01.models.DataDisk] """ @@ -4225,9 +4220,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -4347,11 +4342,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -4396,8 +4390,8 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineInstanceView - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -4636,9 +4630,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -4702,10 +4696,10 @@ class VirtualMachineExtension(Resource): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -4922,10 +4916,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -5630,8 +5624,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2020_06_01.models.SubResource :param host_group: Specifies information about the dedicated host group that the virtual machine scale set resides in. :code:`
    `:code:`
    `Minimum api-version: 2020-06-01. @@ -5808,10 +5802,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -5945,10 +5939,10 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -6585,12 +6579,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -6602,30 +6595,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2020_06_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2020_06_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -6862,15 +6853,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2020_06_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetDataDisk] """ @@ -6929,8 +6918,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): chosen for removal when a Virtual Machine Scale Set is scaled-in. :type scale_in_policy: ~azure.mgmt.compute.v2020_06_01.models.ScaleInPolicy :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2020_06_01.models.SubResource """ @@ -7361,18 +7350,17 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2020_06_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -7492,10 +7480,10 @@ class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -7623,10 +7611,10 @@ class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _validation = { @@ -7864,8 +7852,8 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetExtensionProfile - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -8156,11 +8144,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -8205,8 +8192,8 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineInstanceView - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -8392,9 +8379,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py index 3d53ca1faa15..554f12ce832a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -46,8 +46,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -187,8 +187,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for Windows based scale sets, `enableAutomaticUpdates - `_ is automatically set to false and cannot be set to true. + `_ + is automatically set to false and cannot be set to true. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -1437,10 +1437,10 @@ class DiffDiskSettings(msrest.serialization.Model): disk.:code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **CacheDisk** :code:`
    `:code:`
    ` **ResourceDisk** :code:`
    `:code:`
    ` Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.:code:`
    `:code:`
    ` - Refer to VM size documentation for Windows VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible - values include: "CacheDisk", "ResourceDisk". + Refer to VM size documentation for Windows VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes and Linux VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes to check which VM sizes + exposes a cache disk. Possible values include: "CacheDisk", "ResourceDisk". :type placement: str or ~azure.mgmt.compute.v2020_06_01.models.DiffDiskPlacement """ @@ -1592,10 +1592,11 @@ class HardwareProfile(msrest.serialization.Model): """Specifies the hardware settings for the virtual machine. :param vm_size: Specifies the size of the virtual machine. For more information about virtual - machine sizes, see `Sizes for virtual machines `_. :code:`
    `:code:`
    ` The available VM sizes depend on region and - availability set. For a list of available sizes use these APIs: :code:`
    `:code:`
    ` `List - all available virtual machine sizes in an availability set + machine sizes, see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The + available VM sizes depend on region and availability set. For a list of available sizes use + these APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an + availability set `_ :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region `_ @@ -2016,13 +2017,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_06_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_06_01.models.ImageDataDisk] :param 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). @@ -2847,9 +2848,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` This property cannot be updated after the VM is created. @@ -2861,12 +2860,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -2878,12 +2876,11 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum @@ -2893,20 +2890,19 @@ class OSProfile(msrest.serialization.Model): saved as a file, for more information see `Custom Data on Azure VMs `_ :code:`
    `:code:`
    ` For using cloud-init for your Linux VM, see `Using cloud-init to - customize a Linux VM during creation `_. + customize a Linux VM during creation + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2020_06_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2020_06_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -3985,8 +3981,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -4173,13 +4168,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2020_06_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_06_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_06_01.models.DataDisk] """ @@ -4612,9 +4607,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -4742,11 +4737,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -4791,8 +4785,8 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineInstanceView - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -5062,9 +5056,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -5130,10 +5124,10 @@ class VirtualMachineExtension(Resource): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -5177,8 +5171,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -5382,10 +5376,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -5410,8 +5404,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -6181,8 +6175,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2020_06_01.models.SubResource :param host_group: Specifies information about the dedicated host group that the virtual machine scale set resides in. :code:`
    `:code:`
    `Minimum api-version: 2020-06-01. @@ -6388,10 +6382,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -6431,8 +6425,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): @@ -6542,10 +6536,10 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -6585,8 +6579,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): @@ -7252,12 +7246,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -7269,30 +7262,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2020_06_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2020_06_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -7551,15 +7542,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2020_06_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetDataDisk] """ @@ -7622,8 +7611,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): chosen for removal when a Virtual Machine Scale Set is scaled-in. :type scale_in_policy: ~azure.mgmt.compute.v2020_06_01.models.ScaleInPolicy :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2020_06_01.models.SubResource """ @@ -8122,18 +8111,17 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2020_06_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -8268,10 +8256,10 @@ class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -8310,8 +8298,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -8411,10 +8399,10 @@ class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _validation = { @@ -8446,8 +8434,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineScaleSetVMExtensionUpdate, self).__init__(**kwargs) @@ -8681,8 +8669,8 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetExtensionProfile - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -8997,11 +8985,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -9046,8 +9033,8 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineInstanceView - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -9266,9 +9253,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_dedicated_hosts_operations.py index 7bef258e13da..3363fd6cfd34 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_dedicated_hosts_operations.py @@ -128,8 +128,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.DedicatedHost :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) @@ -261,8 +261,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.DedicatedHostUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) @@ -380,8 +380,8 @@ def begin_delete( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_images_operations.py index 020a6ecc8011..832464e8c3ad 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_images_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -253,8 +253,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -365,8 +365,8 @@ def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_log_analytics_operations.py index c69ce99ada08..bc9f7cb5034d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_log_analytics_operations.py @@ -116,8 +116,8 @@ def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -238,8 +238,8 @@ def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_extensions_operations.py index 5eeeebd40d7e..63a5d66d2d76 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -382,8 +382,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_run_commands_operations.py index dcf803f223e4..6634509217ec 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_run_commands_operations.py @@ -259,8 +259,8 @@ def begin_create_or_update( :type run_command: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineRunCommand :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -392,8 +392,8 @@ def begin_update( :type run_command: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineRunCommandUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -513,8 +513,8 @@ def begin_delete( :type run_command_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_extensions_operations.py index 8215154ad3c1..72e81e321d65 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_extensions_operations.py @@ -130,8 +130,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -268,8 +268,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -387,8 +387,8 @@ def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index c5166d97340d..2d4e05b480ed 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -104,8 +104,8 @@ def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -214,8 +214,8 @@ def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -324,8 +324,8 @@ def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py index 5bf271d83532..5ba4a653fa7a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py @@ -133,8 +133,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) @@ -274,8 +274,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) @@ -402,8 +402,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vm_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vm_run_commands_operations.py index 569861e84656..4fee9e7bcfe2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vm_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vm_run_commands_operations.py @@ -133,8 +133,8 @@ def begin_create_or_update( :type run_command: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineRunCommand :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -273,8 +273,8 @@ def begin_update( :type run_command: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineRunCommandUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -401,8 +401,8 @@ def begin_delete( :type run_command_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vms_operations.py index 3fa4446056d4..f3faf84c944e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_set_vms_operations.py @@ -122,8 +122,8 @@ def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -239,8 +239,8 @@ def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -356,8 +356,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -490,8 +490,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -609,8 +609,8 @@ def begin_delete( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -958,8 +958,8 @@ def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1074,8 +1074,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1189,8 +1189,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1305,8 +1305,8 @@ def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1491,8 +1491,8 @@ def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1680,8 +1680,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_sets_operations.py index cd7eab3cc35c..2cff92ba30f0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_scale_sets_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -249,8 +249,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -361,8 +361,8 @@ def begin_delete( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -542,8 +542,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -660,8 +660,8 @@ def begin_delete_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1141,8 +1141,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1263,8 +1263,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1384,8 +1384,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1506,8 +1506,8 @@ def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1619,8 +1619,8 @@ def begin_perform_maintenance( # type: (...) -> LROPoller[None] """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1630,8 +1630,8 @@ def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1748,8 +1748,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1871,8 +1871,8 @@ def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1993,8 +1993,8 @@ def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2238,8 +2238,8 @@ def begin_set_orchestration_service_state( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.OrchestrationServiceStateInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_sizes_operations.py index c3875479bc03..6551a76d2873 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machine_sizes_operations.py @@ -51,8 +51,8 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.VirtualMachineSizeListResult"] - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machines_operations.py index 228113d91c3a..9435a2025086 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/operations/_virtual_machines_operations.py @@ -193,8 +193,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -324,8 +324,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -454,8 +454,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -573,8 +573,8 @@ def begin_delete( :type force_deletion: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -797,8 +797,8 @@ def begin_convert_to_managed_disks( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -806,8 +806,8 @@ def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -915,8 +915,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -974,10 +974,10 @@ def generalize( # type: (...) -> None """Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. :code:`
    `For Windows, please refer to - `Create a managed image of a generalized VM in Azure `_.:code:`
    `For Linux, please refer - to `How to create an image of a virtual machine or VHD `_. + `Create a managed image of a generalized VM in Azure + `_.:code:`
    `For + Linux, please refer to `How to create an image of a virtual machine or VHD + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1313,8 +1313,8 @@ def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1424,8 +1424,8 @@ def begin_reapply( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1532,8 +1532,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1640,8 +1640,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1748,8 +1748,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1868,8 +1868,8 @@ def begin_reimage( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2043,8 +2043,8 @@ def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2212,8 +2212,8 @@ def begin_assess_patches( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineAssessPatchesResult or the result of cls(response) @@ -2339,8 +2339,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2020_06_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_compute_management_client.py index 4fd16125d667..ad8c6138da00 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import DisksOperations @@ -71,6 +72,24 @@ def __init__( self.disk_accesses = DiskAccessesOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_configuration.py index c72f367f2b70..83fb17fdd16f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_metadata.json index aa00efea1bd4..e9eef9ecb7a3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -102,11 +102,5 @@ "snapshots": "SnapshotsOperations", "disk_encryption_sets": "DiskEncryptionSetsOperations", "disk_accesses": "DiskAccessesOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/_compute_management_client.py index 06ad146f3eb1..392851d69c12 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -68,6 +69,23 @@ def __init__( self.disk_accesses = DiskAccessesOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/_configuration.py index 217ef7f77827..4b28d8960669 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disk_accesses_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disk_accesses_operations.py index de7931be455a..cb8cf1ee1bf9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disk_accesses_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disk_accesses_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccess", - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskAccess"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccess", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskAccess"]: """Creates or updates a disk access resource. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk_access: ~azure.mgmt.compute.v2020_06_30.models.DiskAccess :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskAccess or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccessUpdate", - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskAccess"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccessUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskAccess"]: """Updates (patches) a disk access resource. @@ -249,8 +249,8 @@ async def begin_update( :type disk_access: ~azure.mgmt.compute.v2020_06_30.models.DiskAccessUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskAccess or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": """Gets information about a disk access resource. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -411,7 +411,7 @@ async def begin_delete( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk access resource. @@ -423,8 +423,8 @@ async def begin_delete( :type disk_access_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -476,7 +476,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskAccessList"]: """Lists all the disk access resources under a resource group. @@ -545,7 +545,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskAccessList"]: """Lists all the disk access resources under a subscription. @@ -613,7 +613,7 @@ async def get_private_link_resources( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateLinkResourceListResult": """Gets the private link resources possible under disk access resource. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disk_encryption_sets_operations.py index 20d09317f23b..809758b24318 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disk_encryption_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Creates or updates a disk encryption set. @@ -120,8 +120,8 @@ async def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_06_30.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -179,7 +179,7 @@ async def _update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -236,7 +236,7 @@ async def begin_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Updates (patches) a disk encryption set. @@ -251,8 +251,8 @@ async def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_06_30.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -309,7 +309,7 @@ async def get( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": """Gets information about a disk encryption set. @@ -369,7 +369,7 @@ async def _delete_initial( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -413,7 +413,7 @@ async def begin_delete( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk encryption set. @@ -425,8 +425,8 @@ async def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -478,7 +478,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a resource group. @@ -547,7 +547,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a subscription. @@ -615,7 +615,7 @@ def list_associated_resources( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceUriList"]: """Lists all resources that are encrypted with this disk encryption set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disks_operations.py index 3c17d4d25960..0209791c5d06 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2020_06_30.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2020_06_30.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk. @@ -421,8 +421,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_06_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a disk. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_snapshots_operations.py index 9547c5fbc75b..d07e7f4deceb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2020_06_30.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -249,8 +249,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2020_06_30.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a snapshot. @@ -421,8 +421,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_06_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a snapshot. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disk_accesses_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disk_accesses_operations.py index 2c0febb4f429..73e9bdfb38a9 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disk_accesses_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disk_accesses_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk_access: ~azure.mgmt.compute.v2020_06_30.models.DiskAccess :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskAccess or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk_access: ~azure.mgmt.compute.v2020_06_30.models.DiskAccessUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskAccess or the result of cls(response) @@ -434,8 +434,8 @@ def begin_delete( :type disk_access_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disk_encryption_sets_operations.py index 103362980f34..d280a3bcf08f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disk_encryption_sets_operations.py @@ -126,8 +126,8 @@ def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_06_30.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -259,8 +259,8 @@ def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_06_30.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -436,8 +436,8 @@ def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disks_operations.py index 6c40245f0a65..d110406af3d7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2020_06_30.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2020_06_30.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_06_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_snapshots_operations.py index bd0689dd31ad..18fed5043ae6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/operations/_snapshots_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2020_06_30.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2020_06_30.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_06_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_compute_management_client.py index aaed2e835018..c90eab499ed2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import DisksOperations @@ -121,6 +122,24 @@ def __init__( self.shared_gallery_image_versions = SharedGalleryImageVersionsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_configuration.py index 370a3d084192..a667b75946b6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_metadata.json index 72a06748d1c0..9d20ccdb058c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -112,11 +112,5 @@ "shared_galleries": "SharedGalleriesOperations", "shared_gallery_images": "SharedGalleryImagesOperations", "shared_gallery_image_versions": "SharedGalleryImageVersionsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/_compute_management_client.py index 6ef820b07dd5..6f67a5f00e37 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -118,6 +119,23 @@ def __init__( self.shared_gallery_image_versions = SharedGalleryImageVersionsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/_configuration.py index 27f722aaa4df..13cf1d7831eb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_accesses_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_accesses_operations.py index 08a4adb1de3a..0df730ce63c2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_accesses_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_accesses_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccess", - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskAccess"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccess", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskAccess"]: """Creates or updates a disk access resource. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk_access: ~azure.mgmt.compute.v2020_09_30.models.DiskAccess :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskAccess or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccessUpdate", - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskAccess"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccessUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskAccess"]: """Updates (patches) a disk access resource. @@ -249,8 +249,8 @@ async def begin_update( :type disk_access: ~azure.mgmt.compute.v2020_09_30.models.DiskAccessUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskAccess or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": """Gets information about a disk access resource. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -411,7 +411,7 @@ async def begin_delete( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk access resource. @@ -423,8 +423,8 @@ async def begin_delete( :type disk_access_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -476,7 +476,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskAccessList"]: """Lists all the disk access resources under a resource group. @@ -545,7 +545,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskAccessList"]: """Lists all the disk access resources under a subscription. @@ -613,7 +613,7 @@ async def get_private_link_resources( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateLinkResourceListResult": """Gets the private link resources possible under disk access resource. @@ -675,7 +675,7 @@ async def _update_a_private_endpoint_connection_initial( disk_access_name: str, private_endpoint_connection_name: str, private_endpoint_connection: "_models.PrivateEndpointConnection", - **kwargs + **kwargs: Any ) -> "_models.PrivateEndpointConnection": cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { @@ -734,7 +734,7 @@ async def begin_update_a_private_endpoint_connection( disk_access_name: str, private_endpoint_connection_name: str, private_endpoint_connection: "_models.PrivateEndpointConnection", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.PrivateEndpointConnection"]: """Approve or reject a private endpoint connection under disk access resource, this can't be used to create a new private endpoint connection. @@ -752,8 +752,8 @@ async def begin_update_a_private_endpoint_connection( :type private_endpoint_connection: ~azure.mgmt.compute.v2020_09_30.models.PrivateEndpointConnection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response) @@ -813,7 +813,7 @@ async def get_a_private_endpoint_connection( resource_group_name: str, disk_access_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateEndpointConnection": """Gets information about a private endpoint connection under a disk access resource. @@ -877,7 +877,7 @@ async def _delete_a_private_endpoint_connection_initial( resource_group_name: str, disk_access_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -923,7 +923,7 @@ async def begin_delete_a_private_endpoint_connection( resource_group_name: str, disk_access_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a private endpoint connection under a disk access resource. @@ -937,8 +937,8 @@ async def begin_delete_a_private_endpoint_connection( :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -993,7 +993,7 @@ def list_private_endpoint_connections( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateEndpointConnectionListResult"]: """List information about private endpoint connections under a disk access resource. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_encryption_sets_operations.py index 81723b0d1b15..7425b1a9b07c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_encryption_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Creates or updates a disk encryption set. @@ -120,8 +120,8 @@ async def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_09_30.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -179,7 +179,7 @@ async def _update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -236,7 +236,7 @@ async def begin_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Updates (patches) a disk encryption set. @@ -251,8 +251,8 @@ async def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_09_30.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -309,7 +309,7 @@ async def get( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": """Gets information about a disk encryption set. @@ -369,7 +369,7 @@ async def _delete_initial( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -413,7 +413,7 @@ async def begin_delete( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk encryption set. @@ -425,8 +425,8 @@ async def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -478,7 +478,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a resource group. @@ -547,7 +547,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a subscription. @@ -615,7 +615,7 @@ def list_associated_resources( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceUriList"]: """Lists all resources that are encrypted with this disk encryption set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_restore_point_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_restore_point_operations.py index 21c02713bfb7..8873593f8d75 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_restore_point_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disk_restore_point_operations.py @@ -47,7 +47,7 @@ async def get( restore_point_collection_name: str, vm_restore_point_name: str, disk_restore_point_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskRestorePoint": """Get disk restorePoint resource. @@ -117,7 +117,7 @@ def list_by_restore_point( resource_group_name: str, restore_point_collection_name: str, vm_restore_point_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskRestorePointList"]: """Lists diskRestorePoints under a vmRestorePoint. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disks_operations.py index 038e151bdf1f..50e1aaca6560 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2020_09_30.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2020_09_30.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk. @@ -421,8 +421,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_09_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a disk. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_galleries_operations.py index 67b5c90acf84..98f9d9ba248d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_galleries_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, gallery_name: str, gallery: "_models.Gallery", - **kwargs + **kwargs: Any ) -> "_models.Gallery": cls = kwargs.pop('cls', None) # type: ClsType["_models.Gallery"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( resource_group_name: str, gallery_name: str, gallery: "_models.Gallery", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Gallery"]: """Create or update a Shared Image Gallery. @@ -121,8 +121,8 @@ async def begin_create_or_update( :type gallery: ~azure.mgmt.compute.v2020_09_30.models.Gallery :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Gallery or the result of cls(response) @@ -180,7 +180,7 @@ async def _update_initial( resource_group_name: str, gallery_name: str, gallery: "_models.GalleryUpdate", - **kwargs + **kwargs: Any ) -> "_models.Gallery": cls = kwargs.pop('cls', None) # type: ClsType["_models.Gallery"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, gallery_name: str, gallery: "_models.GalleryUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Gallery"]: """Update a Shared Image Gallery. @@ -246,8 +246,8 @@ async def begin_update( :type gallery: ~azure.mgmt.compute.v2020_09_30.models.GalleryUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Gallery or the result of cls(response) @@ -305,7 +305,7 @@ async def get( resource_group_name: str, gallery_name: str, select: Optional[Union[str, "_models.SelectPermissions"]] = None, - **kwargs + **kwargs: Any ) -> "_models.Gallery": """Retrieves information about a Shared Image Gallery. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -411,7 +411,7 @@ async def begin_delete( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a Shared Image Gallery. @@ -421,8 +421,8 @@ async def begin_delete( :type gallery_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryList"]: """List galleries under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryList"]: """List galleries under a subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_application_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_application_versions_operations.py index 9157d222e9d6..1d88a3775f6f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_application_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_application_versions_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersion", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplicationVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplicationVersion"] error_map = { @@ -114,7 +114,7 @@ async def begin_create_or_update( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersion", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplicationVersion"]: """Create or update a gallery Application Version. @@ -136,8 +136,8 @@ async def begin_create_or_update( :type gallery_application_version: ~azure.mgmt.compute.v2020_09_30.models.GalleryApplicationVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -201,7 +201,7 @@ async def _update_initial( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersionUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplicationVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplicationVersion"] error_map = { @@ -258,7 +258,7 @@ async def begin_update( gallery_application_name: str, gallery_application_version_name: str, gallery_application_version: "_models.GalleryApplicationVersionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplicationVersion"]: """Update a gallery Application Version. @@ -280,8 +280,8 @@ async def begin_update( :type gallery_application_version: ~azure.mgmt.compute.v2020_09_30.models.GalleryApplicationVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -345,7 +345,7 @@ async def get( gallery_application_name: str, gallery_application_version_name: str, expand: Optional[Union[str, "_models.ReplicationStatusTypes"]] = None, - **kwargs + **kwargs: Any ) -> "_models.GalleryApplicationVersion": """Retrieves information about a gallery Application Version. @@ -418,7 +418,7 @@ async def _delete_initial( gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -466,7 +466,7 @@ async def begin_delete( gallery_name: str, gallery_application_name: str, gallery_application_version_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Application Version. @@ -483,8 +483,8 @@ async def begin_delete( :type gallery_application_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -542,7 +542,7 @@ def list_by_gallery_application( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryApplicationVersionList"]: """List gallery Application Versions in a gallery Application Definition. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_applications_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_applications_operations.py index 31e13a35bd34..fe8750aad984 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_applications_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_applications_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplication", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplication": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplication"] error_map = { @@ -111,7 +111,7 @@ async def begin_create_or_update( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplication", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplication"]: """Create or update a gallery Application Definition. @@ -129,8 +129,8 @@ async def begin_create_or_update( :type gallery_application: ~azure.mgmt.compute.v2020_09_30.models.GalleryApplication :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplication or the result of cls(response) @@ -191,7 +191,7 @@ async def _update_initial( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplicationUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryApplication": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryApplication"] error_map = { @@ -246,7 +246,7 @@ async def begin_update( gallery_name: str, gallery_application_name: str, gallery_application: "_models.GalleryApplicationUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryApplication"]: """Update a gallery Application Definition. @@ -263,8 +263,8 @@ async def begin_update( :type gallery_application: ~azure.mgmt.compute.v2020_09_30.models.GalleryApplicationUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryApplication or the result of cls(response) @@ -324,7 +324,7 @@ async def get( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> "_models.GalleryApplication": """Retrieves information about a gallery Application Definition. @@ -388,7 +388,7 @@ async def _delete_initial( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -434,7 +434,7 @@ async def begin_delete( resource_group_name: str, gallery_name: str, gallery_application_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery Application. @@ -447,8 +447,8 @@ async def begin_delete( :type gallery_application_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -503,7 +503,7 @@ def list_by_gallery( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryApplicationList"]: """List gallery Application Definitions in a gallery. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_image_versions_operations.py index 78266e38afae..42f955c42ff3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_image_versions_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersion", - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImageVersion"] error_map = { @@ -114,7 +114,7 @@ async def begin_create_or_update( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersion", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImageVersion"]: """Create or update a gallery image version. @@ -136,8 +136,8 @@ async def begin_create_or_update( :type gallery_image_version: ~azure.mgmt.compute.v2020_09_30.models.GalleryImageVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -201,7 +201,7 @@ async def _update_initial( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersionUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImageVersion"] error_map = { @@ -258,7 +258,7 @@ async def begin_update( gallery_image_name: str, gallery_image_version_name: str, gallery_image_version: "_models.GalleryImageVersionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImageVersion"]: """Update a gallery image version. @@ -280,8 +280,8 @@ async def begin_update( :type gallery_image_version: ~azure.mgmt.compute.v2020_09_30.models.GalleryImageVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -345,7 +345,7 @@ async def get( gallery_image_name: str, gallery_image_version_name: str, expand: Optional[Union[str, "_models.ReplicationStatusTypes"]] = None, - **kwargs + **kwargs: Any ) -> "_models.GalleryImageVersion": """Retrieves information about a gallery image version. @@ -417,7 +417,7 @@ async def _delete_initial( gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -465,7 +465,7 @@ async def begin_delete( gallery_name: str, gallery_image_name: str, gallery_image_version_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery image version. @@ -481,8 +481,8 @@ async def begin_delete( :type gallery_image_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -540,7 +540,7 @@ def list_by_gallery_image( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryImageVersionList"]: """List gallery image versions in a gallery image definition. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_images_operations.py index 0b7fc23e1d75..4142105c0c45 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_images_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImage", - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImage"] error_map = { @@ -111,7 +111,7 @@ async def begin_create_or_update( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImage", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImage"]: """Create or update a gallery image definition. @@ -128,8 +128,8 @@ async def begin_create_or_update( :type gallery_image: ~azure.mgmt.compute.v2020_09_30.models.GalleryImage :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImage or the result of cls(response) @@ -190,7 +190,7 @@ async def _update_initial( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": cls = kwargs.pop('cls', None) # type: ClsType["_models.GalleryImage"] error_map = { @@ -245,7 +245,7 @@ async def begin_update( gallery_name: str, gallery_image_name: str, gallery_image: "_models.GalleryImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GalleryImage"]: """Update a gallery image definition. @@ -262,8 +262,8 @@ async def begin_update( :type gallery_image: ~azure.mgmt.compute.v2020_09_30.models.GalleryImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either GalleryImage or the result of cls(response) @@ -323,7 +323,7 @@ async def get( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> "_models.GalleryImage": """Retrieves information about a gallery image definition. @@ -386,7 +386,7 @@ async def _delete_initial( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -432,7 +432,7 @@ async def begin_delete( resource_group_name: str, gallery_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a gallery image. @@ -445,8 +445,8 @@ async def begin_delete( :type gallery_image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -501,7 +501,7 @@ def list_by_gallery( self, resource_group_name: str, gallery_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GalleryImageList"]: """List gallery image definitions in a gallery. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_sharing_profile_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_sharing_profile_operations.py index b96aa80705e6..4350acac21c2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_sharing_profile_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_gallery_sharing_profile_operations.py @@ -47,7 +47,7 @@ async def _update_initial( resource_group_name: str, gallery_name: str, sharing_update: "_models.SharingUpdate", - **kwargs + **kwargs: Any ) -> "_models.SharingUpdate": cls = kwargs.pop('cls', None) # type: ClsType["_models.SharingUpdate"] error_map = { @@ -104,7 +104,7 @@ async def begin_update( resource_group_name: str, gallery_name: str, sharing_update: "_models.SharingUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.SharingUpdate"]: """Update sharing profile of a gallery. @@ -116,8 +116,8 @@ async def begin_update( :type sharing_update: ~azure.mgmt.compute.v2020_09_30.models.SharingUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either SharingUpdate or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_galleries_operations.py index 9c5a90a28e67..845fd4276560 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_galleries_operations.py @@ -45,7 +45,7 @@ def list( self, location: str, shared_to: Optional[Union[str, "_models.SharedToValues"]] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SharedGalleryList"]: """List shared galleries by subscription id or tenant id. @@ -121,7 +121,7 @@ async def get( self, location: str, gallery_unique_name: str, - **kwargs + **kwargs: Any ) -> "_models.SharedGallery": """Get a shared gallery by subscription id or tenant id. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_gallery_image_versions_operations.py index 54dcf72895ad..2b5cda0429cb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_gallery_image_versions_operations.py @@ -47,7 +47,7 @@ def list( gallery_unique_name: str, gallery_image_name: str, shared_to: Optional[Union[str, "_models.SharedToValues"]] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SharedGalleryImageVersionList"]: """List shared gallery image versions by subscription id or tenant id. @@ -132,7 +132,7 @@ async def get( gallery_unique_name: str, gallery_image_name: str, gallery_image_version_name: str, - **kwargs + **kwargs: Any ) -> "_models.SharedGalleryImageVersion": """Get a shared gallery image version by subscription id or tenant id. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_gallery_images_operations.py index 93e1f25b6e77..d78f1b550fb3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_shared_gallery_images_operations.py @@ -46,7 +46,7 @@ def list( location: str, gallery_unique_name: str, shared_to: Optional[Union[str, "_models.SharedToValues"]] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SharedGalleryImageList"]: """List shared gallery images by subscription id or tenant id. @@ -126,7 +126,7 @@ async def get( location: str, gallery_unique_name: str, gallery_image_name: str, - **kwargs + **kwargs: Any ) -> "_models.SharedGalleryImage": """Get a shared gallery image by subscription id or tenant id. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_snapshots_operations.py index b0f14d4f4666..74570ef42999 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2020_09_30.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -249,8 +249,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2020_09_30.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a snapshot. @@ -421,8 +421,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_09_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a snapshot. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disk_accesses_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disk_accesses_operations.py index 308d2007a952..3aa92eb9c69e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disk_accesses_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disk_accesses_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk_access: ~azure.mgmt.compute.v2020_09_30.models.DiskAccess :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskAccess or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk_access: ~azure.mgmt.compute.v2020_09_30.models.DiskAccessUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskAccess or the result of cls(response) @@ -434,8 +434,8 @@ def begin_delete( :type disk_access_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -768,8 +768,8 @@ def begin_update_a_private_endpoint_connection( :type private_endpoint_connection: ~azure.mgmt.compute.v2020_09_30.models.PrivateEndpointConnection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response) @@ -956,8 +956,8 @@ def begin_delete_a_private_endpoint_connection( :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disk_encryption_sets_operations.py index 15993c32d5fe..9e61624b5c8a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disk_encryption_sets_operations.py @@ -126,8 +126,8 @@ def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_09_30.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -259,8 +259,8 @@ def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_09_30.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -436,8 +436,8 @@ def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disks_operations.py index 9ae902826367..0ff9c8e72298 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2020_09_30.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2020_09_30.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_09_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_galleries_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_galleries_operations.py index 771b1f2afd58..85d74ca2f37a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_galleries_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_galleries_operations.py @@ -127,8 +127,8 @@ def begin_create_or_update( :type gallery: ~azure.mgmt.compute.v2020_09_30.models.Gallery :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Gallery or the result of cls(response) @@ -254,8 +254,8 @@ def begin_update( :type gallery: ~azure.mgmt.compute.v2020_09_30.models.GalleryUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Gallery or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type gallery_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_application_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_application_versions_operations.py index 0c3f5c6f329b..17d770d9999e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_application_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_application_versions_operations.py @@ -142,8 +142,8 @@ def begin_create_or_update( :type gallery_application_version: ~azure.mgmt.compute.v2020_09_30.models.GalleryApplicationVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -288,8 +288,8 @@ def begin_update( :type gallery_application_version: ~azure.mgmt.compute.v2020_09_30.models.GalleryApplicationVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplicationVersion or the result of cls(response) @@ -494,8 +494,8 @@ def begin_delete( :type gallery_application_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_applications_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_applications_operations.py index d5e87e885202..b05fac6dfd6a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_applications_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_applications_operations.py @@ -135,8 +135,8 @@ def begin_create_or_update( :type gallery_application: ~azure.mgmt.compute.v2020_09_30.models.GalleryApplication :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplication or the result of cls(response) @@ -271,8 +271,8 @@ def begin_update( :type gallery_application: ~azure.mgmt.compute.v2020_09_30.models.GalleryApplicationUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryApplication or the result of cls(response) @@ -458,8 +458,8 @@ def begin_delete( :type gallery_application_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_image_versions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_image_versions_operations.py index a6dfbe58628a..c69e3d1c2176 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_image_versions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_image_versions_operations.py @@ -142,8 +142,8 @@ def begin_create_or_update( :type gallery_image_version: ~azure.mgmt.compute.v2020_09_30.models.GalleryImageVersion :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -288,8 +288,8 @@ def begin_update( :type gallery_image_version: ~azure.mgmt.compute.v2020_09_30.models.GalleryImageVersionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImageVersion or the result of cls(response) @@ -492,8 +492,8 @@ def begin_delete( :type gallery_image_version_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_images_operations.py index 89e830867104..7334182cd9a6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_images_operations.py @@ -134,8 +134,8 @@ def begin_create_or_update( :type gallery_image: ~azure.mgmt.compute.v2020_09_30.models.GalleryImage :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImage or the result of cls(response) @@ -270,8 +270,8 @@ def begin_update( :type gallery_image: ~azure.mgmt.compute.v2020_09_30.models.GalleryImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GalleryImage or the result of cls(response) @@ -456,8 +456,8 @@ def begin_delete( :type gallery_image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_sharing_profile_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_sharing_profile_operations.py index f26cee3e58ee..96eb2a2aa712 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_sharing_profile_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_gallery_sharing_profile_operations.py @@ -122,8 +122,8 @@ def begin_update( :type sharing_update: ~azure.mgmt.compute.v2020_09_30.models.SharingUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either SharingUpdate or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_snapshots_operations.py index ae95efba2bc4..cd178bebb4c8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_snapshots_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2020_09_30.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2020_09_30.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_09_30.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_compute_management_client.py index 6644c36c0c6e..343a02280505 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import CloudServiceRoleInstancesOperations @@ -71,6 +72,24 @@ def __init__( self.cloud_services_update_domain = CloudServicesUpdateDomainOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_configuration.py index 13573d8cd14f..13c3d26765d1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_metadata.json index f4ff013cb7ae..096a4180fb15 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -102,11 +102,5 @@ "cloud_service_roles": "CloudServiceRolesOperations", "cloud_services": "CloudServicesOperations", "cloud_services_update_domain": "CloudServicesUpdateDomainOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/_compute_management_client.py index fd3ba04943c0..3f380e7bf049 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -68,6 +69,23 @@ def __init__( self.cloud_services_update_domain = CloudServicesUpdateDomainOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/_configuration.py index 560f83a3207c..6c5cfb021b25 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_service_role_instances_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_service_role_instances_operations.py index fc7a188ed828..4e5d978fe097 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_service_role_instances_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_service_role_instances_operations.py @@ -48,7 +48,7 @@ async def _delete_initial( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -94,7 +94,7 @@ async def begin_delete( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a role instance from a cloud service. @@ -106,8 +106,8 @@ async def begin_delete( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -164,7 +164,7 @@ async def get( resource_group_name: str, cloud_service_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.RoleInstance": """Gets a role instance from a cloud service. @@ -230,7 +230,7 @@ async def get_instance_view( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> "_models.RoleInstanceView": """Retrieves information about the run-time state of a role instance in a cloud service. @@ -292,7 +292,7 @@ def list( resource_group_name: str, cloud_service_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RoleInstanceListResult"]: """Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role @@ -373,7 +373,7 @@ async def _restart_initial( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -419,7 +419,7 @@ async def begin_restart( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. @@ -432,8 +432,8 @@ async def begin_restart( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -489,7 +489,7 @@ async def _reimage_initial( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -535,7 +535,7 @@ async def begin_reimage( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. @@ -548,8 +548,8 @@ async def begin_reimage( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -605,7 +605,7 @@ async def _rebuild_initial( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -651,7 +651,7 @@ async def begin_rebuild( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If @@ -665,8 +665,8 @@ async def begin_rebuild( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -722,7 +722,7 @@ async def get_remote_desktop_file( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> IO: """Gets a remote desktop file for a role instance in a cloud service. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_service_roles_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_service_roles_operations.py index 093ff1c6a87f..e9e0a77379cb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_service_roles_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_service_roles_operations.py @@ -46,7 +46,7 @@ async def get( role_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> "_models.CloudServiceRole": """Gets a role from a cloud service. @@ -107,7 +107,7 @@ def list( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.CloudServiceRoleListResult"]: """Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_services_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_services_operations.py index 4215f597c412..23bf32b7a1ed 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_services_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_services_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.CloudService"] = None, - **kwargs + **kwargs: Any ) -> "_models.CloudService": cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudService"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.CloudService"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.CloudService"]: """Create or update a cloud service. Please note some properties can be set only during cloud service creation. @@ -121,8 +121,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.CloudService :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either CloudService or the result of cls(response) @@ -180,7 +180,7 @@ async def _update_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.CloudServiceUpdate"] = None, - **kwargs + **kwargs: Any ) -> "_models.CloudService": cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudService"] error_map = { @@ -236,7 +236,7 @@ async def begin_update( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.CloudServiceUpdate"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.CloudService"]: """Update a cloud service. @@ -248,8 +248,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.CloudServiceUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either CloudService or the result of cls(response) @@ -306,7 +306,7 @@ async def _delete_initial( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -350,7 +350,7 @@ async def begin_delete( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a cloud service. @@ -360,8 +360,8 @@ async def begin_delete( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -414,7 +414,7 @@ async def get( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> "_models.CloudService": """Display information about a cloud service. @@ -472,7 +472,7 @@ async def get_instance_view( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> "_models.CloudServiceInstanceView": """Gets the status of a cloud service. @@ -528,7 +528,7 @@ async def get_instance_view( def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.CloudServiceListResult"]: """Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this @@ -597,7 +597,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.CloudServiceListResult"]: """Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud @@ -670,7 +670,7 @@ async def _start_initial( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -714,7 +714,7 @@ async def begin_start( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts the cloud service. @@ -724,8 +724,8 @@ async def begin_start( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -778,7 +778,7 @@ async def _power_off_initial( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -822,7 +822,7 @@ async def begin_power_off( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off the cloud service. Note that resources are still attached and you are getting charged for the resources. @@ -833,8 +833,8 @@ async def begin_power_off( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -888,7 +888,7 @@ async def _restart_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -941,7 +941,7 @@ async def begin_restart( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts one or more role instances in a cloud service. @@ -953,8 +953,8 @@ async def begin_restart( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1009,7 +1009,7 @@ async def _reimage_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1062,7 +1062,7 @@ async def begin_reimage( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. @@ -1075,8 +1075,8 @@ async def begin_reimage( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1131,7 +1131,7 @@ async def _rebuild_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1184,7 +1184,7 @@ async def begin_rebuild( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to @@ -1198,8 +1198,8 @@ async def begin_rebuild( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1254,7 +1254,7 @@ async def _delete_instances_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1307,7 +1307,7 @@ async def begin_delete_instances( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes role instances in a cloud service. @@ -1319,8 +1319,8 @@ async def begin_delete_instances( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_services_update_domain_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_services_update_domain_operations.py index 333062be0098..191db1654a26 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_services_update_domain_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/aio/operations/_cloud_services_update_domain_operations.py @@ -49,7 +49,7 @@ async def _walk_update_domain_initial( cloud_service_name: str, update_domain: int, parameters: Optional["_models.UpdateDomain"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -104,7 +104,7 @@ async def begin_walk_update_domain( cloud_service_name: str, update_domain: int, parameters: Optional["_models.UpdateDomain"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Updates the role instances in the specified update domain. @@ -120,8 +120,8 @@ async def begin_walk_update_domain( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.UpdateDomain :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -178,7 +178,7 @@ async def get_update_domain( resource_group_name: str, cloud_service_name: str, update_domain: int, - **kwargs + **kwargs: Any ) -> "_models.UpdateDomain": """Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update domains. Do this till nextLink is null to fetch all the update @@ -243,7 +243,7 @@ def list_update_domains( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.UpdateDomainListResult"]: """Gets a list of all update domains in a cloud service. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_service_role_instances_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_service_role_instances_operations.py index 4509bf177c71..ff45af6ac727 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_service_role_instances_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_service_role_instances_operations.py @@ -112,8 +112,8 @@ def begin_delete( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -443,8 +443,8 @@ def begin_restart( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -561,8 +561,8 @@ def begin_reimage( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -680,8 +680,8 @@ def begin_rebuild( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_services_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_services_operations.py index e124a6b1170b..86a531aa5cc5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_services_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_services_operations.py @@ -127,8 +127,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.CloudService :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either CloudService or the result of cls(response) @@ -256,8 +256,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.CloudServiceUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either CloudService or the result of cls(response) @@ -370,8 +370,8 @@ def begin_delete( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -740,8 +740,8 @@ def begin_start( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -851,8 +851,8 @@ def begin_power_off( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -973,8 +973,8 @@ def begin_restart( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1097,8 +1097,8 @@ def begin_reimage( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1222,8 +1222,8 @@ def begin_rebuild( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1345,8 +1345,8 @@ def begin_delete_instances( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_services_update_domain_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_services_update_domain_operations.py index 2eb76cd95b0c..d9099851d836 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_services_update_domain_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/operations/_cloud_services_update_domain_operations.py @@ -126,8 +126,8 @@ def begin_walk_update_domain( :type parameters: ~azure.mgmt.compute.v2020_10_01_preview.models.UpdateDomain :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_compute_management_client.py index 262e3e58daac..e1767d9e2356 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import DisksOperations @@ -186,6 +187,24 @@ def __init__( self.virtual_machine_scale_set_vm_run_commands = VirtualMachineScaleSetVMRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_configuration.py index 69606b4b82d0..edc40d0b8c91 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_metadata.json index 18a44f7fe40e..d24dd623edd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -125,11 +125,5 @@ "log_analytics": "LogAnalyticsOperations", "virtual_machine_run_commands": "VirtualMachineRunCommandsOperations", "virtual_machine_scale_set_vm_run_commands": "VirtualMachineScaleSetVMRunCommandsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/_compute_management_client.py index 2eb7f093141b..82841d93f25c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -183,6 +184,23 @@ def __init__( self.virtual_machine_scale_set_vm_run_commands = VirtualMachineScaleSetVMRunCommandsOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/_configuration.py index e5ce3e9871c5..f3fb1f881213 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_availability_sets_operations.py index 0a62fb537b88..234775a2b48a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_availability_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_availability_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySet", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Create or update an availability set. @@ -112,7 +112,7 @@ async def update( resource_group_name: str, availability_set_name: str, parameters: "_models.AvailabilitySetUpdate", - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Update an availability set. @@ -177,7 +177,7 @@ async def delete( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an availability set. @@ -230,7 +230,7 @@ async def get( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailabilitySet": """Retrieves information about an availability set. @@ -287,7 +287,7 @@ async def get( def list_by_subscription( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a subscription. @@ -359,7 +359,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AvailabilitySetListResult"]: """Lists all availability sets in a resource group. @@ -430,7 +430,7 @@ def list_available_sizes( self, resource_group_name: str, availability_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_dedicated_host_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_dedicated_host_groups_operations.py index 35bfefedf4c5..df4a4af7d4e5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_dedicated_host_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_dedicated_host_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, host_group_name: str, parameters: "_models.DedicatedHostGroup", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] @@ -118,7 +118,7 @@ async def update( resource_group_name: str, host_group_name: str, parameters: "_models.DedicatedHostGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Update an dedicated host group. @@ -183,7 +183,7 @@ async def delete( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a dedicated host group. @@ -237,7 +237,7 @@ async def get( resource_group_name: str, host_group_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHostGroup": """Retrieves information about a dedicated host group. @@ -299,7 +299,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: """Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups. @@ -369,7 +369,7 @@ async def get_next(next_link=None): def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: """Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_dedicated_hosts_operations.py index 9fe686624479..2c5229afbee6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_dedicated_hosts_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( host_group_name: str, host_name: str, parameters: "_models.DedicatedHost", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( host_group_name: str, host_name: str, parameters: "_models.DedicatedHost", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DedicatedHost"]: """Create or update a dedicated host . @@ -122,8 +122,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.DedicatedHost :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) @@ -184,7 +184,7 @@ async def _update_initial( host_group_name: str, host_name: str, parameters: "_models.DedicatedHostUpdate", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] error_map = { @@ -239,7 +239,7 @@ async def begin_update( host_group_name: str, host_name: str, parameters: "_models.DedicatedHostUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DedicatedHost"]: """Update an dedicated host . @@ -253,8 +253,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.DedicatedHostUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) @@ -314,7 +314,7 @@ async def _delete_initial( resource_group_name: str, host_group_name: str, host_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -358,7 +358,7 @@ async def begin_delete( resource_group_name: str, host_group_name: str, host_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Delete a dedicated host. @@ -370,8 +370,8 @@ async def begin_delete( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -428,7 +428,7 @@ async def get( host_group_name: str, host_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.DedicatedHost": """Retrieves information about a dedicated host. @@ -493,7 +493,7 @@ def list_by_host_group( self, resource_group_name: str, host_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DedicatedHostListResult"]: """Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property in the response to get the next page of dedicated hosts. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_accesses_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_accesses_operations.py index 60058d2ede57..bcd2a7c24d77 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_accesses_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_accesses_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccess", - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskAccess"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccess", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskAccess"]: """Creates or updates a disk access resource. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk_access: ~azure.mgmt.compute.v2020_12_01.models.DiskAccess :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskAccess or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccessUpdate", - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskAccess"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_access_name: str, disk_access: "_models.DiskAccessUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskAccess"]: """Updates (patches) a disk access resource. @@ -249,8 +249,8 @@ async def begin_update( :type disk_access: ~azure.mgmt.compute.v2020_12_01.models.DiskAccessUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskAccess or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskAccess": """Gets information about a disk access resource. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -411,7 +411,7 @@ async def begin_delete( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk access resource. @@ -423,8 +423,8 @@ async def begin_delete( :type disk_access_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -476,7 +476,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskAccessList"]: """Lists all the disk access resources under a resource group. @@ -545,7 +545,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskAccessList"]: """Lists all the disk access resources under a subscription. @@ -613,7 +613,7 @@ async def get_private_link_resources( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateLinkResourceListResult": """Gets the private link resources possible under disk access resource. @@ -675,7 +675,7 @@ async def _update_a_private_endpoint_connection_initial( disk_access_name: str, private_endpoint_connection_name: str, private_endpoint_connection: "_models.PrivateEndpointConnection", - **kwargs + **kwargs: Any ) -> "_models.PrivateEndpointConnection": cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { @@ -734,7 +734,7 @@ async def begin_update_a_private_endpoint_connection( disk_access_name: str, private_endpoint_connection_name: str, private_endpoint_connection: "_models.PrivateEndpointConnection", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.PrivateEndpointConnection"]: """Approve or reject a private endpoint connection under disk access resource, this can't be used to create a new private endpoint connection. @@ -752,8 +752,8 @@ async def begin_update_a_private_endpoint_connection( :type private_endpoint_connection: ~azure.mgmt.compute.v2020_12_01.models.PrivateEndpointConnection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response) @@ -813,7 +813,7 @@ async def get_a_private_endpoint_connection( resource_group_name: str, disk_access_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateEndpointConnection": """Gets information about a private endpoint connection under a disk access resource. @@ -877,7 +877,7 @@ async def _delete_a_private_endpoint_connection_initial( resource_group_name: str, disk_access_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -923,7 +923,7 @@ async def begin_delete_a_private_endpoint_connection( resource_group_name: str, disk_access_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a private endpoint connection under a disk access resource. @@ -937,8 +937,8 @@ async def begin_delete_a_private_endpoint_connection( :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -993,7 +993,7 @@ def list_private_endpoint_connections( self, resource_group_name: str, disk_access_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateEndpointConnectionListResult"]: """List information about private endpoint connections under a disk access resource. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_encryption_sets_operations.py index 2be9bf572246..d3297462750a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_encryption_sets_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Creates or updates a disk encryption set. @@ -120,8 +120,8 @@ async def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_12_01.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -179,7 +179,7 @@ async def _update_initial( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.DiskEncryptionSet"] error_map = { @@ -236,7 +236,7 @@ async def begin_update( resource_group_name: str, disk_encryption_set_name: str, disk_encryption_set: "_models.DiskEncryptionSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DiskEncryptionSet"]: """Updates (patches) a disk encryption set. @@ -251,8 +251,8 @@ async def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_12_01.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -309,7 +309,7 @@ async def get( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskEncryptionSet": """Gets information about a disk encryption set. @@ -369,7 +369,7 @@ async def _delete_initial( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -413,7 +413,7 @@ async def begin_delete( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk encryption set. @@ -425,8 +425,8 @@ async def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -478,7 +478,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a resource group. @@ -547,7 +547,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskEncryptionSetList"]: """Lists all the disk encryption sets under a subscription. @@ -615,7 +615,7 @@ def list_associated_resources( self, resource_group_name: str, disk_encryption_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ResourceUriList"]: """Lists all resources that are encrypted with this disk encryption set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_restore_point_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_restore_point_operations.py index 2eac013b9d02..ce7eb0e1a7c2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_restore_point_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disk_restore_point_operations.py @@ -47,7 +47,7 @@ async def get( restore_point_collection_name: str, vm_restore_point_name: str, disk_restore_point_name: str, - **kwargs + **kwargs: Any ) -> "_models.DiskRestorePoint": """Get disk restorePoint resource. @@ -117,7 +117,7 @@ def list_by_restore_point( resource_group_name: str, restore_point_collection_name: str, vm_restore_point_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskRestorePointList"]: """Lists diskRestorePoints under a vmRestorePoint. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disks_operations.py index 908b970b39f4..f599c28d7eaf 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_disks_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, disk_name: str, disk: "_models.Disk", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Creates or updates a disk. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2020_12_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> "_models.Disk": cls = kwargs.pop('cls', None) # type: ClsType["_models.Disk"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, disk_name: str, disk: "_models.DiskUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Disk"]: """Updates (patches) a disk. @@ -249,8 +249,8 @@ async def begin_update( :type disk: ~azure.mgmt.compute.v2020_12_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Disk or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> "_models.Disk": """Gets information about a disk. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a disk. @@ -421,8 +421,8 @@ async def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DiskList"]: """Lists all the disks under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, disk_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a disk. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_12_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, disk_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a disk. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_images_operations.py index 496a6da2faf0..9145a0e8a1d1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_images_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, image_name: str, parameters: "_models.Image", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Create or update an image. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -176,7 +176,7 @@ async def _update_initial( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> "_models.Image": cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, image_name: str, parameters: "_models.ImageUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Image"]: """Update an image. @@ -245,8 +245,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) @@ -303,7 +303,7 @@ async def _delete_initial( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -345,7 +345,7 @@ async def begin_delete( self, resource_group_name: str, image_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an Image. @@ -355,8 +355,8 @@ async def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -410,7 +410,7 @@ async def get( resource_group_name: str, image_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Image": """Gets an image. @@ -471,7 +471,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of images under a resource group. @@ -540,7 +540,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ImageListResult"]: """Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_log_analytics_operations.py index 7a6d69bbaa9f..f4c477c353cd 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_log_analytics_operations.py @@ -46,7 +46,7 @@ async def _export_request_rate_by_interval_initial( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -99,7 +99,7 @@ async def begin_export_request_rate_by_interval( self, location: str, parameters: "_models.RequestRateByIntervalInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show Api requests made by this subscription in the given time window to show throttling activities. @@ -110,8 +110,8 @@ async def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -166,7 +166,7 @@ async def _export_throttled_requests_initial( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> Optional["_models.LogAnalyticsOperationResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] error_map = { @@ -219,7 +219,7 @@ async def begin_export_throttled_requests( self, location: str, parameters: "_models.ThrottledRequestsInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: """Export logs that show total throttled Api requests for this subscription in the given time window. @@ -230,8 +230,8 @@ async def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_operations.py index 292ad1f2cd6d..032118d536e4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ComputeOperationListResult"]: """Gets a list of compute operations. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_proximity_placement_groups_operations.py index 2dad33a7b83e..365f4d235ba1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_proximity_placement_groups_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_proximity_placement_groups_operations.py @@ -46,7 +46,7 @@ async def create_or_update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroup", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Create or update a proximity placement group. @@ -116,7 +116,7 @@ async def update( resource_group_name: str, proximity_placement_group_name: str, parameters: "_models.ProximityPlacementGroupUpdate", - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Update a proximity placement group. @@ -181,7 +181,7 @@ async def delete( self, resource_group_name: str, proximity_placement_group_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete a proximity placement group. @@ -235,7 +235,7 @@ async def get( resource_group_name: str, proximity_placement_group_name: str, include_colocation_status: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.ProximityPlacementGroup": """Retrieves information about a proximity placement group . @@ -296,7 +296,7 @@ async def get( def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a subscription. @@ -363,7 +363,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: """Lists all proximity placement groups in a resource group. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_snapshots_operations.py index 7226f65c089c..da22d6bf6771 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_snapshots_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.Snapshot", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Creates or updates a snapshot. @@ -119,8 +119,8 @@ async def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2020_12_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> "_models.Snapshot": cls = kwargs.pop('cls', None) # type: ClsType["_models.Snapshot"] error_map = { @@ -235,7 +235,7 @@ async def begin_update( resource_group_name: str, snapshot_name: str, snapshot: "_models.SnapshotUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Snapshot"]: """Updates (patches) a snapshot. @@ -249,8 +249,8 @@ async def begin_update( :type snapshot: ~azure.mgmt.compute.v2020_12_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either Snapshot or the result of cls(response) @@ -307,7 +307,7 @@ async def get( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> "_models.Snapshot": """Gets information about a snapshot. @@ -367,7 +367,7 @@ async def _delete_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -409,7 +409,7 @@ async def begin_delete( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a snapshot. @@ -421,8 +421,8 @@ async def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -474,7 +474,7 @@ def get_long_running_output(pipeline_response): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a resource group. @@ -543,7 +543,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SnapshotList"]: """Lists snapshots under a subscription. @@ -612,7 +612,7 @@ async def _grant_access_initial( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> Optional["_models.AccessUri"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AccessUri"]] error_map = { @@ -667,7 +667,7 @@ async def begin_grant_access( resource_group_name: str, snapshot_name: str, grant_access_data: "_models.GrantAccessData", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.AccessUri"]: """Grants access to a snapshot. @@ -682,8 +682,8 @@ async def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_12_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either AccessUri or the result of cls(response) @@ -740,7 +740,7 @@ async def _revoke_access_initial( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -782,7 +782,7 @@ async def begin_revoke_access( self, resource_group_name: str, snapshot_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Revokes access to a snapshot. @@ -794,8 +794,8 @@ async def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_ssh_public_keys_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_ssh_public_keys_operations.py index 231acff656e9..f336d4cf6823 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_ssh_public_keys_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_ssh_public_keys_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SshPublicKeysGroupListResult"]: """Lists all of the SSH public keys in the subscription. Use the nextLink property in the response to get the next page of SSH public keys. @@ -111,7 +111,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SshPublicKeysGroupListResult"]: """Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the response to get the next page of SSH public keys. @@ -184,7 +184,7 @@ async def create( resource_group_name: str, ssh_public_key_name: str, parameters: "_models.SshPublicKeyResource", - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyResource": """Creates a new SSH public key resource. @@ -254,7 +254,7 @@ async def update( resource_group_name: str, ssh_public_key_name: str, parameters: "_models.SshPublicKeyUpdateResource", - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyResource": """Updates a new SSH public key resource. @@ -319,7 +319,7 @@ async def delete( self, resource_group_name: str, ssh_public_key_name: str, - **kwargs + **kwargs: Any ) -> None: """Delete an SSH public key. @@ -372,7 +372,7 @@ async def get( self, resource_group_name: str, ssh_public_key_name: str, - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyResource": """Retrieves information about an SSH public key. @@ -430,7 +430,7 @@ async def generate_key_pair( self, resource_group_name: str, ssh_public_key_name: str, - **kwargs + **kwargs: Any ) -> "_models.SshPublicKeyGenerateKeyPairResult": """Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_usage_operations.py index 1daf57c0e694..6da47acf5172 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_usage_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_usage_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListUsagesResult"]: """Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_extension_images_operations.py index 1daac21830d5..d64b0f00b681 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_extension_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_extension_images_operations.py @@ -46,7 +46,7 @@ async def get( publisher_name: str, type: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionImage": """Gets a virtual machine extension image. @@ -110,7 +110,7 @@ async def list_types( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image types. @@ -172,7 +172,7 @@ async def list_versions( filter: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineExtensionImage"]: """Gets a list of virtual machine extension image versions. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_extensions_operations.py index 8752b66f1fbc..7c50f92503f1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_extensions_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -107,7 +107,7 @@ async def begin_create_or_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to create or update the extension. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -185,7 +185,7 @@ async def _update_initial( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] error_map = { @@ -240,7 +240,7 @@ async def begin_update( vm_name: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: """The operation to update the extension. @@ -255,8 +255,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -316,7 +316,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -360,7 +360,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -372,8 +372,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -430,7 +430,7 @@ async def get( vm_name: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtension": """The operation to get the extension. @@ -496,7 +496,7 @@ async def list( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineExtensionsListResult": """The operation to get all extensions of a Virtual Machine. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_images_edge_zone_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_images_edge_zone_operations.py index 7448ca53b76d..06bc7655d8e5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_images_edge_zone_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_images_edge_zone_operations.py @@ -48,7 +48,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image in an edge zone. @@ -124,7 +124,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU. @@ -206,7 +206,7 @@ async def list_offers( location: str, edge_zone: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location, edge zone and publisher. @@ -268,7 +268,7 @@ async def list_publishers( self, location: str, edge_zone: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location and edge zone. @@ -328,7 +328,7 @@ async def list_skus( edge_zone: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_images_operations.py index ac5dfb72fb2e..1a37851676b3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_images_operations.py @@ -47,7 +47,7 @@ async def get( offer: str, skus: str, version: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineImage": """Gets a virtual machine image. @@ -119,7 +119,7 @@ async def list( expand: Optional[str] = None, top: Optional[int] = None, orderby: Optional[str] = None, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU. @@ -196,7 +196,7 @@ async def list_offers( self, location: str, publisher_name: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image offers for the specified location and publisher. @@ -253,7 +253,7 @@ async def list_offers( async def list_publishers( self, location: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image publishers for the specified Azure location. @@ -309,7 +309,7 @@ async def list_skus( location: str, publisher_name: str, offer: str, - **kwargs + **kwargs: Any ) -> List["_models.VirtualMachineImageResource"]: """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_run_commands_operations.py index 158d5ec8a908..fc719cf19f02 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_run_commands_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RunCommandListResult"]: """Lists all available run commands for a subscription in a location. @@ -117,7 +117,7 @@ async def get( self, location: str, command_id: str, - **kwargs + **kwargs: Any ) -> "_models.RunCommandDocument": """Gets specific run command for a subscription in a location. @@ -177,7 +177,7 @@ async def _create_or_update_initial( vm_name: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommand", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] error_map = { @@ -236,7 +236,7 @@ async def begin_create_or_update( vm_name: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommand", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: """The operation to create or update the run command. @@ -251,8 +251,8 @@ async def begin_create_or_update( :type run_command: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineRunCommand :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -313,7 +313,7 @@ async def _update_initial( vm_name: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommandUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] error_map = { @@ -368,7 +368,7 @@ async def begin_update( vm_name: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommandUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: """The operation to update the run command. @@ -382,8 +382,8 @@ async def begin_update( :type run_command: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineRunCommandUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -443,7 +443,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, run_command_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -489,7 +489,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, run_command_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the run command. @@ -501,8 +501,8 @@ async def begin_delete( :type run_command_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -559,7 +559,7 @@ async def get_by_virtual_machine( vm_name: str, run_command_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": """The operation to get the run command. @@ -625,7 +625,7 @@ def list_by_virtual_machine( resource_group_name: str, vm_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineRunCommandsListResult"]: """The operation to get all run commands of a Virtual Machine. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py index 7cbb9e52761b..2d8fb3667300 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to create or update an extension. @@ -124,8 +124,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -186,7 +186,7 @@ async def _update_initial( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] error_map = { @@ -245,7 +245,7 @@ async def begin_update( vm_scale_set_name: str, vmss_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: """The operation to update an extension. @@ -260,8 +260,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -321,7 +321,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -365,7 +365,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, vmss_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the extension. @@ -377,8 +377,8 @@ async def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -435,7 +435,7 @@ async def get( vm_scale_set_name: str, vmss_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetExtension": """The operation to get the extension. @@ -500,7 +500,7 @@ def list( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetExtensionListResult"]: """Gets a list of all extensions in a VM scale set. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index b78a7b92aa8e..1379d44bad55 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -46,7 +46,7 @@ async def _cancel_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -88,7 +88,7 @@ async def begin_cancel( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Cancels the current virtual machine scale set rolling upgrade. @@ -98,8 +98,8 @@ async def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -152,7 +152,7 @@ async def _start_os_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -194,7 +194,7 @@ async def begin_start_os_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available @@ -206,8 +206,8 @@ async def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -260,7 +260,7 @@ async def _start_extension_upgrade_initial( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -302,7 +302,7 @@ async def begin_start_extension_upgrade( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest @@ -314,8 +314,8 @@ async def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -368,7 +368,7 @@ async def get_latest( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.RollingUpgradeStatusInfo": """Gets the status of the latest virtual machine scale set rolling upgrade. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py index 66093b456174..662ce9b18b7d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetVMExtension", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] error_map = { @@ -110,7 +110,7 @@ async def begin_create_or_update( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetVMExtension", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVMExtension"]: """The operation to create or update the VMSS VM extension. @@ -127,8 +127,8 @@ async def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) @@ -192,7 +192,7 @@ async def _update_initial( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetVMExtensionUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMExtension": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] error_map = { @@ -249,7 +249,7 @@ async def begin_update( instance_id: str, vm_extension_name: str, extension_parameters: "_models.VirtualMachineScaleSetVMExtensionUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVMExtension"]: """The operation to update the VMSS VM extension. @@ -266,8 +266,8 @@ async def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) @@ -330,7 +330,7 @@ async def _delete_initial( vm_scale_set_name: str, instance_id: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -378,7 +378,7 @@ async def begin_delete( vm_scale_set_name: str, instance_id: str, vm_extension_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the VMSS VM extension. @@ -392,8 +392,8 @@ async def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -453,7 +453,7 @@ async def get( instance_id: str, vm_extension_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMExtension": """The operation to get the VMSS VM extension. @@ -523,7 +523,7 @@ async def list( vm_scale_set_name: str, instance_id: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMExtensionsListResult": """The operation to get all extensions of an instance in Virtual Machine Scaleset. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py index 45140c7d697d..fc3dbd39e577 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py @@ -50,7 +50,7 @@ async def _create_or_update_initial( instance_id: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommand", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] error_map = { @@ -111,7 +111,7 @@ async def begin_create_or_update( instance_id: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommand", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: """The operation to create or update the VMSS VM run command. @@ -127,8 +127,8 @@ async def begin_create_or_update( :type run_command: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineRunCommand :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -192,7 +192,7 @@ async def _update_initial( instance_id: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommandUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] error_map = { @@ -249,7 +249,7 @@ async def begin_update( instance_id: str, run_command_name: str, run_command: "_models.VirtualMachineRunCommandUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: """The operation to update the VMSS VM run command. @@ -265,8 +265,8 @@ async def begin_update( :type run_command: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineRunCommandUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -329,7 +329,7 @@ async def _delete_initial( vm_scale_set_name: str, instance_id: str, run_command_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -377,7 +377,7 @@ async def begin_delete( vm_scale_set_name: str, instance_id: str, run_command_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete the VMSS VM run command. @@ -391,8 +391,8 @@ async def begin_delete( :type run_command_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -452,7 +452,7 @@ async def get( instance_id: str, run_command_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineRunCommand": """The operation to get the VMSS VM run command. @@ -522,7 +522,7 @@ def list( vm_scale_set_name: str, instance_id: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineRunCommandsListResult"]: """The operation to get all run commands of an instance in Virtual Machine Scaleset. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py index 9d1af80f9ede..b3c48f1cb2b5 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -49,7 +49,7 @@ async def _reimage_initial( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -102,7 +102,7 @@ async def begin_reimage( vm_scale_set_name: str, instance_id: str, vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -116,8 +116,8 @@ async def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -174,7 +174,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -218,7 +218,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks. @@ -231,8 +231,8 @@ async def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -288,7 +288,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -332,7 +332,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this @@ -346,8 +346,8 @@ async def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -404,7 +404,7 @@ async def _update_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] error_map = { @@ -463,7 +463,7 @@ async def begin_update( vm_scale_set_name: str, instance_id: str, parameters: "_models.VirtualMachineScaleSetVM", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVM"]: """Updates a virtual machine of a VM scale set. @@ -478,8 +478,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -540,7 +540,7 @@ async def _delete_initial( vm_scale_set_name: str, instance_id: str, force_deletion: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -587,7 +587,7 @@ async def begin_delete( vm_scale_set_name: str, instance_id: str, force_deletion: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a virtual machine from a VM scale set. @@ -602,8 +602,8 @@ async def begin_delete( :type force_deletion: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -661,7 +661,7 @@ async def get( vm_scale_set_name: str, instance_id: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVM": """Gets a virtual machine from a VM scale set. @@ -727,7 +727,7 @@ async def get_instance_view( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetVMInstanceView": """Gets the status of a virtual machine from a VM scale set. @@ -791,7 +791,7 @@ def list( filter: Optional[str] = None, select: Optional[str] = None, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: """Gets a list of all virtual machines in a VM scale sets. @@ -882,7 +882,7 @@ async def _power_off_initial( vm_scale_set_name: str, instance_id: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -929,7 +929,7 @@ async def begin_power_off( vm_scale_set_name: str, instance_id: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and @@ -947,8 +947,8 @@ async def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1005,7 +1005,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1049,7 +1049,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts a virtual machine in a VM scale set. @@ -1061,8 +1061,8 @@ async def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1118,7 +1118,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1162,7 +1162,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a virtual machine in a VM scale set. @@ -1174,8 +1174,8 @@ async def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1231,7 +1231,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1275,7 +1275,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. @@ -1288,8 +1288,8 @@ async def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1346,7 +1346,7 @@ async def retrieve_boot_diagnostics_data( vm_scale_set_name: str, instance_id: str, sas_uri_expiration_time_in_minutes: Optional[int] = None, - **kwargs + **kwargs: Any ) -> "_models.RetrieveBootDiagnosticsDataResult": """The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. @@ -1415,7 +1415,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1459,7 +1459,7 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Performs maintenance on a virtual machine in a VM scale set. @@ -1471,8 +1471,8 @@ async def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1528,7 +1528,7 @@ async def simulate_eviction( resource_group_name: str, vm_scale_set_name: str, instance_id: str, - **kwargs + **kwargs: Any ) -> None: """The operation to simulate the eviction of spot virtual machine in a VM scale set. @@ -1586,7 +1586,7 @@ async def _run_command_initial( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -1643,7 +1643,7 @@ async def begin_run_command( vm_scale_set_name: str, instance_id: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on a virtual machine in a VM scale set. @@ -1657,8 +1657,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_sets_operations.py index 2b13d26838a4..a907625a7b82 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_scale_sets_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets all the VM scale sets under the specified subscription for the specified location. @@ -118,7 +118,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -175,7 +175,7 @@ async def begin_create_or_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSet", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Create or update a VM scale set. @@ -187,8 +187,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -246,7 +246,7 @@ async def _update_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] error_map = { @@ -299,7 +299,7 @@ async def begin_update( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VirtualMachineScaleSetUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: """Update a VM scale set. @@ -311,8 +311,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -370,7 +370,7 @@ async def _delete_initial( resource_group_name: str, vm_scale_set_name: str, force_deletion: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -415,7 +415,7 @@ async def begin_delete( resource_group_name: str, vm_scale_set_name: str, force_deletion: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a VM scale set. @@ -427,8 +427,8 @@ async def begin_delete( :type force_deletion: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -482,7 +482,7 @@ async def get( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSet": """Display information about a virtual machine scale set. @@ -541,7 +541,7 @@ async def _deallocate_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -592,7 +592,7 @@ async def begin_deallocate( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual @@ -606,8 +606,8 @@ async def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -663,7 +663,7 @@ async def _delete_instances_initial( vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", force_deletion: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -714,7 +714,7 @@ async def begin_delete_instances( vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", force_deletion: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes virtual machines in a VM scale set. @@ -729,8 +729,8 @@ async def begin_delete_instances( :type force_deletion: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -785,7 +785,7 @@ async def get_instance_view( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineScaleSetInstanceView": """Gets the status of a VM scale set instance. @@ -842,7 +842,7 @@ async def get_instance_view( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: """Gets a list of all VM scale sets under a resource group. @@ -911,7 +911,7 @@ async def get_next(next_link=None): def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this @@ -981,7 +981,7 @@ def list_skus( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU. @@ -1056,7 +1056,7 @@ def get_os_upgrade_history( self, resource_group_name: str, vm_scale_set_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineScaleSetListOSUpgradeHistory"]: """Gets list of OS upgrades on a VM scale set instance. @@ -1132,7 +1132,7 @@ async def _power_off_initial( vm_scale_set_name: str, skip_shutdown: Optional[bool] = False, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1186,7 +1186,7 @@ async def begin_power_off( vm_scale_set_name: str, skip_shutdown: Optional[bool] = False, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release @@ -1204,8 +1204,8 @@ async def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1261,7 +1261,7 @@ async def _restart_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1312,7 +1312,7 @@ async def begin_restart( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts one or more virtual machines in a VM scale set. @@ -1324,8 +1324,8 @@ async def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1380,7 +1380,7 @@ async def _start_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1431,7 +1431,7 @@ async def begin_start( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts one or more virtual machines in a VM scale set. @@ -1443,8 +1443,8 @@ async def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1499,7 +1499,7 @@ async def _redeploy_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1550,7 +1550,7 @@ async def begin_redeploy( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. @@ -1563,8 +1563,8 @@ async def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1619,7 +1619,7 @@ async def _perform_maintenance_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1670,12 +1670,12 @@ async def begin_perform_maintenance( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1685,8 +1685,8 @@ async def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1741,7 +1741,7 @@ async def _update_instances_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1789,7 +1789,7 @@ async def begin_update_instances( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -1801,8 +1801,8 @@ async def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1857,7 +1857,7 @@ async def _reimage_initial( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1908,7 +1908,7 @@ async def begin_reimage( resource_group_name: str, vm_scale_set_name: str, vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual @@ -1922,8 +1922,8 @@ async def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1978,7 +1978,7 @@ async def _reimage_all_initial( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2029,7 +2029,7 @@ async def begin_reimage_all( resource_group_name: str, vm_scale_set_name: str, vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks. @@ -2042,8 +2042,8 @@ async def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2098,7 +2098,7 @@ async def force_recovery_service_fabric_platform_update_domain_walk( resource_group_name: str, vm_scale_set_name: str, platform_update_domain: int, - **kwargs + **kwargs: Any ) -> "_models.RecoveryWalkResponse": """Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set. @@ -2162,7 +2162,7 @@ async def convert_to_single_placement_group( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.VMScaleSetConvertToSinglePlacementGroupInput", - **kwargs + **kwargs: Any ) -> None: """Converts SinglePlacementGroup property to false for a existing virtual machine scale set. @@ -2223,7 +2223,7 @@ async def _set_orchestration_service_state_initial( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.OrchestrationServiceStateInput", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -2271,7 +2271,7 @@ async def begin_set_orchestration_service_state( resource_group_name: str, vm_scale_set_name: str, parameters: "_models.OrchestrationServiceStateInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Changes ServiceState property for a given service. @@ -2283,8 +2283,8 @@ async def begin_set_orchestration_service_state( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.OrchestrationServiceStateInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_sizes_operations.py index 3db7d0a5b800..c00a218828e4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_sizes_operations.py @@ -44,10 +44,10 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machines_operations.py index ff5623e99c0b..2f71f99b590a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machines_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Gets all the virtual machines under the specified subscription for the specified location. @@ -118,7 +118,7 @@ async def _capture_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineCaptureResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] error_map = { @@ -173,7 +173,7 @@ async def begin_capture( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineCaptureParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @@ -186,8 +186,8 @@ async def begin_capture( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -245,7 +245,7 @@ async def _create_or_update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -302,7 +302,7 @@ async def begin_create_or_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachine", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation. @@ -315,8 +315,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -374,7 +374,7 @@ async def _update_initial( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] error_map = { @@ -427,7 +427,7 @@ async def begin_update( resource_group_name: str, vm_name: str, parameters: "_models.VirtualMachineUpdate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachine"]: """The operation to update a virtual machine. @@ -439,8 +439,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) @@ -498,7 +498,7 @@ async def _delete_initial( resource_group_name: str, vm_name: str, force_deletion: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -543,7 +543,7 @@ async def begin_delete( resource_group_name: str, vm_name: str, force_deletion: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to delete a virtual machine. @@ -556,8 +556,8 @@ async def begin_delete( :type force_deletion: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -612,7 +612,7 @@ async def get( resource_group_name: str, vm_name: str, expand: Optional[str] = "instanceView", - **kwargs + **kwargs: Any ) -> "_models.VirtualMachine": """Retrieves information about the model view or the instance view of a virtual machine. @@ -674,7 +674,7 @@ async def instance_view( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualMachineInstanceView": """Retrieves information about the run-time state of a virtual machine. @@ -732,7 +732,7 @@ async def _convert_to_managed_disks_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -774,10 +774,10 @@ async def begin_convert_to_managed_disks( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -785,8 +785,8 @@ async def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -839,7 +839,7 @@ async def _deallocate_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -881,7 +881,7 @@ async def begin_deallocate( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses. @@ -892,8 +892,8 @@ async def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -946,14 +946,14 @@ async def generalize( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: """Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. :code:`
    `For Windows, please refer to - `Create a managed image of a generalized VM in Azure `_.:code:`
    `For Linux, please refer - to `How to create an image of a virtual machine or VHD `_. + `Create a managed image of a generalized VM in Azure + `_.:code:`
    `For + Linux, please refer to `How to create an image of a virtual machine or VHD + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1003,7 +1003,7 @@ async def generalize( def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines. @@ -1074,7 +1074,7 @@ async def get_next(next_link=None): def list_all( self, status_only: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineListResult"]: """Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. @@ -1148,7 +1148,7 @@ def list_available_sizes( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: """Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -1224,7 +1224,7 @@ async def _power_off_initial( resource_group_name: str, vm_name: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1269,7 +1269,7 @@ async def begin_power_off( resource_group_name: str, vm_name: str, skip_shutdown: Optional[bool] = False, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine. @@ -1284,8 +1284,8 @@ async def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1339,7 +1339,7 @@ async def _reapply_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1383,7 +1383,7 @@ async def begin_reapply( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to reapply a virtual machine's state. @@ -1393,8 +1393,8 @@ async def begin_reapply( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1447,7 +1447,7 @@ async def _restart_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1489,7 +1489,7 @@ async def begin_restart( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to restart a virtual machine. @@ -1499,8 +1499,8 @@ async def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1553,7 +1553,7 @@ async def _start_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1595,7 +1595,7 @@ async def begin_start( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to start a virtual machine. @@ -1605,8 +1605,8 @@ async def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1659,7 +1659,7 @@ async def _redeploy_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1701,7 +1701,7 @@ async def begin_redeploy( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -1711,8 +1711,8 @@ async def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1766,7 +1766,7 @@ async def _reimage_initial( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1817,7 +1817,7 @@ async def begin_reimage( resource_group_name: str, vm_name: str, parameters: Optional["_models.VirtualMachineReimageParameters"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimages the virtual machine which has an ephemeral OS disk back to its initial state. @@ -1829,8 +1829,8 @@ async def begin_reimage( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1885,7 +1885,7 @@ async def retrieve_boot_diagnostics_data( resource_group_name: str, vm_name: str, sas_uri_expiration_time_in_minutes: Optional[int] = None, - **kwargs + **kwargs: Any ) -> "_models.RetrieveBootDiagnosticsDataResult": """The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. @@ -1949,7 +1949,7 @@ async def _perform_maintenance_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1991,7 +1991,7 @@ async def begin_perform_maintenance( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The operation to perform maintenance on a virtual machine. @@ -2001,8 +2001,8 @@ async def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2055,7 +2055,7 @@ async def simulate_eviction( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> None: """The operation to simulate the eviction of spot virtual machine. @@ -2108,7 +2108,7 @@ async def _assess_patches_initial( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineAssessPatchesResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineAssessPatchesResult"]] error_map = { @@ -2157,7 +2157,7 @@ async def begin_assess_patches( self, resource_group_name: str, vm_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineAssessPatchesResult"]: """Assess patches on the VM. @@ -2167,8 +2167,8 @@ async def begin_assess_patches( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineAssessPatchesResult or the result of cls(response) @@ -2225,7 +2225,7 @@ async def _install_patches_initial( resource_group_name: str, vm_name: str, install_patches_input: "_models.VirtualMachineInstallPatchesParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualMachineInstallPatchesResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineInstallPatchesResult"]] error_map = { @@ -2280,7 +2280,7 @@ async def begin_install_patches( resource_group_name: str, vm_name: str, install_patches_input: "_models.VirtualMachineInstallPatchesParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualMachineInstallPatchesResult"]: """Installs patches on the VM. @@ -2292,8 +2292,8 @@ async def begin_install_patches( :type install_patches_input: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineInstallPatchesParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) @@ -2351,7 +2351,7 @@ async def _run_command_initial( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> Optional["_models.RunCommandResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] error_map = { @@ -2406,7 +2406,7 @@ async def begin_run_command( resource_group_name: str, vm_name: str, parameters: "_models.RunCommandInput", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.RunCommandResult"]: """Run command on the VM. @@ -2418,8 +2418,8 @@ async def begin_run_command( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_compute_management_client_enums.py index 2ae1be35c6f3..9b54fe79da5c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_compute_management_client_enums.py @@ -72,10 +72,10 @@ class DiffDiskPlacement(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Specifies the ephemeral disk placement for operating system disk. This property can be used by user in the request to choose the location i.e, cache disk or resource disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer - Ephemeral OS disk size requirements for Windows VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at - https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size- - requirements + Ephemeral OS disk size requirements for Windows VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements + and Linux VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements """ CACHE_DISK = "CacheDisk" @@ -471,8 +471,8 @@ class StorageAccountTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): Premium SSD zone redundant storage. StandardSSD_ZRS uses Standard SSD zone redundant storage. For more information regarding disks supported for Windows Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-types and, for Linux - Virtual Machines, refer to https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disks- - types + Virtual Machines, refer to + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/disks-types """ STANDARD_LRS = "Standard_LRS" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models.py index c6df18f2e623..f2fe9a714022 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models.py @@ -64,8 +64,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -190,8 +190,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for Windows based scale sets, `enableAutomaticUpdates - `_ is automatically set to false and cannot be set to true. + `_ + is automatically set to false and cannot be set to true. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -1432,10 +1432,10 @@ class DiffDiskSettings(msrest.serialization.Model): disk.:code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **CacheDisk** :code:`
    `:code:`
    ` **ResourceDisk** :code:`
    `:code:`
    ` Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.:code:`
    `:code:`
    ` - Refer to VM size documentation for Windows VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible - values include: "CacheDisk", "ResourceDisk". + Refer to VM size documentation for Windows VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes and Linux VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes to check which VM sizes + exposes a cache disk. Possible values include: "CacheDisk", "ResourceDisk". :type placement: str or ~azure.mgmt.compute.v2020_12_01.models.DiffDiskPlacement """ @@ -2957,13 +2957,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_12_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_12_01.models.ImageDataDisk] :param 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). @@ -3859,9 +3859,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` This property cannot be updated after the VM is created. @@ -3873,12 +3871,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -3890,12 +3887,11 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum @@ -3905,20 +3901,19 @@ class OSProfile(msrest.serialization.Model): saved as a file, for more information see `Custom Data on Azure VMs `_ :code:`
    `:code:`
    ` For using cloud-init for your Linux VM, see `Using cloud-init to - customize a Linux VM during creation `_. + customize a Linux VM during creation + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2020_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2020_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -5587,8 +5582,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -5758,13 +5752,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2020_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_12_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_12_01.models.DataDisk] """ @@ -6192,9 +6186,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -6316,11 +6310,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -6365,8 +6358,8 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineInstanceView - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -6619,9 +6612,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -6685,10 +6678,10 @@ class VirtualMachineExtension(Resource): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -6905,10 +6898,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -7794,8 +7787,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2020_12_01.models.SubResource :param host_group: Specifies information about the dedicated host group that the virtual machine scale set resides in. :code:`
    `:code:`
    `Minimum api-version: 2020-06-01. @@ -7979,10 +7972,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -8116,10 +8109,10 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -8757,12 +8750,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -8774,30 +8766,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2020_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2020_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -9034,15 +9024,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2020_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetDataDisk] """ @@ -9101,8 +9089,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): chosen for removal when a Virtual Machine Scale Set is scaled-in. :type scale_in_policy: ~azure.mgmt.compute.v2020_12_01.models.ScaleInPolicy :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2020_12_01.models.SubResource """ @@ -9533,18 +9521,17 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2020_12_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -9664,10 +9651,10 @@ class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -9795,10 +9782,10 @@ class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _validation = { @@ -10036,8 +10023,8 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetExtensionProfile - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -10327,11 +10314,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -10376,8 +10362,8 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineInstanceView - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -10614,9 +10600,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models_py3.py index 80147fea584a..0d3c932420b8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union import msrest.serialization @@ -71,8 +71,8 @@ class AdditionalUnattendContent(msrest.serialization.Model): :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default value: "OobeSystem". :vartype pass_name: str - :ivar component_name: The component name. Currently, the only allowable value is Microsoft- - Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". :vartype component_name: str :param setting_name: Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", @@ -212,8 +212,8 @@ class AutomaticOSUpgradePolicy(msrest.serialization.Model): applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for Windows based scale sets, `enableAutomaticUpdates - `_ is automatically set to false and cannot be set to true. + `_ + is automatically set to false and cannot be set to true. :type enable_automatic_os_upgrade: bool :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. Default value is false. @@ -1555,10 +1555,10 @@ class DiffDiskSettings(msrest.serialization.Model): disk.:code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **CacheDisk** :code:`
    `:code:`
    ` **ResourceDisk** :code:`
    `:code:`
    ` Default: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used.:code:`
    `:code:`
    ` - Refer to VM size documentation for Windows VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/en- - us/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible - values include: "CacheDisk", "ResourceDisk". + Refer to VM size documentation for Windows VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes and Linux VM at + https://docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes to check which VM sizes + exposes a cache disk. Possible values include: "CacheDisk", "ResourceDisk". :type placement: str or ~azure.mgmt.compute.v2020_12_01.models.DiffDiskPlacement """ @@ -3243,13 +3243,13 @@ class ImageStorageProfile(msrest.serialization.Model): :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_12_01.models.ImageOSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_12_01.models.ImageDataDisk] :param 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). @@ -4236,9 +4236,7 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and restrictions see `Azure infrastructure services implementation guidelines - `_. + `_. :type computer_name: str :param admin_username: Specifies the name of the administrator account. :code:`
    `:code:`
    ` This property cannot be updated after the VM is created. @@ -4250,12 +4248,11 @@ class OSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -4267,12 +4264,11 @@ class OSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum @@ -4282,20 +4278,19 @@ class OSProfile(msrest.serialization.Model): saved as a file, for more information see `Custom Data on Azure VMs `_ :code:`
    `:code:`
    ` For using cloud-init for your Linux VM, see `Using cloud-init to - customize a Linux VM during creation `_. + customize a Linux VM during creation + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2020_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2020_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machine. @@ -6116,8 +6111,7 @@ class SshPublicKey(msrest.serialization.Model): :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating ssh keys, see `Create SSH keys on Linux and Mac for Linux VMs in Azure - `_. + `_. :type key_data: str """ @@ -6304,13 +6298,13 @@ class StorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2020_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs - for Azure virtual machines `_. + for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_12_01.models.OSDisk :param 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 `_. + for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_12_01.models.DataDisk] """ @@ -6771,9 +6765,9 @@ class VaultCertificate(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly @@ -6903,11 +6897,10 @@ class VirtualMachine(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -6952,8 +6945,8 @@ class VirtualMachine(Resource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineInstanceView - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -7239,9 +7232,9 @@ class VirtualMachineCaptureResult(SubResource): :ivar content_version: the version of the content. :vartype content_version: str :ivar parameters: parameters of the captured virtual machine. - :vartype parameters: object + :vartype parameters: any :ivar resources: a list of resource items of the captured virtual machine. - :vartype resources: list[object] + :vartype resources: list[any] """ _validation = { @@ -7307,10 +7300,10 @@ class VirtualMachineExtension(Resource): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -7354,8 +7347,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -7559,10 +7552,10 @@ class VirtualMachineExtensionUpdate(UpdateResource): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _attribute_map = { @@ -7587,8 +7580,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) @@ -8550,8 +8543,8 @@ class VirtualMachineScaleSet(Resource): :param platform_fault_domain_count: Fault Domain count for each placement group. :type platform_fault_domain_count: int :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2020_12_01.models.SubResource :param host_group: Specifies information about the dedicated host group that the virtual machine scale set resides in. :code:`
    `:code:`
    `Minimum api-version: 2020-06-01. @@ -8766,10 +8759,10 @@ class VirtualMachineScaleSetExtension(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -8809,8 +8802,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): @@ -8920,10 +8913,10 @@ class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param provision_after_extensions: Collection of extension names after which this extension @@ -8963,8 +8956,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, provision_after_extensions: Optional[List[str]] = None, **kwargs ): @@ -9631,12 +9624,11 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 characters :code:`
    `:code:`
    `:code:`
  • ` For root access to the Linux VM, see `Using - root privileges on Linux virtual machines in Azure `_\ :code:`
    `:code:`
  • ` For a list of built-in system users on - Linux that should not be used in this field, see `Selecting User Names for Linux on Azure - `_. + root privileges on Linux virtual machines in Azure + `_\ + :code:`
    `:code:`
  • ` For a list of built-in system users on Linux that should not be used + in this field, see `Selecting User Names for Linux on Azure + `_. :type admin_username: str :param admin_password: Specifies the password of the administrator account. :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` @@ -9648,30 +9640,28 @@ class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For resetting the password, see `How to reset the Remote Desktop service or its login password in a - Windows VM `_ :code:`
    `:code:`
    ` For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension `_. + Windows VM + `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. :type admin_password: str :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for your VM, see `Using cloud-init to customize a Linux VM during creation - `_. + `_. :type custom_data: str :param windows_configuration: Specifies Windows operating system settings on the virtual machine. :type windows_configuration: ~azure.mgmt.compute.v2020_12_01.models.WindowsConfiguration :param linux_configuration: Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on - Azure-Endorsed Distributions `_ - :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for Non- - Endorsed Distributions `_. + Azure-Endorsed Distributions + `_ + :code:`
    `:code:`
    ` For running non-endorsed distributions, see `Information for + Non-Endorsed Distributions + `_. :type linux_configuration: ~azure.mgmt.compute.v2020_12_01.models.LinuxConfiguration :param secrets: Specifies set of certificates that should be installed onto the virtual machines in the scale set. @@ -9930,15 +9920,13 @@ class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): :type image_reference: ~azure.mgmt.compute.v2020_12_01.models.ImageReference :param os_disk: Specifies information about the operating system disk used by the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type os_disk: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetOSDisk :param data_disks: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see - `About disks and VHDs for Azure virtual machines `_. + `About disks and VHDs for Azure virtual machines + `_. :type data_disks: list[~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetDataDisk] """ @@ -10001,8 +9989,8 @@ class VirtualMachineScaleSetUpdate(UpdateResource): chosen for removal when a Virtual Machine Scale Set is scaled-in. :type scale_in_policy: ~azure.mgmt.compute.v2020_12_01.models.ScaleInPolicy :param 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. + that the virtual machine scale set should be assigned to. :code:`
    `:code:`
    `Minimum + api-version: 2018-04-01. :type proximity_placement_group: ~azure.mgmt.compute.v2020_12_01.models.SubResource """ @@ -10501,18 +10489,17 @@ class VirtualMachineScaleSetVM(Resource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. :type availability_set: ~azure.mgmt.compute.v2020_12_01.models.SubResource :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -10647,10 +10634,10 @@ class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any :ivar provisioning_state: The provisioning state, which only appears in the response. :vartype provisioning_state: str :param instance_view: The virtual machine extension instance view. @@ -10689,8 +10676,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): @@ -10790,10 +10777,10 @@ class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): upgraded by the platform if there is a newer version of the extension available. :type enable_automatic_upgrade: bool :param settings: Json formatted public settings for the extension. - :type settings: object + :type settings: any :param protected_settings: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. - :type protected_settings: object + :type protected_settings: any """ _validation = { @@ -10825,8 +10812,8 @@ def __init__( type_handler_version: Optional[str] = None, auto_upgrade_minor_version: Optional[bool] = None, enable_automatic_upgrade: Optional[bool] = None, - settings: Optional[object] = None, - protected_settings: Optional[object] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): super(VirtualMachineScaleSetVMExtensionUpdate, self).__init__(**kwargs) @@ -11060,8 +11047,8 @@ class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): virtual machines in the scale set. :type extension_profile: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetExtensionProfile - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -11375,11 +11362,10 @@ class VirtualMachineUpdate(UpdateResource): 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 sets, see `Manage the availability of virtual machines - `_. :code:`
    `:code:`
    ` - For more information on Azure planned maintenance, see `Planned maintenance for virtual - machines in Azure `_ + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Planned + maintenance for virtual machines in Azure + `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. The availability set to which the 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. @@ -11424,8 +11410,8 @@ class VirtualMachineUpdate(UpdateResource): :vartype provisioning_state: str :ivar instance_view: The virtual machine instance view. :vartype instance_view: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineInstanceView - :param 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: + :param 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 :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) @@ -11702,9 +11688,9 @@ class WinRMListener(msrest.serialization.Model): a secret. For adding a secret to the Key Vault, see `Add a key or secret to the key vault `_. In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded - in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` "password":":code:``":code:`
    `}. + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. :type certificate_url: str """ diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_dedicated_hosts_operations.py index 88854b630c94..f78dd547f57b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_dedicated_hosts_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_dedicated_hosts_operations.py @@ -128,8 +128,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.DedicatedHost :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) @@ -261,8 +261,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.DedicatedHostUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) @@ -380,8 +380,8 @@ def begin_delete( :type host_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disk_accesses_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disk_accesses_operations.py index 036ad6053a9a..bb797be7c8d6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disk_accesses_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disk_accesses_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk_access: ~azure.mgmt.compute.v2020_12_01.models.DiskAccess :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskAccess or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk_access: ~azure.mgmt.compute.v2020_12_01.models.DiskAccessUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskAccess or the result of cls(response) @@ -434,8 +434,8 @@ def begin_delete( :type disk_access_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -768,8 +768,8 @@ def begin_update_a_private_endpoint_connection( :type private_endpoint_connection: ~azure.mgmt.compute.v2020_12_01.models.PrivateEndpointConnection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response) @@ -956,8 +956,8 @@ def begin_delete_a_private_endpoint_connection( :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disk_encryption_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disk_encryption_sets_operations.py index d7bab45a1a24..ccf6edc9bd95 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disk_encryption_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disk_encryption_sets_operations.py @@ -126,8 +126,8 @@ def begin_create_or_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_12_01.models.DiskEncryptionSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -259,8 +259,8 @@ def begin_update( :type disk_encryption_set: ~azure.mgmt.compute.v2020_12_01.models.DiskEncryptionSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DiskEncryptionSet or the result of cls(response) @@ -436,8 +436,8 @@ def begin_delete( :type disk_encryption_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disks_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disks_operations.py index 0873bcbe1e88..b754eb397d1b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disks_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_disks_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type disk: ~azure.mgmt.compute.v2020_12_01.models.Disk :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type disk: ~azure.mgmt.compute.v2020_12_01.models.DiskUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Disk or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_12_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type disk_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_images_operations.py index 3b4721535b8e..3a182a33f216 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_images_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_images_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.Image :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -253,8 +253,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.ImageUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Image or the result of cls(response) @@ -365,8 +365,8 @@ def begin_delete( :type image_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_log_analytics_operations.py index 2a27d531e1bf..24e4cd7c52de 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_log_analytics_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_log_analytics_operations.py @@ -116,8 +116,8 @@ def begin_export_request_rate_by_interval( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.RequestRateByIntervalInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) @@ -238,8 +238,8 @@ def begin_export_throttled_requests( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.ThrottledRequestsInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_snapshots_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_snapshots_operations.py index abacd1a2ee93..e53d47975b28 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_snapshots_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_snapshots_operations.py @@ -125,8 +125,8 @@ def begin_create_or_update( :type snapshot: ~azure.mgmt.compute.v2020_12_01.models.Snapshot :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -257,8 +257,8 @@ def begin_update( :type snapshot: ~azure.mgmt.compute.v2020_12_01.models.SnapshotUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either Snapshot or the result of cls(response) @@ -432,8 +432,8 @@ def begin_delete( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -697,8 +697,8 @@ def begin_grant_access( :type grant_access_data: ~azure.mgmt.compute.v2020_12_01.models.GrantAccessData :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either AccessUri or the result of cls(response) @@ -811,8 +811,8 @@ def begin_revoke_access( :type snapshot_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_extensions_operations.py index 378fb8f33125..5a70a8d90b12 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_extensions_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -263,8 +263,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) @@ -382,8 +382,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_run_commands_operations.py index f9388379d7da..76a35f9f2d98 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_run_commands_operations.py @@ -259,8 +259,8 @@ def begin_create_or_update( :type run_command: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineRunCommand :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -392,8 +392,8 @@ def begin_update( :type run_command: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineRunCommandUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -513,8 +513,8 @@ def begin_delete( :type run_command_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_extensions_operations.py index 8791fc228824..52f6c6877435 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_extensions_operations.py @@ -130,8 +130,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -268,8 +268,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) @@ -387,8 +387,8 @@ def begin_delete( :type vmss_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py index 67aa18fa1199..5d56373f253b 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -104,8 +104,8 @@ def begin_cancel( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -214,8 +214,8 @@ def begin_start_os_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -324,8 +324,8 @@ def begin_start_extension_upgrade( :type vm_scale_set_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py index 187566d22181..ab87f50575e3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py @@ -133,8 +133,8 @@ def begin_create_or_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMExtension :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) @@ -274,8 +274,8 @@ def begin_update( :type extension_parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMExtensionUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) @@ -402,8 +402,8 @@ def begin_delete( :type vm_extension_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vm_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vm_run_commands_operations.py index 70e3baad3eb0..0484f374e2b7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vm_run_commands_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vm_run_commands_operations.py @@ -133,8 +133,8 @@ def begin_create_or_update( :type run_command: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineRunCommand :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -273,8 +273,8 @@ def begin_update( :type run_command: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineRunCommandUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) @@ -401,8 +401,8 @@ def begin_delete( :type run_command_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vms_operations.py index c957bcadad4a..dc1f982713c3 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vms_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_set_vms_operations.py @@ -122,8 +122,8 @@ def begin_reimage( :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -239,8 +239,8 @@ def begin_reimage_all( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -356,8 +356,8 @@ def begin_deallocate( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -490,8 +490,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVM :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) @@ -616,8 +616,8 @@ def begin_delete( :type force_deletion: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -966,8 +966,8 @@ def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1082,8 +1082,8 @@ def begin_restart( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1197,8 +1197,8 @@ def begin_start( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1313,8 +1313,8 @@ def begin_redeploy( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1499,8 +1499,8 @@ def begin_perform_maintenance( :type instance_id: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1688,8 +1688,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_sets_operations.py index 9906007ae35b..369246c77516 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_sets_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_scale_sets_operations.py @@ -194,8 +194,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSet :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -320,8 +320,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) @@ -438,8 +438,8 @@ def begin_delete( :type force_deletion: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -620,8 +620,8 @@ def begin_deallocate( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -745,8 +745,8 @@ def begin_delete_instances( :type force_deletion: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1227,8 +1227,8 @@ def begin_power_off( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1349,8 +1349,8 @@ def begin_restart( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1470,8 +1470,8 @@ def begin_start( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1592,8 +1592,8 @@ def begin_redeploy( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1705,8 +1705,8 @@ def begin_perform_maintenance( # type: (...) -> LROPoller[None] """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices - for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual- - machine-scale-sets-maintenance-notifications. + for more details: + https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1716,8 +1716,8 @@ def begin_perform_maintenance( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1834,8 +1834,8 @@ def begin_update_instances( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1957,8 +1957,8 @@ def begin_reimage( :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2079,8 +2079,8 @@ def begin_reimage_all( :type vm_instance_i_ds: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineScaleSetVMInstanceIDs :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2324,8 +2324,8 @@ def begin_set_orchestration_service_state( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.OrchestrationServiceStateInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_sizes_operations.py index 6589ccfbd20d..952eefae46ea 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_sizes_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machine_sizes_operations.py @@ -51,8 +51,8 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.VirtualMachineSizeListResult"] - """This API is deprecated. Use `Resources Skus `_. + """This API is deprecated. Use `Resources Skus + `_. :param location: The location upon which virtual-machine-sizes is queried. :type location: str diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machines_operations.py index 020b5f666cf3..ad5b90382464 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machines_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/operations/_virtual_machines_operations.py @@ -193,8 +193,8 @@ def begin_capture( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineCaptureParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) @@ -324,8 +324,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachine :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -450,8 +450,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) @@ -569,8 +569,8 @@ def begin_delete( :type force_deletion: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -793,8 +793,8 @@ def begin_convert_to_managed_disks( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop- - deallocated before invoking this operation. + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -802,8 +802,8 @@ def begin_convert_to_managed_disks( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -911,8 +911,8 @@ def begin_deallocate( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -970,10 +970,10 @@ def generalize( # type: (...) -> None """Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. :code:`
    `For Windows, please refer to - `Create a managed image of a generalized VM in Azure `_.:code:`
    `For Linux, please refer - to `How to create an image of a virtual machine or VHD `_. + `Create a managed image of a generalized VM in Azure + `_.:code:`
    `For + Linux, please refer to `How to create an image of a virtual machine or VHD + `_. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -1309,8 +1309,8 @@ def begin_power_off( :type skip_shutdown: bool :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1420,8 +1420,8 @@ def begin_reapply( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1528,8 +1528,8 @@ def begin_restart( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1636,8 +1636,8 @@ def begin_start( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1744,8 +1744,8 @@ def begin_redeploy( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1864,8 +1864,8 @@ def begin_reimage( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineReimageParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2039,8 +2039,8 @@ def begin_perform_maintenance( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2208,8 +2208,8 @@ def begin_assess_patches( :type vm_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineAssessPatchesResult or the result of cls(response) @@ -2335,8 +2335,8 @@ def begin_install_patches( :type install_patches_input: ~azure.mgmt.compute.v2020_12_01.models.VirtualMachineInstallPatchesParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) @@ -2463,8 +2463,8 @@ def begin_run_command( :type parameters: ~azure.mgmt.compute.v2020_12_01.models.RunCommandInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/__init__.py index cdc7f7a1709a..da8181c02bd2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._compute_management_client import ComputeManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['ComputeManagementClient'] try: diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_compute_management_client.py index 571c4117325e..15a8bde95a49 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_compute_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import ComputeManagementClientConfiguration from .operations import CloudServiceRoleInstancesOperations @@ -23,6 +24,30 @@ from .operations import CloudServicesOperations from .operations import CloudServicesUpdateDomainOperations from .operations import CloudServiceOperatingSystemsOperations +from .operations import Operations +from .operations import AvailabilitySetsOperations +from .operations import ProximityPlacementGroupsOperations +from .operations import DedicatedHostGroupsOperations +from .operations import DedicatedHostsOperations +from .operations import SshPublicKeysOperations +from .operations import VirtualMachineExtensionImagesOperations +from .operations import VirtualMachineExtensionsOperations +from .operations import VirtualMachineImagesOperations +from .operations import VirtualMachineImagesEdgeZoneOperations +from .operations import UsageOperations +from .operations import VirtualMachinesOperations +from .operations import VirtualMachineScaleSetsOperations +from .operations import VirtualMachineSizesOperations +from .operations import ImagesOperations +from .operations import RestorePointCollectionsOperations +from .operations import RestorePointsOperations +from .operations import VirtualMachineScaleSetExtensionsOperations +from .operations import VirtualMachineScaleSetRollingUpgradesOperations +from .operations import VirtualMachineScaleSetVMExtensionsOperations +from .operations import VirtualMachineScaleSetVMsOperations +from .operations import LogAnalyticsOperations +from .operations import VirtualMachineRunCommandsOperations +from .operations import VirtualMachineScaleSetVMRunCommandsOperations from . import models @@ -39,6 +64,54 @@ class ComputeManagementClient(object): :vartype cloud_services_update_domain: azure.mgmt.compute.v2021_03_01.operations.CloudServicesUpdateDomainOperations :ivar cloud_service_operating_systems: CloudServiceOperatingSystemsOperations operations :vartype cloud_service_operating_systems: azure.mgmt.compute.v2021_03_01.operations.CloudServiceOperatingSystemsOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.compute.v2021_03_01.operations.Operations + :ivar availability_sets: AvailabilitySetsOperations operations + :vartype availability_sets: azure.mgmt.compute.v2021_03_01.operations.AvailabilitySetsOperations + :ivar proximity_placement_groups: ProximityPlacementGroupsOperations operations + :vartype proximity_placement_groups: azure.mgmt.compute.v2021_03_01.operations.ProximityPlacementGroupsOperations + :ivar dedicated_host_groups: DedicatedHostGroupsOperations operations + :vartype dedicated_host_groups: azure.mgmt.compute.v2021_03_01.operations.DedicatedHostGroupsOperations + :ivar dedicated_hosts: DedicatedHostsOperations operations + :vartype dedicated_hosts: azure.mgmt.compute.v2021_03_01.operations.DedicatedHostsOperations + :ivar ssh_public_keys: SshPublicKeysOperations operations + :vartype ssh_public_keys: azure.mgmt.compute.v2021_03_01.operations.SshPublicKeysOperations + :ivar virtual_machine_extension_images: VirtualMachineExtensionImagesOperations operations + :vartype virtual_machine_extension_images: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineExtensionImagesOperations + :ivar virtual_machine_extensions: VirtualMachineExtensionsOperations operations + :vartype virtual_machine_extensions: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineExtensionsOperations + :ivar virtual_machine_images: VirtualMachineImagesOperations operations + :vartype virtual_machine_images: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineImagesOperations + :ivar virtual_machine_images_edge_zone: VirtualMachineImagesEdgeZoneOperations operations + :vartype virtual_machine_images_edge_zone: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineImagesEdgeZoneOperations + :ivar usage: UsageOperations operations + :vartype usage: azure.mgmt.compute.v2021_03_01.operations.UsageOperations + :ivar virtual_machines: VirtualMachinesOperations operations + :vartype virtual_machines: azure.mgmt.compute.v2021_03_01.operations.VirtualMachinesOperations + :ivar virtual_machine_scale_sets: VirtualMachineScaleSetsOperations operations + :vartype virtual_machine_scale_sets: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineScaleSetsOperations + :ivar virtual_machine_sizes: VirtualMachineSizesOperations operations + :vartype virtual_machine_sizes: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineSizesOperations + :ivar images: ImagesOperations operations + :vartype images: azure.mgmt.compute.v2021_03_01.operations.ImagesOperations + :ivar restore_point_collections: RestorePointCollectionsOperations operations + :vartype restore_point_collections: azure.mgmt.compute.v2021_03_01.operations.RestorePointCollectionsOperations + :ivar restore_points: RestorePointsOperations operations + :vartype restore_points: azure.mgmt.compute.v2021_03_01.operations.RestorePointsOperations + :ivar virtual_machine_scale_set_extensions: VirtualMachineScaleSetExtensionsOperations operations + :vartype virtual_machine_scale_set_extensions: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineScaleSetExtensionsOperations + :ivar virtual_machine_scale_set_rolling_upgrades: VirtualMachineScaleSetRollingUpgradesOperations operations + :vartype virtual_machine_scale_set_rolling_upgrades: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineScaleSetRollingUpgradesOperations + :ivar virtual_machine_scale_set_vm_extensions: VirtualMachineScaleSetVMExtensionsOperations operations + :vartype virtual_machine_scale_set_vm_extensions: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineScaleSetVMExtensionsOperations + :ivar virtual_machine_scale_set_vms: VirtualMachineScaleSetVMsOperations operations + :vartype virtual_machine_scale_set_vms: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineScaleSetVMsOperations + :ivar log_analytics: LogAnalyticsOperations operations + :vartype log_analytics: azure.mgmt.compute.v2021_03_01.operations.LogAnalyticsOperations + :ivar virtual_machine_run_commands: VirtualMachineRunCommandsOperations operations + :vartype virtual_machine_run_commands: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineRunCommandsOperations + :ivar virtual_machine_scale_set_vm_run_commands: VirtualMachineScaleSetVMRunCommandsOperations operations + :vartype virtual_machine_scale_set_vm_run_commands: azure.mgmt.compute.v2021_03_01.operations.VirtualMachineScaleSetVMRunCommandsOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. @@ -75,6 +148,72 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.cloud_service_operating_systems = CloudServiceOperatingSystemsOperations( self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize) + self.availability_sets = AvailabilitySetsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.proximity_placement_groups = ProximityPlacementGroupsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.dedicated_host_groups = DedicatedHostGroupsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.dedicated_hosts = DedicatedHostsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.ssh_public_keys = SshPublicKeysOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_extension_images = VirtualMachineExtensionImagesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_extensions = VirtualMachineExtensionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_images = VirtualMachineImagesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_images_edge_zone = VirtualMachineImagesEdgeZoneOperations( + self._client, self._config, self._serialize, self._deserialize) + self.usage = UsageOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machines = VirtualMachinesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_sets = VirtualMachineScaleSetsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_sizes = VirtualMachineSizesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.images = ImagesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restore_point_collections = RestorePointCollectionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restore_points = RestorePointsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_set_rolling_upgrades = VirtualMachineScaleSetRollingUpgradesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_set_vm_extensions = VirtualMachineScaleSetVMExtensionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.log_analytics = LogAnalyticsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_set_vm_run_commands = VirtualMachineScaleSetVMRunCommandsOperations( + self._client, self._config, self._serialize, self._deserialize) + + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response def close(self): # type: () -> None diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_configuration.py index c42e77a959c7..f92b729da8e4 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_metadata.json b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_metadata.json index 41965868dd36..31815024c830 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_metadata.json +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_metadata.json @@ -10,8 +10,8 @@ "azure_arm": true, "has_lro_operations": true, "client_side_validation": false, - "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", - "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ComputeManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -102,12 +102,30 @@ "cloud_service_roles": "CloudServiceRolesOperations", "cloud_services": "CloudServicesOperations", "cloud_services_update_domain": "CloudServicesUpdateDomainOperations", - "cloud_service_operating_systems": "CloudServiceOperatingSystemsOperations" - }, - "operation_mixins": { - "sync_imports": "None", - "async_imports": "None", - "operations": { - } + "cloud_service_operating_systems": "CloudServiceOperatingSystemsOperations", + "operations": "Operations", + "availability_sets": "AvailabilitySetsOperations", + "proximity_placement_groups": "ProximityPlacementGroupsOperations", + "dedicated_host_groups": "DedicatedHostGroupsOperations", + "dedicated_hosts": "DedicatedHostsOperations", + "ssh_public_keys": "SshPublicKeysOperations", + "virtual_machine_extension_images": "VirtualMachineExtensionImagesOperations", + "virtual_machine_extensions": "VirtualMachineExtensionsOperations", + "virtual_machine_images": "VirtualMachineImagesOperations", + "virtual_machine_images_edge_zone": "VirtualMachineImagesEdgeZoneOperations", + "usage": "UsageOperations", + "virtual_machines": "VirtualMachinesOperations", + "virtual_machine_scale_sets": "VirtualMachineScaleSetsOperations", + "virtual_machine_sizes": "VirtualMachineSizesOperations", + "images": "ImagesOperations", + "restore_point_collections": "RestorePointCollectionsOperations", + "restore_points": "RestorePointsOperations", + "virtual_machine_scale_set_extensions": "VirtualMachineScaleSetExtensionsOperations", + "virtual_machine_scale_set_rolling_upgrades": "VirtualMachineScaleSetRollingUpgradesOperations", + "virtual_machine_scale_set_vm_extensions": "VirtualMachineScaleSetVMExtensionsOperations", + "virtual_machine_scale_set_vms": "VirtualMachineScaleSetVMsOperations", + "log_analytics": "LogAnalyticsOperations", + "virtual_machine_run_commands": "VirtualMachineRunCommandsOperations", + "virtual_machine_scale_set_vm_run_commands": "VirtualMachineScaleSetVMRunCommandsOperations" } } \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_version.py new file mode 100644 index 000000000000..bb46423cd61e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "21.0.0" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/_compute_management_client.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/_compute_management_client.py index f0942db6f954..8f4b2336c0e6 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/_compute_management_client.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/_compute_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -21,6 +22,30 @@ from .operations import CloudServicesOperations from .operations import CloudServicesUpdateDomainOperations from .operations import CloudServiceOperatingSystemsOperations +from .operations import Operations +from .operations import AvailabilitySetsOperations +from .operations import ProximityPlacementGroupsOperations +from .operations import DedicatedHostGroupsOperations +from .operations import DedicatedHostsOperations +from .operations import SshPublicKeysOperations +from .operations import VirtualMachineExtensionImagesOperations +from .operations import VirtualMachineExtensionsOperations +from .operations import VirtualMachineImagesOperations +from .operations import VirtualMachineImagesEdgeZoneOperations +from .operations import UsageOperations +from .operations import VirtualMachinesOperations +from .operations import VirtualMachineScaleSetsOperations +from .operations import VirtualMachineSizesOperations +from .operations import ImagesOperations +from .operations import RestorePointCollectionsOperations +from .operations import RestorePointsOperations +from .operations import VirtualMachineScaleSetExtensionsOperations +from .operations import VirtualMachineScaleSetRollingUpgradesOperations +from .operations import VirtualMachineScaleSetVMExtensionsOperations +from .operations import VirtualMachineScaleSetVMsOperations +from .operations import LogAnalyticsOperations +from .operations import VirtualMachineRunCommandsOperations +from .operations import VirtualMachineScaleSetVMRunCommandsOperations from .. import models @@ -37,6 +62,54 @@ class ComputeManagementClient(object): :vartype cloud_services_update_domain: azure.mgmt.compute.v2021_03_01.aio.operations.CloudServicesUpdateDomainOperations :ivar cloud_service_operating_systems: CloudServiceOperatingSystemsOperations operations :vartype cloud_service_operating_systems: azure.mgmt.compute.v2021_03_01.aio.operations.CloudServiceOperatingSystemsOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.compute.v2021_03_01.aio.operations.Operations + :ivar availability_sets: AvailabilitySetsOperations operations + :vartype availability_sets: azure.mgmt.compute.v2021_03_01.aio.operations.AvailabilitySetsOperations + :ivar proximity_placement_groups: ProximityPlacementGroupsOperations operations + :vartype proximity_placement_groups: azure.mgmt.compute.v2021_03_01.aio.operations.ProximityPlacementGroupsOperations + :ivar dedicated_host_groups: DedicatedHostGroupsOperations operations + :vartype dedicated_host_groups: azure.mgmt.compute.v2021_03_01.aio.operations.DedicatedHostGroupsOperations + :ivar dedicated_hosts: DedicatedHostsOperations operations + :vartype dedicated_hosts: azure.mgmt.compute.v2021_03_01.aio.operations.DedicatedHostsOperations + :ivar ssh_public_keys: SshPublicKeysOperations operations + :vartype ssh_public_keys: azure.mgmt.compute.v2021_03_01.aio.operations.SshPublicKeysOperations + :ivar virtual_machine_extension_images: VirtualMachineExtensionImagesOperations operations + :vartype virtual_machine_extension_images: azure.mgmt.compute.v2021_03_01.aio.operations.VirtualMachineExtensionImagesOperations + :ivar virtual_machine_extensions: VirtualMachineExtensionsOperations operations + :vartype virtual_machine_extensions: azure.mgmt.compute.v2021_03_01.aio.operations.VirtualMachineExtensionsOperations + :ivar virtual_machine_images: VirtualMachineImagesOperations operations + :vartype virtual_machine_images: azure.mgmt.compute.v2021_03_01.aio.operations.VirtualMachineImagesOperations + :ivar virtual_machine_images_edge_zone: VirtualMachineImagesEdgeZoneOperations operations + :vartype virtual_machine_images_edge_zone: azure.mgmt.compute.v2021_03_01.aio.operations.VirtualMachineImagesEdgeZoneOperations + :ivar usage: UsageOperations operations + :vartype usage: azure.mgmt.compute.v2021_03_01.aio.operations.UsageOperations + :ivar virtual_machines: VirtualMachinesOperations operations + :vartype virtual_machines: azure.mgmt.compute.v2021_03_01.aio.operations.VirtualMachinesOperations + :ivar virtual_machine_scale_sets: VirtualMachineScaleSetsOperations operations + :vartype virtual_machine_scale_sets: azure.mgmt.compute.v2021_03_01.aio.operations.VirtualMachineScaleSetsOperations + :ivar virtual_machine_sizes: VirtualMachineSizesOperations operations + :vartype virtual_machine_sizes: azure.mgmt.compute.v2021_03_01.aio.operations.VirtualMachineSizesOperations + :ivar images: ImagesOperations operations + :vartype images: azure.mgmt.compute.v2021_03_01.aio.operations.ImagesOperations + :ivar restore_point_collections: RestorePointCollectionsOperations operations + :vartype restore_point_collections: azure.mgmt.compute.v2021_03_01.aio.operations.RestorePointCollectionsOperations + :ivar restore_points: RestorePointsOperations operations + :vartype restore_points: azure.mgmt.compute.v2021_03_01.aio.operations.RestorePointsOperations + :ivar virtual_machine_scale_set_extensions: VirtualMachineScaleSetExtensionsOperations operations + :vartype virtual_machine_scale_set_extensions: azure.mgmt.compute.v2021_03_01.aio.operations.VirtualMachineScaleSetExtensionsOperations + :ivar virtual_machine_scale_set_rolling_upgrades: VirtualMachineScaleSetRollingUpgradesOperations operations + :vartype virtual_machine_scale_set_rolling_upgrades: azure.mgmt.compute.v2021_03_01.aio.operations.VirtualMachineScaleSetRollingUpgradesOperations + :ivar virtual_machine_scale_set_vm_extensions: VirtualMachineScaleSetVMExtensionsOperations operations + :vartype virtual_machine_scale_set_vm_extensions: azure.mgmt.compute.v2021_03_01.aio.operations.VirtualMachineScaleSetVMExtensionsOperations + :ivar virtual_machine_scale_set_vms: VirtualMachineScaleSetVMsOperations operations + :vartype virtual_machine_scale_set_vms: azure.mgmt.compute.v2021_03_01.aio.operations.VirtualMachineScaleSetVMsOperations + :ivar log_analytics: LogAnalyticsOperations operations + :vartype log_analytics: azure.mgmt.compute.v2021_03_01.aio.operations.LogAnalyticsOperations + :ivar virtual_machine_run_commands: VirtualMachineRunCommandsOperations operations + :vartype virtual_machine_run_commands: azure.mgmt.compute.v2021_03_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.v2021_03_01.aio.operations.VirtualMachineScaleSetVMRunCommandsOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. @@ -72,6 +145,71 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.cloud_service_operating_systems = CloudServiceOperatingSystemsOperations( self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize) + self.availability_sets = AvailabilitySetsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.proximity_placement_groups = ProximityPlacementGroupsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.dedicated_host_groups = DedicatedHostGroupsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.dedicated_hosts = DedicatedHostsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.ssh_public_keys = SshPublicKeysOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_extension_images = VirtualMachineExtensionImagesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_extensions = VirtualMachineExtensionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_images = VirtualMachineImagesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_images_edge_zone = VirtualMachineImagesEdgeZoneOperations( + self._client, self._config, self._serialize, self._deserialize) + self.usage = UsageOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machines = VirtualMachinesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_sets = VirtualMachineScaleSetsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_sizes = VirtualMachineSizesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.images = ImagesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restore_point_collections = RestorePointCollectionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restore_points = RestorePointsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_set_rolling_upgrades = VirtualMachineScaleSetRollingUpgradesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_set_vm_extensions = VirtualMachineScaleSetVMExtensionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.log_analytics = LogAnalyticsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.virtual_machine_scale_set_vm_run_commands = VirtualMachineScaleSetVMRunCommandsOperations( + self._client, self._config, self._serialize, self._deserialize) + + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response async def close(self) -> None: await self._client.close() diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/_configuration.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/_configuration.py index d4253f010dad..8a605cd013b8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/_configuration.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class ComputeManagementClientConfiguration(Configuration): """Configuration for ComputeManagementClient. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/__init__.py index 4e620f184dcb..1e078da6ebf8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/__init__.py @@ -11,6 +11,30 @@ from ._cloud_services_operations import CloudServicesOperations from ._cloud_services_update_domain_operations import CloudServicesUpdateDomainOperations from ._cloud_service_operating_systems_operations import CloudServiceOperatingSystemsOperations +from ._operations import Operations +from ._availability_sets_operations import AvailabilitySetsOperations +from ._proximity_placement_groups_operations import ProximityPlacementGroupsOperations +from ._dedicated_host_groups_operations import DedicatedHostGroupsOperations +from ._dedicated_hosts_operations import DedicatedHostsOperations +from ._ssh_public_keys_operations import SshPublicKeysOperations +from ._virtual_machine_extension_images_operations import VirtualMachineExtensionImagesOperations +from ._virtual_machine_extensions_operations import VirtualMachineExtensionsOperations +from ._virtual_machine_images_operations import VirtualMachineImagesOperations +from ._virtual_machine_images_edge_zone_operations import VirtualMachineImagesEdgeZoneOperations +from ._usage_operations import UsageOperations +from ._virtual_machines_operations import VirtualMachinesOperations +from ._virtual_machine_scale_sets_operations import VirtualMachineScaleSetsOperations +from ._virtual_machine_sizes_operations import VirtualMachineSizesOperations +from ._images_operations import ImagesOperations +from ._restore_point_collections_operations import RestorePointCollectionsOperations +from ._restore_points_operations import RestorePointsOperations +from ._virtual_machine_scale_set_extensions_operations import VirtualMachineScaleSetExtensionsOperations +from ._virtual_machine_scale_set_rolling_upgrades_operations import VirtualMachineScaleSetRollingUpgradesOperations +from ._virtual_machine_scale_set_vm_extensions_operations import VirtualMachineScaleSetVMExtensionsOperations +from ._virtual_machine_scale_set_vms_operations import VirtualMachineScaleSetVMsOperations +from ._log_analytics_operations import LogAnalyticsOperations +from ._virtual_machine_run_commands_operations import VirtualMachineRunCommandsOperations +from ._virtual_machine_scale_set_vm_run_commands_operations import VirtualMachineScaleSetVMRunCommandsOperations __all__ = [ 'CloudServiceRoleInstancesOperations', @@ -18,4 +42,28 @@ 'CloudServicesOperations', 'CloudServicesUpdateDomainOperations', 'CloudServiceOperatingSystemsOperations', + 'Operations', + 'AvailabilitySetsOperations', + 'ProximityPlacementGroupsOperations', + 'DedicatedHostGroupsOperations', + 'DedicatedHostsOperations', + 'SshPublicKeysOperations', + 'VirtualMachineExtensionImagesOperations', + 'VirtualMachineExtensionsOperations', + 'VirtualMachineImagesOperations', + 'VirtualMachineImagesEdgeZoneOperations', + 'UsageOperations', + 'VirtualMachinesOperations', + 'VirtualMachineScaleSetsOperations', + 'VirtualMachineSizesOperations', + 'ImagesOperations', + 'RestorePointCollectionsOperations', + 'RestorePointsOperations', + 'VirtualMachineScaleSetExtensionsOperations', + 'VirtualMachineScaleSetRollingUpgradesOperations', + 'VirtualMachineScaleSetVMExtensionsOperations', + 'VirtualMachineScaleSetVMsOperations', + 'LogAnalyticsOperations', + 'VirtualMachineRunCommandsOperations', + 'VirtualMachineScaleSetVMRunCommandsOperations', ] diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_availability_sets_operations.py new file mode 100644 index 000000000000..090b47181162 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_availability_sets_operations.py @@ -0,0 +1,502 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class AvailabilitySetsOperations: + """AvailabilitySetsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def create_or_update( + self, + resource_group_name: str, + availability_set_name: str, + parameters: "_models.AvailabilitySet", + **kwargs: Any + ) -> "_models.AvailabilitySet": + """Create or update an availability set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. + :type availability_set_name: str + :param parameters: Parameters supplied to the Create Availability Set operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.AvailabilitySet + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AvailabilitySet, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.AvailabilitySet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilitySet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'availabilitySetName': self._serialize.url("availability_set_name", availability_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'AvailabilitySet') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('AvailabilitySet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'} # type: ignore + + async def update( + self, + resource_group_name: str, + availability_set_name: str, + parameters: "_models.AvailabilitySetUpdate", + **kwargs: Any + ) -> "_models.AvailabilitySet": + """Update an availability set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. + :type availability_set_name: str + :param parameters: Parameters supplied to the Update Availability Set operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.AvailabilitySetUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AvailabilitySet, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.AvailabilitySet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilitySet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'availabilitySetName': self._serialize.url("availability_set_name", availability_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'AvailabilitySetUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('AvailabilitySet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'} # type: ignore + + async def delete( + self, + resource_group_name: str, + availability_set_name: str, + **kwargs: Any + ) -> None: + """Delete an availability set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. + :type availability_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.delete.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'availabilitySetName': self._serialize.url("availability_set_name", availability_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 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, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + availability_set_name: str, + **kwargs: Any + ) -> "_models.AvailabilitySet": + """Retrieves information about an availability set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. + :type availability_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AvailabilitySet, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.AvailabilitySet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilitySet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'availabilitySetName': self._serialize.url("availability_set_name", availability_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('AvailabilitySet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'} # type: ignore + + def list_by_subscription( + self, + expand: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.AvailabilitySetListResult"]: + """Lists all availability sets in a subscription. + + :param expand: The expand expression to apply to the operation. Allowed values are + 'instanceView'. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilitySetListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.AvailabilitySetListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilitySetListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + 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) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets'} # type: ignore + + def list( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.AvailabilitySetListResult"]: + """Lists all availability sets in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilitySetListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.AvailabilitySetListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilitySetListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + 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) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets'} # type: ignore + + def list_available_sizes( + self, + resource_group_name: str, + availability_set_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: + """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. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. + :type availability_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineSizeListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineSizeListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineSizeListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_available_sizes.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'availabilitySetName': self._serialize.url("availability_set_name", availability_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + 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) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_available_sizes.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_operating_systems_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_operating_systems_operations.py index cfa48e835fb3..52cd631931c8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_operating_systems_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_operating_systems_operations.py @@ -45,7 +45,7 @@ async def get_os_version( self, location: str, os_version_name: str, - **kwargs + **kwargs: Any ) -> "_models.OSVersion": """Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service. @@ -103,7 +103,7 @@ async def get_os_version( def list_os_versions( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OSVersionListResult"]: """Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the @@ -176,7 +176,7 @@ async def get_os_family( self, location: str, os_family_name: str, - **kwargs + **kwargs: Any ) -> "_models.OSFamily": """Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service. @@ -234,7 +234,7 @@ async def get_os_family( def list_os_families( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OSFamilyListResult"]: """Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_role_instances_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_role_instances_operations.py index 9a7e9fe59669..3abc7d8889dd 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_role_instances_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_role_instances_operations.py @@ -48,7 +48,7 @@ async def _delete_initial( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -94,7 +94,7 @@ async def begin_delete( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a role instance from a cloud service. @@ -106,8 +106,8 @@ async def begin_delete( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -163,8 +163,8 @@ async def get( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - expand: Optional[str] = "instanceView", - **kwargs + expand: Optional[Union[str, "_models.InstanceViewTypes"]] = None, + **kwargs: Any ) -> "_models.RoleInstance": """Gets a role instance from a cloud service. @@ -174,8 +174,9 @@ async def get( :type resource_group_name: str :param cloud_service_name: :type cloud_service_name: str - :param expand: The expand expression to apply to the operation. - :type expand: str + :param expand: The expand expression to apply to the operation. 'UserData' is not supported for + cloud services. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes :keyword callable cls: A custom type or function that will be passed the direct response :return: RoleInstance, or the result of cls(response) :rtype: ~azure.mgmt.compute.v2021_03_01.models.RoleInstance @@ -230,7 +231,7 @@ async def get_instance_view( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> "_models.RoleInstanceView": """Retrieves information about the run-time state of a role instance in a cloud service. @@ -291,8 +292,8 @@ def list( self, resource_group_name: str, cloud_service_name: str, - expand: Optional[str] = "instanceView", - **kwargs + expand: Optional[Union[str, "_models.InstanceViewTypes"]] = None, + **kwargs: Any ) -> AsyncIterable["_models.RoleInstanceListResult"]: """Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role @@ -302,8 +303,9 @@ def list( :type resource_group_name: str :param cloud_service_name: :type cloud_service_name: str - :param expand: The expand expression to apply to the operation. - :type expand: str + :param expand: The expand expression to apply to the operation. 'UserData' is not supported for + cloud services. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either RoleInstanceListResult or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.RoleInstanceListResult] @@ -373,7 +375,7 @@ async def _restart_initial( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -419,7 +421,7 @@ async def begin_restart( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. @@ -432,8 +434,8 @@ async def begin_restart( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -489,7 +491,7 @@ async def _reimage_initial( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -535,7 +537,7 @@ async def begin_reimage( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles. @@ -548,8 +550,8 @@ async def begin_reimage( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -605,7 +607,7 @@ async def _rebuild_initial( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -651,7 +653,7 @@ async def begin_rebuild( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If @@ -665,8 +667,8 @@ async def begin_rebuild( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -722,7 +724,7 @@ async def get_remote_desktop_file( role_instance_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> IO: """Gets a remote desktop file for a role instance in a cloud service. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_roles_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_roles_operations.py index 57c8e2d30ea5..ebf9a776278a 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_roles_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_service_roles_operations.py @@ -46,7 +46,7 @@ async def get( role_name: str, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> "_models.CloudServiceRole": """Gets a role from a cloud service. @@ -107,7 +107,7 @@ def list( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.CloudServiceRoleListResult"]: """Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_services_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_services_operations.py index 3426417570f1..b59a252f5564 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_services_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_services_operations.py @@ -48,7 +48,7 @@ async def _create_or_update_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.CloudService"] = None, - **kwargs + **kwargs: Any ) -> "_models.CloudService": cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudService"] error_map = { @@ -108,7 +108,7 @@ async def begin_create_or_update( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.CloudService"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.CloudService"]: """Create or update a cloud service. Please note some properties can be set only during cloud service creation. @@ -121,8 +121,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.CloudService :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either CloudService or the result of cls(response) @@ -180,7 +180,7 @@ async def _update_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.CloudServiceUpdate"] = None, - **kwargs + **kwargs: Any ) -> "_models.CloudService": cls = kwargs.pop('cls', None) # type: ClsType["_models.CloudService"] error_map = { @@ -236,7 +236,7 @@ async def begin_update( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.CloudServiceUpdate"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.CloudService"]: """Update a cloud service. @@ -248,8 +248,8 @@ async def begin_update( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either CloudService or the result of cls(response) @@ -306,7 +306,7 @@ async def _delete_initial( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -350,7 +350,7 @@ async def begin_delete( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a cloud service. @@ -360,8 +360,8 @@ async def begin_delete( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -414,7 +414,7 @@ async def get( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> "_models.CloudService": """Display information about a cloud service. @@ -472,7 +472,7 @@ async def get_instance_view( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> "_models.CloudServiceInstanceView": """Gets the status of a cloud service. @@ -528,7 +528,7 @@ async def get_instance_view( def list_all( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.CloudServiceListResult"]: """Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this @@ -597,7 +597,7 @@ async def get_next(next_link=None): def list( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.CloudServiceListResult"]: """Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud @@ -670,7 +670,7 @@ async def _start_initial( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -714,7 +714,7 @@ async def begin_start( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts the cloud service. @@ -724,8 +724,8 @@ async def begin_start( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -778,7 +778,7 @@ async def _power_off_initial( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -822,7 +822,7 @@ async def begin_power_off( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Power off the cloud service. Note that resources are still attached and you are getting charged for the resources. @@ -833,8 +833,8 @@ async def begin_power_off( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -888,7 +888,7 @@ async def _restart_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -941,7 +941,7 @@ async def begin_restart( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts one or more role instances in a cloud service. @@ -953,8 +953,8 @@ async def begin_restart( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1009,7 +1009,7 @@ async def _reimage_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1062,7 +1062,7 @@ async def begin_reimage( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles. @@ -1075,8 +1075,8 @@ async def begin_reimage( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1131,7 +1131,7 @@ async def _rebuild_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1184,7 +1184,7 @@ async def begin_rebuild( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to @@ -1198,8 +1198,8 @@ async def begin_rebuild( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1254,7 +1254,7 @@ async def _delete_instances_initial( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -1307,7 +1307,7 @@ async def begin_delete_instances( resource_group_name: str, cloud_service_name: str, parameters: Optional["_models.RoleInstances"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes role instances in a cloud service. @@ -1319,8 +1319,8 @@ async def begin_delete_instances( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_services_update_domain_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_services_update_domain_operations.py index 010d00810409..766571c92cb1 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_services_update_domain_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_cloud_services_update_domain_operations.py @@ -49,7 +49,7 @@ async def _walk_update_domain_initial( cloud_service_name: str, update_domain: int, parameters: Optional["_models.UpdateDomain"] = None, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -104,7 +104,7 @@ async def begin_walk_update_domain( cloud_service_name: str, update_domain: int, parameters: Optional["_models.UpdateDomain"] = None, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Updates the role instances in the specified update domain. @@ -120,8 +120,8 @@ async def begin_walk_update_domain( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.UpdateDomain :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -178,7 +178,7 @@ async def get_update_domain( resource_group_name: str, cloud_service_name: str, update_domain: int, - **kwargs + **kwargs: Any ) -> "_models.UpdateDomain": """Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update domains. Do this till nextLink is null to fetch all the update @@ -243,7 +243,7 @@ def list_update_domains( self, resource_group_name: str, cloud_service_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.UpdateDomainListResult"]: """Gets a list of all update domains in a cloud service. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_dedicated_host_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_dedicated_host_groups_operations.py new file mode 100644 index 000000000000..2dd74f766ef8 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_dedicated_host_groups_operations.py @@ -0,0 +1,436 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class DedicatedHostGroupsOperations: + """DedicatedHostGroupsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def create_or_update( + self, + resource_group_name: str, + host_group_name: str, + parameters: "_models.DedicatedHostGroup", + **kwargs: Any + ) -> "_models.DedicatedHostGroup": + """Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host + Groups please see [Dedicated Host Documentation] + (https://go.microsoft.com/fwlink/?linkid=2082596). + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param parameters: Parameters supplied to the Create Dedicated Host Group. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroup + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DedicatedHostGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'DedicatedHostGroup') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('DedicatedHostGroup', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('DedicatedHostGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}'} # type: ignore + + async def update( + self, + resource_group_name: str, + host_group_name: str, + parameters: "_models.DedicatedHostGroupUpdate", + **kwargs: Any + ) -> "_models.DedicatedHostGroup": + """Update an dedicated host group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param parameters: Parameters supplied to the Update Dedicated Host Group operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroupUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DedicatedHostGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'DedicatedHostGroupUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('DedicatedHostGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}'} # type: ignore + + async def delete( + self, + resource_group_name: str, + host_group_name: str, + **kwargs: Any + ) -> None: + """Delete a dedicated host group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.delete.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 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, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + host_group_name: str, + expand: Optional[Union[str, "_models.InstanceViewTypes"]] = None, + **kwargs: Any + ) -> "_models.DedicatedHostGroup": + """Retrieves information about a dedicated host group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param 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. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DedicatedHostGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('DedicatedHostGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: + """Lists all of the dedicated host groups in the specified resource group. Use the nextLink + property in the response to get the next page of dedicated host groups. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DedicatedHostGroupListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('DedicatedHostGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups'} # type: ignore + + def list_by_subscription( + self, + **kwargs: Any + ) -> AsyncIterable["_models.DedicatedHostGroupListResult"]: + """Lists all of the dedicated host groups in the subscription. Use the nextLink property in the + response to get the next page of dedicated host groups. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DedicatedHostGroupListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('DedicatedHostGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_dedicated_hosts_operations.py new file mode 100644 index 000000000000..e338a5de099b --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_dedicated_hosts_operations.py @@ -0,0 +1,567 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class DedicatedHostsOperations: + """DedicatedHostsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _create_or_update_initial( + self, + resource_group_name: str, + host_group_name: str, + host_name: str, + parameters: "_models.DedicatedHost", + **kwargs: Any + ) -> "_models.DedicatedHost": + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'DedicatedHost') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('DedicatedHost', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('DedicatedHost', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + host_group_name: str, + host_name: str, + parameters: "_models.DedicatedHost", + **kwargs: Any + ) -> AsyncLROPoller["_models.DedicatedHost"]: + """Create or update a dedicated host . + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param host_name: The name of the dedicated host . + :type host_name: str + :param parameters: Parameters supplied to the Create Dedicated Host. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHost + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.DedicatedHost] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + host_group_name=host_group_name, + host_name=host_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('DedicatedHost', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + host_group_name: str, + host_name: str, + parameters: "_models.DedicatedHostUpdate", + **kwargs: Any + ) -> "_models.DedicatedHost": + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'DedicatedHostUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('DedicatedHost', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + host_group_name: str, + host_name: str, + parameters: "_models.DedicatedHostUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.DedicatedHost"]: + """Update an dedicated host . + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param host_name: The name of the dedicated host . + :type host_name: str + :param parameters: Parameters supplied to the Update Dedicated Host operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either DedicatedHost or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.DedicatedHost] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + host_group_name=host_group_name, + host_name=host_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('DedicatedHost', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + host_group_name: str, + host_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + host_group_name: str, + host_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a dedicated host. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param host_name: The name of the dedicated host. + :type host_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + host_group_name=host_group_name, + host_name=host_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + host_group_name: str, + host_name: str, + expand: Optional[Union[str, "_models.InstanceViewTypes"]] = None, + **kwargs: Any + ) -> "_models.DedicatedHost": + """Retrieves information about a dedicated host. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param host_name: The name of the dedicated host. + :type host_name: str + :param 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. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DedicatedHost, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHost + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('DedicatedHost', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + def list_by_host_group( + self, + resource_group_name: str, + host_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.DedicatedHostListResult"]: + """Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink + property in the response to get the next page of dedicated hosts. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DedicatedHostListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_host_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('DedicatedHostListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_host_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_images_operations.py new file mode 100644 index 000000000000..e70af2b946a9 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_images_operations.py @@ -0,0 +1,606 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ImagesOperations: + """ImagesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _create_or_update_initial( + self, + resource_group_name: str, + image_name: str, + parameters: "_models.Image", + **kwargs: Any + ) -> "_models.Image": + cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'Image') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Image', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Image', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + image_name: str, + parameters: "_models.Image", + **kwargs: Any + ) -> AsyncLROPoller["_models.Image"]: + """Create or update an image. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param image_name: The name of the image. + :type image_name: str + :param parameters: Parameters supplied to the Create Image operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.Image + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.Image] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + image_name=image_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Image', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + image_name: str, + parameters: "_models.ImageUpdate", + **kwargs: Any + ) -> "_models.Image": + cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ImageUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Image', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Image', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + image_name: str, + parameters: "_models.ImageUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.Image"]: + """Update an image. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param image_name: The name of the image. + :type image_name: str + :param parameters: Parameters supplied to the Update Image operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.ImageUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either Image or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.Image] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + image_name=image_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Image', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + image_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + image_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes an Image. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param image_name: The name of the image. + :type image_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + image_name=image_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + image_name: str, + expand: Optional[str] = None, + **kwargs: Any + ) -> "_models.Image": + """Gets an image. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param image_name: The name of the image. + :type image_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Image, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.Image + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('Image', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.ImageListResult"]: + """Gets the list of images under a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ImageListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.ImageListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ImageListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ImageListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images'} # type: ignore + + def list( + self, + **kwargs: Any + ) -> AsyncIterable["_models.ImageListResult"]: + """Gets the list of Images in the subscription. Use nextLink property in the response to get the + next page of Images. Do this till nextLink is null to fetch all the Images. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ImageListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.ImageListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ImageListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ImageListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/images'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_log_analytics_operations.py new file mode 100644 index 000000000000..9a1245d09868 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_log_analytics_operations.py @@ -0,0 +1,283 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class LogAnalyticsOperations: + """LogAnalyticsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _export_request_rate_by_interval_initial( + self, + location: str, + parameters: "_models.RequestRateByIntervalInput", + **kwargs: Any + ) -> Optional["_models.LogAnalyticsOperationResult"]: + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._export_request_rate_by_interval_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RequestRateByIntervalInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('LogAnalyticsOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _export_request_rate_by_interval_initial.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval'} # type: ignore + + async def begin_export_request_rate_by_interval( + self, + location: str, + parameters: "_models.RequestRateByIntervalInput", + **kwargs: Any + ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: + """Export logs that show Api requests made by this subscription in the given time window to show + throttling activities. + + :param location: The location upon which virtual-machine-sizes is queried. + :type location: str + :param parameters: Parameters supplied to the LogAnalytics getRequestRateByInterval Api. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RequestRateByIntervalInput + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.LogAnalyticsOperationResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.LogAnalyticsOperationResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._export_request_rate_by_interval_initial( + location=location, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('LogAnalyticsOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_export_request_rate_by_interval.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval'} # type: ignore + + async def _export_throttled_requests_initial( + self, + location: str, + parameters: "_models.ThrottledRequestsInput", + **kwargs: Any + ) -> Optional["_models.LogAnalyticsOperationResult"]: + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._export_throttled_requests_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ThrottledRequestsInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('LogAnalyticsOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _export_throttled_requests_initial.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests'} # type: ignore + + async def begin_export_throttled_requests( + self, + location: str, + parameters: "_models.ThrottledRequestsInput", + **kwargs: Any + ) -> AsyncLROPoller["_models.LogAnalyticsOperationResult"]: + """Export logs that show total throttled Api requests for this subscription in the given time + window. + + :param location: The location upon which virtual-machine-sizes is queried. + :type location: str + :param parameters: Parameters supplied to the LogAnalytics getThrottledRequests Api. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.ThrottledRequestsInput + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.LogAnalyticsOperationResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.LogAnalyticsOperationResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._export_throttled_requests_initial( + location=location, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('LogAnalyticsOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_export_throttled_requests.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_operations.py new file mode 100644 index 000000000000..3bf52baf9d4f --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_operations.py @@ -0,0 +1,104 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class Operations: + """Operations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + **kwargs: Any + ) -> AsyncIterable["_models.ComputeOperationListResult"]: + """Gets a list of compute operations. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ComputeOperationListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.ComputeOperationListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ComputeOperationListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ComputeOperationListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/providers/Microsoft.Compute/operations'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_proximity_placement_groups_operations.py new file mode 100644 index 000000000000..fdbc2d3ba747 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_proximity_placement_groups_operations.py @@ -0,0 +1,431 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ProximityPlacementGroupsOperations: + """ProximityPlacementGroupsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def create_or_update( + self, + resource_group_name: str, + proximity_placement_group_name: str, + parameters: "_models.ProximityPlacementGroup", + **kwargs: Any + ) -> "_models.ProximityPlacementGroup": + """Create or update a proximity placement group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param proximity_placement_group_name: The name of the proximity placement group. + :type proximity_placement_group_name: str + :param parameters: Parameters supplied to the Create Proximity Placement Group operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroup + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProximityPlacementGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProximityPlacementGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'proximityPlacementGroupName': self._serialize.url("proximity_placement_group_name", proximity_placement_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ProximityPlacementGroup') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('ProximityPlacementGroup', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ProximityPlacementGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}'} # type: ignore + + async def update( + self, + resource_group_name: str, + proximity_placement_group_name: str, + parameters: "_models.ProximityPlacementGroupUpdate", + **kwargs: Any + ) -> "_models.ProximityPlacementGroup": + """Update a proximity placement group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param proximity_placement_group_name: The name of the proximity placement group. + :type proximity_placement_group_name: str + :param parameters: Parameters supplied to the Update Proximity Placement Group operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroupUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProximityPlacementGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProximityPlacementGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'proximityPlacementGroupName': self._serialize.url("proximity_placement_group_name", proximity_placement_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ProximityPlacementGroupUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('ProximityPlacementGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}'} # type: ignore + + async def delete( + self, + resource_group_name: str, + proximity_placement_group_name: str, + **kwargs: Any + ) -> None: + """Delete a proximity placement group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param proximity_placement_group_name: The name of the proximity placement group. + :type proximity_placement_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.delete.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'proximityPlacementGroupName': self._serialize.url("proximity_placement_group_name", proximity_placement_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + proximity_placement_group_name: str, + include_colocation_status: Optional[str] = None, + **kwargs: Any + ) -> "_models.ProximityPlacementGroup": + """Retrieves information about a proximity placement group . + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param proximity_placement_group_name: The name of the proximity placement group. + :type proximity_placement_group_name: str + :param include_colocation_status: includeColocationStatus=true enables fetching the colocation + status of all the resources in the proximity placement group. + :type include_colocation_status: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProximityPlacementGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProximityPlacementGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'proximityPlacementGroupName': self._serialize.url("proximity_placement_group_name", proximity_placement_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if include_colocation_status is not None: + query_parameters['includeColocationStatus'] = self._serialize.query("include_colocation_status", include_colocation_status, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('ProximityPlacementGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}'} # type: ignore + + def list_by_subscription( + self, + **kwargs: Any + ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: + """Lists all proximity placement groups in a subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ProximityPlacementGroupListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProximityPlacementGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ProximityPlacementGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.ProximityPlacementGroupListResult"]: + """Lists all proximity placement groups in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ProximityPlacementGroupListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProximityPlacementGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ProximityPlacementGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_restore_point_collections_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_restore_point_collections_operations.py new file mode 100644 index 000000000000..0f5612892d81 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_restore_point_collections_operations.py @@ -0,0 +1,494 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class RestorePointCollectionsOperations: + """RestorePointCollectionsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def create_or_update( + self, + resource_group_name: str, + restore_point_collection_name: str, + parameters: "_models.RestorePointCollection", + **kwargs: Any + ) -> "_models.RestorePointCollection": + """The operation to create or update the restore point collection. Please refer to + https://aka.ms/RestorePoints for more details. When updating a restore point collection, only + tags may be modified. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the restore point collection. + :type restore_point_collection_name: str + :param parameters: Parameters supplied to the Create or Update restore point collection + operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollection + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RestorePointCollection, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollection + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePointCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RestorePointCollection') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('RestorePointCollection', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('RestorePointCollection', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}'} # type: ignore + + async def update( + self, + resource_group_name: str, + restore_point_collection_name: str, + parameters: "_models.RestorePointCollectionUpdate", + **kwargs: Any + ) -> "_models.RestorePointCollection": + """The operation to update the restore point collection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the restore point collection. + :type restore_point_collection_name: str + :param parameters: Parameters supplied to the Update restore point collection operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollectionUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RestorePointCollection, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollection + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePointCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RestorePointCollectionUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('RestorePointCollection', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + restore_point_collection_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + restore_point_collection_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to delete the restore point collection. This operation will also delete all the + contained restore points. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the Restore Point Collection. + :type restore_point_collection_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + restore_point_collection_name=restore_point_collection_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + restore_point_collection_name: str, + expand: Optional[Union[str, "_models.RestorePointCollectionExpandOptions"]] = None, + **kwargs: Any + ) -> "_models.RestorePointCollection": + """The operation to get the restore point collection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the restore point collection. + :type restore_point_collection_name: str + :param expand: The expand expression to apply on the operation. If expand=restorePoints, server + will return all contained restore points in the restorePointCollection. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollectionExpandOptions + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RestorePointCollection, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollection + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePointCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('RestorePointCollection', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}'} # type: ignore + + def list( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.RestorePointCollectionListResult"]: + """Gets the list of restore point collections in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either RestorePointCollectionListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.RestorePointCollectionListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePointCollectionListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('RestorePointCollectionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections'} # type: ignore + + def list_all( + self, + **kwargs: Any + ) -> AsyncIterable["_models.RestorePointCollectionListResult"]: + """Gets the list of restore point collections in the subscription. Use nextLink property in the + response to get the next page of restore point collections. Do this till nextLink is not null + to fetch all the restore point collections. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either RestorePointCollectionListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.RestorePointCollectionListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePointCollectionListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('RestorePointCollectionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_restore_points_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_restore_points_operations.py new file mode 100644 index 000000000000..8b4f495dfbae --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_restore_points_operations.py @@ -0,0 +1,352 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class RestorePointsOperations: + """RestorePointsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _create_initial( + self, + resource_group_name: str, + restore_point_collection_name: str, + restore_point_name: str, + parameters: "_models.RestorePoint", + **kwargs: Any + ) -> "_models.RestorePoint": + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePoint"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + 'restorePointName': self._serialize.url("restore_point_name", restore_point_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RestorePoint') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('RestorePoint', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}'} # type: ignore + + async def begin_create( + self, + resource_group_name: str, + restore_point_collection_name: str, + restore_point_name: str, + parameters: "_models.RestorePoint", + **kwargs: Any + ) -> AsyncLROPoller["_models.RestorePoint"]: + """The operation to create the restore point. Updating properties of an existing restore point is + not allowed. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the restore point collection. + :type restore_point_collection_name: str + :param restore_point_name: The name of the restore point. + :type restore_point_name: str + :param parameters: Parameters supplied to the Create restore point operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RestorePoint + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either RestorePoint or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.RestorePoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePoint"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_initial( + resource_group_name=resource_group_name, + restore_point_collection_name=restore_point_collection_name, + restore_point_name=restore_point_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('RestorePoint', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + 'restorePointName': self._serialize.url("restore_point_name", restore_point_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + restore_point_collection_name: str, + restore_point_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + 'restorePointName': self._serialize.url("restore_point_name", restore_point_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + restore_point_collection_name: str, + restore_point_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to delete the restore point. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the Restore Point Collection. + :type restore_point_collection_name: str + :param restore_point_name: The name of the restore point. + :type restore_point_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + restore_point_collection_name=restore_point_collection_name, + restore_point_name=restore_point_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + 'restorePointName': self._serialize.url("restore_point_name", restore_point_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + restore_point_collection_name: str, + restore_point_name: str, + **kwargs: Any + ) -> "_models.RestorePoint": + """The operation to get the restore point. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the restore point collection. + :type restore_point_collection_name: str + :param restore_point_name: The name of the restore point. + :type restore_point_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RestorePoint, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RestorePoint + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePoint"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + 'restorePointName': self._serialize.url("restore_point_name", restore_point_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('RestorePoint', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_ssh_public_keys_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_ssh_public_keys_operations.py new file mode 100644 index 000000000000..acd85a33383f --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_ssh_public_keys_operations.py @@ -0,0 +1,487 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class SshPublicKeysOperations: + """SshPublicKeysOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_subscription( + self, + **kwargs: Any + ) -> AsyncIterable["_models.SshPublicKeysGroupListResult"]: + """Lists all of the SSH public keys in the subscription. Use the nextLink property in the response + to get the next page of SSH public keys. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either SshPublicKeysGroupListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.SshPublicKeysGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeysGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('SshPublicKeysGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.SshPublicKeysGroupListResult"]: + """Lists all of the SSH public keys in the specified resource group. Use the nextLink property in + the response to get the next page of SSH public keys. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either SshPublicKeysGroupListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.SshPublicKeysGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeysGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('SshPublicKeysGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys'} # type: ignore + + async def create( + self, + resource_group_name: str, + ssh_public_key_name: str, + parameters: "_models.SshPublicKeyResource", + **kwargs: Any + ) -> "_models.SshPublicKeyResource": + """Creates a new SSH public key resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ssh_public_key_name: The name of the SSH public key. + :type ssh_public_key_name: str + :param parameters: Parameters supplied to create the SSH public key. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyResource + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SshPublicKeyResource, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyResource + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeyResource"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sshPublicKeyName': self._serialize.url("ssh_public_key_name", ssh_public_key_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'SshPublicKeyResource') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('SshPublicKeyResource', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('SshPublicKeyResource', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}'} # type: ignore + + async def update( + self, + resource_group_name: str, + ssh_public_key_name: str, + parameters: "_models.SshPublicKeyUpdateResource", + **kwargs: Any + ) -> "_models.SshPublicKeyResource": + """Updates a new SSH public key resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ssh_public_key_name: The name of the SSH public key. + :type ssh_public_key_name: str + :param parameters: Parameters supplied to update the SSH public key. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyUpdateResource + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SshPublicKeyResource, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyResource + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeyResource"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sshPublicKeyName': self._serialize.url("ssh_public_key_name", ssh_public_key_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'SshPublicKeyUpdateResource') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('SshPublicKeyResource', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}'} # type: ignore + + async def delete( + self, + resource_group_name: str, + ssh_public_key_name: str, + **kwargs: Any + ) -> None: + """Delete an SSH public key. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ssh_public_key_name: The name of the SSH public key. + :type ssh_public_key_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.delete.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sshPublicKeyName': self._serialize.url("ssh_public_key_name", ssh_public_key_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 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, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + ssh_public_key_name: str, + **kwargs: Any + ) -> "_models.SshPublicKeyResource": + """Retrieves information about an SSH public key. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ssh_public_key_name: The name of the SSH public key. + :type ssh_public_key_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SshPublicKeyResource, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyResource + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeyResource"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sshPublicKeyName': self._serialize.url("ssh_public_key_name", ssh_public_key_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('SshPublicKeyResource', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}'} # type: ignore + + async def generate_key_pair( + self, + resource_group_name: str, + ssh_public_key_name: str, + **kwargs: Any + ) -> "_models.SshPublicKeyGenerateKeyPairResult": + """Generates and returns a public/private key pair and populates the SSH public key resource with + the public key. The length of the key will be 3072 bits. This operation can only be performed + once per SSH public key resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ssh_public_key_name: The name of the SSH public key. + :type ssh_public_key_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SshPublicKeyGenerateKeyPairResult, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyGenerateKeyPairResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeyGenerateKeyPairResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.generate_key_pair.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sshPublicKeyName': self._serialize.url("ssh_public_key_name", ssh_public_key_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('SshPublicKeyGenerateKeyPairResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + generate_key_pair.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_usage_operations.py new file mode 100644 index 000000000000..783c8cc74027 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_usage_operations.py @@ -0,0 +1,113 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class UsageOperations: + """UsageOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + location: str, + **kwargs: Any + ) -> AsyncIterable["_models.ListUsagesResult"]: + """Gets, for the specified location, the current compute resource usage information as well as the + limits for compute resources under the subscription. + + :param location: The location for which resource usage is queried. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ListUsagesResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.ListUsagesResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListUsagesResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ListUsagesResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_extension_images_operations.py new file mode 100644 index 000000000000..cfe837745168 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_extension_images_operations.py @@ -0,0 +1,242 @@ +# 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 typing import Any, Callable, Dict, Generic, List, Optional, TypeVar +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineExtensionImagesOperations: + """VirtualMachineExtensionImagesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + location: str, + publisher_name: str, + type: str, + version: str, + **kwargs: Any + ) -> "_models.VirtualMachineExtensionImage": + """Gets a virtual machine extension image. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: + :type publisher_name: str + :param type: + :type type: str + :param version: + :type version: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineExtensionImage, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionImage + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtensionImage"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'type': self._serialize.url("type", type, 'str'), + 'version': self._serialize.url("version", version, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineExtensionImage', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}'} # type: ignore + + async def list_types( + self, + location: str, + publisher_name: str, + **kwargs: Any + ) -> List["_models.VirtualMachineExtensionImage"]: + """Gets a list of virtual machine extension image types. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: + :type publisher_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineExtensionImage, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionImage] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineExtensionImage"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_types.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('[VirtualMachineExtensionImage]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_types.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types'} # type: ignore + + async def list_versions( + self, + location: str, + publisher_name: str, + type: str, + filter: Optional[str] = None, + top: Optional[int] = None, + orderby: Optional[str] = None, + **kwargs: Any + ) -> List["_models.VirtualMachineExtensionImage"]: + """Gets a list of virtual machine extension image versions. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: + :type publisher_name: str + :param type: + :type type: str + :param filter: The filter to apply on the operation. + :type filter: str + :param top: + :type top: int + :param orderby: + :type orderby: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineExtensionImage, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionImage] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineExtensionImage"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_versions.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'type': self._serialize.url("type", type, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('[VirtualMachineExtensionImage]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_versions.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_extensions_operations.py new file mode 100644 index 000000000000..b902567b5112 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_extensions_operations.py @@ -0,0 +1,555 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineExtensionsOperations: + """VirtualMachineExtensionsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _create_or_update_initial( + self, + resource_group_name: str, + vm_name: str, + vm_extension_name: str, + extension_parameters: "_models.VirtualMachineExtension", + **kwargs: Any + ) -> "_models.VirtualMachineExtension": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineExtension') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineExtension', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + vm_extension_name: str, + extension_parameters: "_models.VirtualMachineExtension", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: + """The operation to create or update the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the extension should be created or + updated. + :type vm_name: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + vm_extension_name=vm_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + vm_name: str, + vm_extension_name: str, + extension_parameters: "_models.VirtualMachineExtensionUpdate", + **kwargs: Any + ) -> "_models.VirtualMachineExtension": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineExtensionUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + vm_name: str, + vm_extension_name: str, + extension_parameters: "_models.VirtualMachineExtensionUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineExtension"]: + """The operation to update the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the extension should be updated. + :type vm_name: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param extension_parameters: Parameters supplied to the Update Virtual Machine Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineExtension or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + vm_extension_name=vm_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + vm_name: str, + vm_extension_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + vm_name: str, + vm_extension_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to delete the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the extension should be deleted. + :type vm_name: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + vm_extension_name=vm_extension_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + vm_name: str, + vm_extension_name: str, + expand: Optional[str] = None, + **kwargs: Any + ) -> "_models.VirtualMachineExtension": + """The operation to get the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine containing the extension. + :type vm_name: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineExtension, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + async def list( + self, + resource_group_name: str, + vm_name: str, + expand: Optional[str] = None, + **kwargs: Any + ) -> "_models.VirtualMachineExtensionsListResult": + """The operation to get all extensions of a Virtual Machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine containing the extension. + :type vm_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineExtensionsListResult, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionsListResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtensionsListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineExtensionsListResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_images_edge_zone_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_images_edge_zone_operations.py new file mode 100644 index 000000000000..b2b666ac9b7d --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_images_edge_zone_operations.py @@ -0,0 +1,390 @@ +# 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 typing import Any, Callable, Dict, Generic, List, Optional, TypeVar +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineImagesEdgeZoneOperations: + """VirtualMachineImagesEdgeZoneOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + 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. + :type location: str + :param edge_zone: The name of the edge zone. + :type edge_zone: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :param skus: A valid image SKU. + :type skus: str + :param version: A valid image SKU version. + :type version: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineImage, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImage + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineImage"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'edgeZone': self._serialize.url("edge_zone", edge_zone, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'skus': self._serialize.url("skus", skus, 'str'), + 'version': self._serialize.url("version", version, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}'} # type: ignore + + async def list( + self, + location: str, + edge_zone: str, + publisher_name: str, + offer: str, + skus: str, + expand: Optional[str] = None, + top: Optional[int] = None, + orderby: Optional[str] = None, + **kwargs: Any + ) -> List["_models.VirtualMachineImageResource"]: + """Gets a list of all virtual machine image versions for the specified location, edge zone, + publisher, offer, and SKU. + + :param location: The name of a supported Azure region. + :type location: str + :param edge_zone: The name of the edge zone. + :type edge_zone: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :param skus: A valid image SKU. + :type skus: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :param top: An integer value specifying the number of images to return that matches supplied + values. + :type top: int + :param orderby: Specifies the order of the results returned. Formatted as an OData query. + :type orderby: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'edgeZone': self._serialize.url("edge_zone", edge_zone, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'skus': self._serialize.url("skus", skus, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions'} # type: ignore + + async def list_offers( + self, + location: str, + edge_zone: str, + publisher_name: str, + **kwargs: Any + ) -> List["_models.VirtualMachineImageResource"]: + """Gets a list of virtual machine image offers for the specified location, edge zone and + publisher. + + :param location: The name of a supported Azure region. + :type location: str + :param edge_zone: The name of the edge zone. + :type edge_zone: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_offers.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'edgeZone': self._serialize.url("edge_zone", edge_zone, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_offers.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers'} # type: ignore + + async def list_publishers( + self, + location: str, + edge_zone: str, + **kwargs: Any + ) -> List["_models.VirtualMachineImageResource"]: + """Gets a list of virtual machine image publishers for the specified Azure location and edge zone. + + :param location: The name of a supported Azure region. + :type location: str + :param edge_zone: The name of the edge zone. + :type edge_zone: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_publishers.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'edgeZone': self._serialize.url("edge_zone", edge_zone, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_publishers.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers'} # type: ignore + + async def list_skus( + self, + location: str, + edge_zone: str, + publisher_name: str, + offer: str, + **kwargs: Any + ) -> List["_models.VirtualMachineImageResource"]: + """Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and + offer. + + :param location: The name of a supported Azure region. + :type location: str + :param edge_zone: The name of the edge zone. + :type edge_zone: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_skus.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'edgeZone': self._serialize.url("edge_zone", edge_zone, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_images_operations.py new file mode 100644 index 000000000000..40be7a6aeea4 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_images_operations.py @@ -0,0 +1,367 @@ +# 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 typing import Any, Callable, Dict, Generic, List, Optional, TypeVar +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineImagesOperations: + """VirtualMachineImagesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + location: str, + publisher_name: str, + offer: str, + skus: str, + version: str, + **kwargs: Any + ) -> "_models.VirtualMachineImage": + """Gets a virtual machine image. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :param skus: A valid image SKU. + :type skus: str + :param version: A valid image SKU version. + :type version: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineImage, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImage + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineImage"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'skus': self._serialize.url("skus", skus, 'str'), + 'version': self._serialize.url("version", version, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}'} # type: ignore + + async def list( + self, + location: str, + publisher_name: str, + offer: str, + skus: str, + expand: Optional[str] = None, + top: Optional[int] = None, + orderby: Optional[str] = None, + **kwargs: Any + ) -> List["_models.VirtualMachineImageResource"]: + """Gets a list of all virtual machine image versions for the specified location, publisher, offer, + and SKU. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :param skus: A valid image SKU. + :type skus: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :param top: + :type top: int + :param orderby: + :type orderby: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'skus': self._serialize.url("skus", skus, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions'} # type: ignore + + async def list_offers( + self, + location: str, + publisher_name: str, + **kwargs: Any + ) -> List["_models.VirtualMachineImageResource"]: + """Gets a list of virtual machine image offers for the specified location and publisher. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_offers.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_offers.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers'} # type: ignore + + async def list_publishers( + self, + location: str, + **kwargs: Any + ) -> List["_models.VirtualMachineImageResource"]: + """Gets a list of virtual machine image publishers for the specified Azure location. + + :param location: The name of a supported Azure region. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_publishers.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_publishers.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers'} # type: ignore + + async def list_skus( + self, + location: str, + publisher_name: str, + offer: str, + **kwargs: Any + ) -> List["_models.VirtualMachineImageResource"]: + """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_skus.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_run_commands_operations.py new file mode 100644 index 000000000000..674658d9389d --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_run_commands_operations.py @@ -0,0 +1,700 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineRunCommandsOperations: + """VirtualMachineRunCommandsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + location: str, + **kwargs: Any + ) -> AsyncIterable["_models.RunCommandListResult"]: + """Lists all available run commands for a subscription in a location. + + :param location: The location upon which run commands is queried. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either RunCommandListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.RunCommandListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RunCommandListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('RunCommandListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands'} # type: ignore + + async def get( + self, + location: str, + command_id: str, + **kwargs: Any + ) -> "_models.RunCommandDocument": + """Gets specific run command for a subscription in a location. + + :param location: The location upon which run commands is queried. + :type location: str + :param command_id: The command id. + :type command_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RunCommandDocument, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RunCommandDocument + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RunCommandDocument"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'commandId': self._serialize.url("command_id", command_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('RunCommandDocument', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: "_models.VirtualMachineRunCommand", + **kwargs: Any + ) -> "_models.VirtualMachineRunCommand": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(run_command, 'VirtualMachineRunCommand') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: "_models.VirtualMachineRunCommand", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: + """The operation to create or update the run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the run command should be created or + updated. + :type vm_name: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + :type run_command: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + run_command=run_command, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: "_models.VirtualMachineRunCommandUpdate", + **kwargs: Any + ) -> "_models.VirtualMachineRunCommand": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(run_command, 'VirtualMachineRunCommandUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + run_command: "_models.VirtualMachineRunCommandUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: + """The operation to update the run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the run command should be updated. + :type vm_name: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. + :type run_command: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + run_command=run_command, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to delete the run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the run command should be deleted. + :type vm_name: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + async def get_by_virtual_machine( + self, + resource_group_name: str, + vm_name: str, + run_command_name: str, + expand: Optional[str] = None, + **kwargs: Any + ) -> "_models.VirtualMachineRunCommand": + """The operation to get the run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine containing the run command. + :type vm_name: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineRunCommand, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + # Construct URL + url = self.get_by_virtual_machine.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_by_virtual_machine.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + def list_by_virtual_machine( + self, + resource_group_name: str, + vm_name: str, + expand: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineRunCommandsListResult"]: + """The operation to get all run commands of a Virtual Machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine containing the run command. + :type vm_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineRunCommandsListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandsListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommandsListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_virtual_machine.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommandsListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_virtual_machine.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py new file mode 100644 index 000000000000..11c35803ca09 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_extensions_operations.py @@ -0,0 +1,571 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetExtensionsOperations: + """VirtualMachineScaleSetExtensionsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _create_or_update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vmss_extension_name: str, + extension_parameters: "_models.VirtualMachineScaleSetExtension", + **kwargs: Any + ) -> "_models.VirtualMachineScaleSetExtension": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineScaleSetExtension') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + vmss_extension_name: str, + extension_parameters: "_models.VirtualMachineScaleSetExtension", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: + """The operation to create or update an extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set where the extension should be create or + updated. + :type vm_scale_set_name: str + :param vmss_extension_name: The name of the VM scale set extension. + :type vmss_extension_name: str + :param extension_parameters: Parameters supplied to the Create VM scale set Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vmss_extension_name=vmss_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vmss_extension_name: str, + extension_parameters: "_models.VirtualMachineScaleSetExtensionUpdate", + **kwargs: Any + ) -> "_models.VirtualMachineScaleSetExtension": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineScaleSetExtensionUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + vmss_extension_name: str, + extension_parameters: "_models.VirtualMachineScaleSetExtensionUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineScaleSetExtension"]: + """The operation to update an extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set where the extension should be updated. + :type vm_scale_set_name: str + :param vmss_extension_name: The name of the VM scale set extension. + :type vmss_extension_name: str + :param extension_parameters: Parameters supplied to the Update VM scale set Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtensionUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vmss_extension_name=vmss_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vmss_extension_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + vm_scale_set_name: str, + vmss_extension_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to delete the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set where the extension should be deleted. + :type vm_scale_set_name: str + :param vmss_extension_name: The name of the VM scale set extension. + :type vmss_extension_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vmss_extension_name=vmss_extension_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + vm_scale_set_name: str, + vmss_extension_name: str, + expand: Optional[str] = None, + **kwargs: Any + ) -> "_models.VirtualMachineScaleSetExtension": + """The operation to get the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set containing the extension. + :type vm_scale_set_name: str + :param vmss_extension_name: The name of the VM scale set extension. + :type vmss_extension_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetExtension, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + def list( + self, + resource_group_name: str, + vm_scale_set_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineScaleSetExtensionListResult"]: + """Gets a list of all extensions in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set containing the extension. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetExtensionListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtensionListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtensionListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetExtensionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py new file mode 100644 index 000000000000..accfb264751b --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -0,0 +1,423 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetRollingUpgradesOperations: + """VirtualMachineScaleSetRollingUpgradesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _cancel_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._cancel_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _cancel_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel'} # type: ignore + + async def begin_cancel( + self, + resource_group_name: str, + vm_scale_set_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Cancels the current virtual machine scale set rolling upgrade. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._cancel_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel'} # type: ignore + + async def _start_os_upgrade_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._start_os_upgrade_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _start_os_upgrade_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade'} # type: ignore + + async def begin_start_os_upgrade( + self, + resource_group_name: str, + vm_scale_set_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Starts a rolling upgrade to move all virtual machine scale set instances to the latest + available Platform Image OS version. Instances which are already running the latest available + OS version are not affected. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._start_os_upgrade_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_start_os_upgrade.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade'} # type: ignore + + async def _start_extension_upgrade_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._start_extension_upgrade_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _start_extension_upgrade_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade'} # type: ignore + + async def begin_start_extension_upgrade( + self, + resource_group_name: str, + vm_scale_set_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to + the latest available extension version. Instances which are already running the latest + extension versions are not affected. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._start_extension_upgrade_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_start_extension_upgrade.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade'} # type: ignore + + async def get_latest( + self, + resource_group_name: str, + vm_scale_set_name: str, + **kwargs: Any + ) -> "_models.RollingUpgradeStatusInfo": + """Gets the status of the latest virtual machine scale set rolling upgrade. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RollingUpgradeStatusInfo, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradeStatusInfo + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RollingUpgradeStatusInfo"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get_latest.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('RollingUpgradeStatusInfo', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_latest.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py new file mode 100644 index 000000000000..cd9ad9621670 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vm_extensions_operations.py @@ -0,0 +1,585 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetVMExtensionsOperations: + """VirtualMachineScaleSetVMExtensionsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _create_or_update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + vm_extension_name: str, + extension_parameters: "_models.VirtualMachineScaleSetVMExtension", + **kwargs: Any + ) -> "_models.VirtualMachineScaleSetVMExtension": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineScaleSetVMExtension') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineScaleSetVMExtension', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineScaleSetVMExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + vm_extension_name: str, + extension_parameters: "_models.VirtualMachineScaleSetVMExtension", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVMExtension"]: + """The operation to create or update the VMSS VM extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtension + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + vm_extension_name=vm_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetVMExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + vm_extension_name: str, + extension_parameters: "_models.VirtualMachineScaleSetVMExtensionUpdate", + **kwargs: Any + ) -> "_models.VirtualMachineScaleSetVMExtension": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineScaleSetVMExtensionUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetVMExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + vm_extension_name: str, + extension_parameters: "_models.VirtualMachineScaleSetVMExtensionUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVMExtension"]: + """The operation to update the VMSS VM extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param extension_parameters: Parameters supplied to the Update Virtual Machine Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtensionUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + vm_extension_name=vm_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetVMExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + vm_extension_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + vm_extension_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to delete the VMSS VM extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + vm_extension_name=vm_extension_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + vm_extension_name: str, + expand: Optional[str] = None, + **kwargs: Any + ) -> "_models.VirtualMachineScaleSetVMExtension": + """The operation to get the VMSS VM extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetVMExtension, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtension + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetVMExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + async def list( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + expand: Optional[str] = None, + **kwargs: Any + ) -> "_models.VirtualMachineScaleSetVMExtensionsListResult": + """The operation to get all extensions of an instance in Virtual Machine Scaleset. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetVMExtensionsListResult, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtensionsListResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtensionsListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetVMExtensionsListResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py new file mode 100644 index 000000000000..9e4a63faa5a3 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vm_run_commands_operations.py @@ -0,0 +1,600 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetVMRunCommandsOperations: + """VirtualMachineScaleSetVMRunCommandsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _create_or_update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: "_models.VirtualMachineRunCommand", + **kwargs: Any + ) -> "_models.VirtualMachineRunCommand": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(run_command, 'VirtualMachineRunCommand') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: "_models.VirtualMachineRunCommand", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: + """The operation to create or update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + :type run_command: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + run_command=run_command, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: "_models.VirtualMachineRunCommandUpdate", + **kwargs: Any + ) -> "_models.VirtualMachineRunCommand": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(run_command, 'VirtualMachineRunCommandUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + run_command: "_models.VirtualMachineRunCommandUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineRunCommand"]: + """The operation to update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. + :type run_command: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + run_command=run_command, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to delete the VMSS VM run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + run_command_name: str, + expand: Optional[str] = None, + **kwargs: Any + ) -> "_models.VirtualMachineRunCommand": + """The operation to get the VMSS VM run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineRunCommand, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + def list( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + expand: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineRunCommandsListResult"]: + """The operation to get all run commands of an instance in Virtual Machine Scaleset. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineRunCommandsListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandsListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommandsListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommandsListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vms_operations.py new file mode 100644 index 000000000000..34a178ae4208 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_set_vms_operations.py @@ -0,0 +1,1716 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetVMsOperations: + """VirtualMachineScaleSetVMsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def _reimage_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._reimage_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_scale_set_vm_reimage_input is not None: + body_content = self._serialize.body(vm_scale_set_vm_reimage_input, 'VirtualMachineScaleSetVMReimageParameters') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reimage_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage'} # type: ignore + + async def begin_reimage( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + vm_scale_set_vm_reimage_input: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param vm_scale_set_vm_reimage_input: Parameters for the Reimaging Virtual machine in ScaleSet. + :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMReimageParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._reimage_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + vm_scale_set_vm_reimage_input=vm_scale_set_vm_reimage_input, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reimage.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage'} # type: ignore + + async def _reimage_all_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._reimage_all_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reimage_all_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimageall'} # type: ignore + + async def begin_reimage_all( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. + This operation is only supported for managed disks. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._reimage_all_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reimage_all.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimageall'} # type: ignore + + async def _deallocate_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._deallocate_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _deallocate_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate'} # type: ignore + + async def begin_deallocate( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and + releases the compute resources it uses. You are not billed for the compute resources of this + virtual machine once it is deallocated. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._deallocate_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_deallocate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + parameters: "_models.VirtualMachineScaleSetVM", + **kwargs: Any + ) -> "_models.VirtualMachineScaleSetVM": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachineScaleSetVM') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineScaleSetVM', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('VirtualMachineScaleSetVM', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + parameters: "_models.VirtualMachineScaleSetVM", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineScaleSetVM"]: + """Updates a virtual machine of a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set where the extension should be create or + updated. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param parameters: Parameters supplied to the Update Virtual Machine Scale Sets VM operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVM + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVM] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetVM', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + force_deletion: Optional[bool] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if force_deletion is not None: + query_parameters['forceDeletion'] = self._serialize.query("force_deletion", force_deletion, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + force_deletion: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes a virtual machine from a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param force_deletion: Optional parameter to force delete a virtual machine from a VM scale + set. (Feature in Preview). + :type force_deletion: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + force_deletion=force_deletion, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'} # type: ignore + + async def get( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + expand: Optional[Union[str, "_models.InstanceViewTypes"]] = None, + **kwargs: Any + ) -> "_models.VirtualMachineScaleSetVM": + """Gets a virtual machine from a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param 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. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetVM, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVM + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetVM', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'} # type: ignore + + async def get_instance_view( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> "_models.VirtualMachineScaleSetVMInstanceView": + """Gets the status of a virtual machine from a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetVMInstanceView, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceView + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMInstanceView"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get_instance_view.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetVMInstanceView', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_instance_view.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/instanceView'} # type: ignore + + def list( + self, + resource_group_name: str, + virtual_machine_scale_set_name: str, + filter: Optional[str] = None, + select: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineScaleSetVMListResult"]: + """Gets a list of all virtual machines in a VM scale sets. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the VM scale set. + :type virtual_machine_scale_set_name: str + :param filter: The filter to apply to the operation. Allowed values are + 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied + eq true', 'properties/latestModelApplied eq false'. + :type filter: str + :param select: The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. + :type select: str + :param expand: The expand expression to apply to the operation. Allowed values are + 'instanceView'. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetVMListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if select is not None: + query_parameters['$select'] = self._serialize.query("select", select, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetVMListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines'} # type: ignore + + async def _power_off_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + skip_shutdown: Optional[bool] = False, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._power_off_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if skip_shutdown is not None: + query_parameters['skipShutdown'] = self._serialize.query("skip_shutdown", skip_shutdown, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _power_off_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff'} # type: ignore + + async def begin_power_off( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + skip_shutdown: Optional[bool] = False, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached + and you are getting charged for the resources. Instead, use deallocate to release resources and + avoid charges. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param 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. + :type skip_shutdown: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._power_off_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + skip_shutdown=skip_shutdown, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_power_off.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff'} # type: ignore + + async def _restart_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._restart_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart'} # type: ignore + + async def begin_restart( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Restarts a virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._restart_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart'} # type: ignore + + async def _start_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._start_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start'} # type: ignore + + async def begin_start( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Starts a virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._start_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start'} # type: ignore + + async def _redeploy_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._redeploy_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _redeploy_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy'} # type: ignore + + async def begin_redeploy( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and + powers it back on. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._redeploy_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_redeploy.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy'} # type: ignore + + async def retrieve_boot_diagnostics_data( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + sas_uri_expiration_time_in_minutes: Optional[int] = None, + **kwargs: Any + ) -> "_models.RetrieveBootDiagnosticsDataResult": + """The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale + set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param sas_uri_expiration_time_in_minutes: Expiration duration in minutes for the SAS URIs with + a value between 1 to 1440 minutes. :code:`
    `:code:`
    `NOTE: If not specified, SAS URIs + will be generated with a default expiration duration of 120 minutes. + :type sas_uri_expiration_time_in_minutes: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RetrieveBootDiagnosticsDataResult, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RetrieveBootDiagnosticsDataResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RetrieveBootDiagnosticsDataResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.retrieve_boot_diagnostics_data.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if sas_uri_expiration_time_in_minutes is not None: + query_parameters['sasUriExpirationTimeInMinutes'] = self._serialize.query("sas_uri_expiration_time_in_minutes", sas_uri_expiration_time_in_minutes, 'int') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('RetrieveBootDiagnosticsDataResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + retrieve_boot_diagnostics_data.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData'} # type: ignore + + async def _perform_maintenance_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._perform_maintenance_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _perform_maintenance_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance'} # type: ignore + + async def begin_perform_maintenance( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Performs maintenance on a virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._perform_maintenance_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_perform_maintenance.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance'} # type: ignore + + async def simulate_eviction( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + **kwargs: Any + ) -> None: + """The operation to simulate the eviction of spot virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.simulate_eviction.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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, {}) + + simulate_eviction.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction'} # type: ignore + + async def _run_command_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + parameters: "_models.RunCommandInput", + **kwargs: Any + ) -> Optional["_models.RunCommandResult"]: + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._run_command_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RunCommandInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('RunCommandResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _run_command_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand'} # type: ignore + + async def begin_run_command( + self, + resource_group_name: str, + vm_scale_set_name: str, + instance_id: str, + parameters: "_models.RunCommandInput", + **kwargs: Any + ) -> AsyncLROPoller["_models.RunCommandResult"]: + """Run command on a virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param parameters: Parameters supplied to the Run command operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RunCommandInput + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.RunCommandResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RunCommandResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._run_command_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('RunCommandResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_run_command.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_sets_operations.py new file mode 100644 index 000000000000..1c609d1faf25 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_scale_sets_operations.py @@ -0,0 +1,2342 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetsOperations: + """VirtualMachineScaleSetsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_location( + self, + location: str, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: + """Gets all the VM scale sets under the specified subscription for the specified location. + + :param location: The location for which VM scale sets under the subscription are queried. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_location.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_location.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + parameters: "_models.VirtualMachineScaleSet", + **kwargs: Any + ) -> "_models.VirtualMachineScaleSet": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachineScaleSet') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineScaleSet', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineScaleSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + parameters: "_models.VirtualMachineScaleSet", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: + """Create or update a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set to create or update. + :type vm_scale_set_name: str + :param parameters: The scale set object. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + parameters: "_models.VirtualMachineScaleSetUpdate", + **kwargs: Any + ) -> "_models.VirtualMachineScaleSet": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachineScaleSetUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + vm_scale_set_name: str, + parameters: "_models.VirtualMachineScaleSetUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineScaleSet"]: + """Update a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set to create or update. + :type vm_scale_set_name: str + :param parameters: The scale set object. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineScaleSet or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + force_deletion: Optional[bool] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if force_deletion is not None: + query_parameters['forceDeletion'] = self._serialize.query("force_deletion", force_deletion, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + vm_scale_set_name: str, + force_deletion: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param force_deletion: Optional parameter to force delete a VM scale set. (Feature in Preview). + :type force_deletion: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + force_deletion=force_deletion, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + vm_scale_set_name: str, + expand: Optional[Union[str, "_models.ExpandTypesForGetVMScaleSets"]] = None, + **kwargs: Any + ) -> "_models.VirtualMachineScaleSet": + """Display information about a virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param 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. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.ExpandTypesForGetVMScaleSets + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSet, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + async def _deallocate_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._deallocate_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _deallocate_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate'} # type: ignore + + async def begin_deallocate( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and + releases the compute resources. You are not billed for the compute resources that this virtual + machine scale set deallocates. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._deallocate_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_deallocate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate'} # type: ignore + + async def _delete_instances_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", + force_deletion: Optional[bool] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._delete_instances_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if force_deletion is not None: + query_parameters['forceDeletion'] = self._serialize.query("force_deletion", force_deletion, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceRequiredIDs') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _delete_instances_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete'} # type: ignore + + async def begin_delete_instances( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", + force_deletion: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes virtual machines in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs + :param force_deletion: Optional parameter to force delete virtual machines from the VM scale + set. (Feature in Preview). + :type force_deletion: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_instances_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + force_deletion=force_deletion, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete_instances.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete'} # type: ignore + + async def get_instance_view( + self, + resource_group_name: str, + vm_scale_set_name: str, + **kwargs: Any + ) -> "_models.VirtualMachineScaleSetInstanceView": + """Gets the status of a VM scale set instance. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetInstanceView, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetInstanceView + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetInstanceView"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get_instance_view.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetInstanceView', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_instance_view.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView'} # type: ignore + + def list( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineScaleSetListResult"]: + """Gets a list of all VM scale sets under a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets'} # type: ignore + + def list_all( + self, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineScaleSetListWithLinkResult"]: + """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource + group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this + till nextLink is null to fetch all the VM Scale Sets. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetListWithLinkResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetListWithLinkResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetListWithLinkResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetListWithLinkResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets'} # type: ignore + + def list_skus( + self, + resource_group_name: str, + vm_scale_set_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineScaleSetListSkusResult"]: + """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM + instances allowed for each SKU. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetListSkusResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetListSkusResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetListSkusResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_skus.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetListSkusResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_skus.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus'} # type: ignore + + def get_os_upgrade_history( + self, + resource_group_name: str, + vm_scale_set_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineScaleSetListOSUpgradeHistory"]: + """Gets list of OS upgrades on a VM scale set instance. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetListOSUpgradeHistory or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetListOSUpgradeHistory] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetListOSUpgradeHistory"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.get_os_upgrade_history.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetListOSUpgradeHistory', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + get_os_upgrade_history.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory'} # type: ignore + + async def _power_off_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + skip_shutdown: Optional[bool] = False, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._power_off_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if skip_shutdown is not None: + query_parameters['skipShutdown'] = self._serialize.query("skip_shutdown", skip_shutdown, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _power_off_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff'} # type: ignore + + async def begin_power_off( + self, + resource_group_name: str, + vm_scale_set_name: str, + skip_shutdown: Optional[bool] = False, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still + attached and you are getting charged for the resources. Instead, use deallocate to release + resources and avoid charges. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param 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. + :type skip_shutdown: bool + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._power_off_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + skip_shutdown=skip_shutdown, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_power_off.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff'} # type: ignore + + async def _restart_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._restart_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart'} # type: ignore + + async def begin_restart( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Restarts one or more virtual machines in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._restart_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart'} # type: ignore + + async def _start_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._start_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start'} # type: ignore + + async def begin_start( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Starts one or more virtual machines in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._start_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start'} # type: ignore + + async def _redeploy_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._redeploy_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _redeploy_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy'} # type: ignore + + async def begin_redeploy( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, + and powers them back on. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._redeploy_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_redeploy.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy'} # type: ignore + + async def _perform_maintenance_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._perform_maintenance_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _perform_maintenance_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance'} # type: ignore + + async def begin_perform_maintenance( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances + which are not eligible for perform maintenance will be failed. Please refer to best practices + for more details: + https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._perform_maintenance_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_perform_maintenance.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance'} # type: ignore + + async def _update_instances_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._update_instances_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceRequiredIDs') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _update_instances_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade'} # type: ignore + + async def begin_update_instances( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_instances_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update_instances.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade'} # type: ignore + + async def _reimage_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._reimage_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_scale_set_reimage_input is not None: + body_content = self._serialize.body(vm_scale_set_reimage_input, 'VirtualMachineScaleSetReimageParameters') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reimage_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage'} # type: ignore + + async def begin_reimage( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_scale_set_reimage_input: Optional["_models.VirtualMachineScaleSetReimageParameters"] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which + don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual + machine is reset to initial state. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_scale_set_reimage_input: Parameters for Reimaging VM ScaleSet. + :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetReimageParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._reimage_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_scale_set_reimage_input=vm_scale_set_reimage_input, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reimage.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage'} # type: ignore + + async def _reimage_all_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._reimage_all_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reimage_all_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall'} # type: ignore + + async def begin_reimage_all( + self, + resource_group_name: str, + vm_scale_set_name: str, + vm_instance_i_ds: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This + operation is only supported for managed disks. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._reimage_all_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reimage_all.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall'} # type: ignore + + async def force_recovery_service_fabric_platform_update_domain_walk( + self, + resource_group_name: str, + vm_scale_set_name: str, + platform_update_domain: int, + **kwargs: Any + ) -> "_models.RecoveryWalkResponse": + """Manual platform update domain walk to update virtual machines in a service fabric virtual + machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param platform_update_domain: The platform update domain for which a manual recovery walk is + requested. + :type platform_update_domain: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RecoveryWalkResponse, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RecoveryWalkResponse + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RecoveryWalkResponse"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.force_recovery_service_fabric_platform_update_domain_walk.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + query_parameters['platformUpdateDomain'] = self._serialize.query("platform_update_domain", platform_update_domain, 'int') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('RecoveryWalkResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + force_recovery_service_fabric_platform_update_domain_walk.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk'} # type: ignore + + async def convert_to_single_placement_group( + self, + resource_group_name: str, + vm_scale_set_name: str, + parameters: "_models.VMScaleSetConvertToSinglePlacementGroupInput", + **kwargs: Any + ) -> None: + """Converts SinglePlacementGroup property to false for a existing virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the virtual machine scale set to create or update. + :type vm_scale_set_name: str + :param parameters: The input object for ConvertToSinglePlacementGroup API. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VMScaleSetConvertToSinglePlacementGroupInput + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.convert_to_single_placement_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VMScaleSetConvertToSinglePlacementGroupInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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) + + if cls: + return cls(pipeline_response, None, {}) + + convert_to_single_placement_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup'} # type: ignore + + async def _set_orchestration_service_state_initial( + self, + resource_group_name: str, + vm_scale_set_name: str, + parameters: "_models.OrchestrationServiceStateInput", + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._set_orchestration_service_state_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'OrchestrationServiceStateInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _set_orchestration_service_state_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState'} # type: ignore + + async def begin_set_orchestration_service_state( + self, + resource_group_name: str, + vm_scale_set_name: str, + parameters: "_models.OrchestrationServiceStateInput", + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Changes ServiceState property for a given service. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the virtual machine scale set to create or update. + :type vm_scale_set_name: str + :param parameters: The input object for SetOrchestrationServiceState API. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceStateInput + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._set_orchestration_service_state_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_set_orchestration_service_state.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_sizes_operations.py new file mode 100644 index 000000000000..a43a681617a8 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machine_sizes_operations.py @@ -0,0 +1,113 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineSizesOperations: + """VirtualMachineSizesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + location: str, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: + """This API is deprecated. Use `Resources Skus + `_. + + :param location: The location upon which virtual-machine-sizes is queried. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineSizeListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineSizeListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineSizeListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + 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) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machines_operations.py new file mode 100644 index 000000000000..8c7e2a22a121 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_virtual_machines_operations.py @@ -0,0 +1,2476 @@ +# 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 typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachinesOperations: + """VirtualMachinesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_location( + self, + location: str, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineListResult"]: + """Gets all the virtual machines under the specified subscription for the specified location. + + :param location: The location for which virtual machines under the subscription are queried. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_location.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_by_location.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines'} # type: ignore + + async def _capture_initial( + self, + resource_group_name: str, + vm_name: str, + parameters: "_models.VirtualMachineCaptureParameters", + **kwargs: Any + ) -> Optional["_models.VirtualMachineCaptureResult"]: + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._capture_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachineCaptureParameters') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineCaptureResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _capture_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture'} # type: ignore + + async def begin_capture( + self, + resource_group_name: str, + vm_name: str, + parameters: "_models.VirtualMachineCaptureParameters", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineCaptureResult"]: + """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used + to create similar VMs. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param parameters: Parameters supplied to the Capture Virtual Machine operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineCaptureParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineCaptureResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineCaptureResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._capture_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineCaptureResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_capture.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + vm_name: str, + parameters: "_models.VirtualMachine", + **kwargs: Any + ) -> "_models.VirtualMachine": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachine') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachine', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + vm_name: str, + parameters: "_models.VirtualMachine", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachine"]: + """The operation to create or update a virtual machine. Please note some properties can be set + only during virtual machine creation. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param parameters: Parameters supplied to the Create Virtual Machine operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachine + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachine] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + vm_name: str, + parameters: "_models.VirtualMachineUpdate", + **kwargs: Any + ) -> "_models.VirtualMachine": + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachineUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + vm_name: str, + parameters: "_models.VirtualMachineUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachine"]: + """The operation to update a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param parameters: Parameters supplied to the Update Virtual Machine operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachine or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachine] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + vm_name: str, + force_deletion: Optional[bool] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if force_deletion is not None: + query_parameters['forceDeletion'] = self._serialize.query("force_deletion", force_deletion, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + vm_name: str, + force_deletion: Optional[bool] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to delete a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param force_deletion: Optional parameter to force delete virtual machines.(Feature in + Preview). + :type force_deletion: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + force_deletion=force_deletion, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + vm_name: str, + expand: Optional[Union[str, "_models.InstanceViewTypes"]] = None, + **kwargs: Any + ) -> "_models.VirtualMachine": + """Retrieves information about the model view or the instance view of a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param expand: The expand expression to apply on the operation. 'InstanceView' retrieves a + 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. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachine, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachine + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + async def instance_view( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> "_models.VirtualMachineInstanceView": + """Retrieves information about the run-time state of a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineInstanceView, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineInstanceView + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineInstanceView"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.instance_view.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('VirtualMachineInstanceView', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + instance_view.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView'} # type: ignore + + async def _convert_to_managed_disks_initial( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._convert_to_managed_disks_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _convert_to_managed_disks_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks'} # type: ignore + + async def begin_convert_to_managed_disks( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._convert_to_managed_disks_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_convert_to_managed_disks.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks'} # type: ignore + + async def _deallocate_initial( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._deallocate_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _deallocate_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate'} # type: ignore + + async def begin_deallocate( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Shuts down the virtual machine and releases the compute resources. You are not billed for the + compute resources that this virtual machine uses. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._deallocate_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_deallocate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate'} # type: ignore + + async def generalize( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> None: + """Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the + virtual machine before performing this operation. :code:`
    `For Windows, please refer to + `Create a managed image of a generalized VM in Azure + `_.:code:`
    `For + Linux, please refer to `How to create an image of a virtual machine or VHD + `_. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.generalize.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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) + + if cls: + return cls(pipeline_response, None, {}) + + generalize.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize'} # type: ignore + + def list( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineListResult"]: + """Lists all of the virtual machines in the specified resource group. Use the nextLink property in + the response to get the next page of virtual machines. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines'} # type: ignore + + def list_all( + self, + status_only: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineListResult"]: + """Lists all of the virtual machines in the specified subscription. Use the nextLink property in + the response to get the next page of virtual machines. + + :param status_only: statusOnly=true enables fetching run time status of all Virtual Machines in + the subscription. + :type status_only: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if status_only is not None: + query_parameters['statusOnly'] = self._serialize.query("status_only", status_only, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines'} # type: ignore + + def list_available_sizes( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachineSizeListResult"]: + """Lists all available virtual machine sizes to which the specified virtual machine can be + resized. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineSizeListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineSizeListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineSizeListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_available_sizes.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + 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) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **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 + ) + list_available_sizes.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes'} # type: ignore + + async def _power_off_initial( + self, + resource_group_name: str, + vm_name: str, + skip_shutdown: Optional[bool] = False, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._power_off_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if skip_shutdown is not None: + query_parameters['skipShutdown'] = self._serialize.query("skip_shutdown", skip_shutdown, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _power_off_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff'} # type: ignore + + async def begin_power_off( + self, + resource_group_name: str, + vm_name: str, + skip_shutdown: Optional[bool] = False, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with + the same provisioned resources. You are still charged for this virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param 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. + :type skip_shutdown: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._power_off_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + skip_shutdown=skip_shutdown, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_power_off.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff'} # type: ignore + + async def _reapply_initial( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self._reapply_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reapply_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply'} # type: ignore + + async def begin_reapply( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to reapply a virtual machine's state. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._reapply_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reapply.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply'} # type: ignore + + async def _restart_initial( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._restart_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart'} # type: ignore + + async def begin_restart( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to restart a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._restart_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart'} # type: ignore + + async def _start_initial( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._start_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start'} # type: ignore + + async def begin_start( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to start a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._start_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start'} # type: ignore + + async def _redeploy_initial( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._redeploy_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _redeploy_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy'} # type: ignore + + async def begin_redeploy( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Shuts down the virtual machine, moves it to a new node, and powers it back on. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._redeploy_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_redeploy.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy'} # type: ignore + + async def _reimage_initial( + self, + resource_group_name: str, + vm_name: str, + parameters: Optional["_models.VirtualMachineReimageParameters"] = None, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._reimage_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if parameters is not None: + body_content = self._serialize.body(parameters, 'VirtualMachineReimageParameters') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reimage_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage'} # type: ignore + + async def begin_reimage( + self, + resource_group_name: str, + vm_name: str, + parameters: Optional["_models.VirtualMachineReimageParameters"] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Reimages the virtual machine which has an ephemeral OS disk back to its initial state. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param parameters: Parameters supplied to the Reimage Virtual Machine operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineReimageParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._reimage_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reimage.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage'} # type: ignore + + async def retrieve_boot_diagnostics_data( + self, + resource_group_name: str, + vm_name: str, + sas_uri_expiration_time_in_minutes: Optional[int] = None, + **kwargs: Any + ) -> "_models.RetrieveBootDiagnosticsDataResult": + """The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param sas_uri_expiration_time_in_minutes: Expiration duration in minutes for the SAS URIs with + a value between 1 to 1440 minutes. :code:`
    `:code:`
    `NOTE: If not specified, SAS URIs + will be generated with a default expiration duration of 120 minutes. + :type sas_uri_expiration_time_in_minutes: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RetrieveBootDiagnosticsDataResult, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RetrieveBootDiagnosticsDataResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RetrieveBootDiagnosticsDataResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.retrieve_boot_diagnostics_data.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if sas_uri_expiration_time_in_minutes is not None: + query_parameters['sasUriExpirationTimeInMinutes'] = self._serialize.query("sas_uri_expiration_time_in_minutes", sas_uri_expiration_time_in_minutes, 'int') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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('RetrieveBootDiagnosticsDataResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + retrieve_boot_diagnostics_data.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData'} # type: ignore + + async def _perform_maintenance_initial( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._perform_maintenance_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _perform_maintenance_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance'} # type: ignore + + async def begin_perform_maintenance( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """The operation to perform maintenance on a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._perform_maintenance_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_perform_maintenance.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance'} # type: ignore + + async def simulate_eviction( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> None: + """The operation to simulate the eviction of spot virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.simulate_eviction.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **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, {}) + + simulate_eviction.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction'} # type: ignore + + async def _assess_patches_initial( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> Optional["_models.VirtualMachineAssessPatchesResult"]: + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineAssessPatchesResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self._assess_patches_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineAssessPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _assess_patches_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches'} # type: ignore + + async def begin_assess_patches( + self, + resource_group_name: str, + vm_name: str, + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineAssessPatchesResult"]: + """Assess patches on the VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineAssessPatchesResult or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineAssessPatchesResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineAssessPatchesResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._assess_patches_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineAssessPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_assess_patches.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches'} # type: ignore + + async def _install_patches_initial( + self, + resource_group_name: str, + vm_name: str, + install_patches_input: "_models.VirtualMachineInstallPatchesParameters", + **kwargs: Any + ) -> Optional["_models.VirtualMachineInstallPatchesResult"]: + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineInstallPatchesResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._install_patches_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(install_patches_input, 'VirtualMachineInstallPatchesParameters') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineInstallPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _install_patches_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches'} # type: ignore + + async def begin_install_patches( + self, + resource_group_name: str, + vm_name: str, + install_patches_input: "_models.VirtualMachineInstallPatchesParameters", + **kwargs: Any + ) -> AsyncLROPoller["_models.VirtualMachineInstallPatchesResult"]: + """Installs patches on the VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param install_patches_input: Input for InstallPatches as directly received by the API. + :type install_patches_input: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineInstallPatchesParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineInstallPatchesResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineInstallPatchesResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._install_patches_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + install_patches_input=install_patches_input, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineInstallPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_install_patches.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches'} # type: ignore + + async def _run_command_initial( + self, + resource_group_name: str, + vm_name: str, + parameters: "_models.RunCommandInput", + **kwargs: Any + ) -> Optional["_models.RunCommandResult"]: + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._run_command_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RunCommandInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('RunCommandResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _run_command_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand'} # type: ignore + + async def begin_run_command( + self, + resource_group_name: str, + vm_name: str, + parameters: "_models.RunCommandInput", + **kwargs: Any + ) -> AsyncLROPoller["_models.RunCommandResult"]: + """Run command on the VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param parameters: Parameters supplied to the Run command operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RunCommandInput + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either RunCommandResult or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.v2021_03_01.models.RunCommandResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RunCommandResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._run_command_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('RunCommandResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_run_command.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/__init__.py index fc6e37b42866..04e6ef3e0d90 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/__init__.py @@ -7,8 +7,21 @@ # -------------------------------------------------------------------------- try: + from ._models_py3 import AdditionalCapabilities + from ._models_py3 import AdditionalUnattendContent + from ._models_py3 import ApiEntityReference from ._models_py3 import ApiError from ._models_py3 import ApiErrorBase + from ._models_py3 import AutomaticOSUpgradePolicy + from ._models_py3 import AutomaticOSUpgradeProperties + from ._models_py3 import AutomaticRepairsPolicy + from ._models_py3 import AvailabilitySet + from ._models_py3 import AvailabilitySetListResult + from ._models_py3 import AvailabilitySetUpdate + from ._models_py3 import AvailablePatchSummary + from ._models_py3 import BillingProfile + from ._models_py3 import BootDiagnostics + from ._models_py3 import BootDiagnosticsInstanceView from ._models_py3 import CloudService from ._models_py3 import CloudServiceExtensionProfile from ._models_py3 import CloudServiceExtensionProperties @@ -27,35 +40,254 @@ from ._models_py3 import CloudServiceVaultAndSecretReference from ._models_py3 import CloudServiceVaultCertificate from ._models_py3 import CloudServiceVaultSecretGroup + from ._models_py3 import ComputeOperationListResult + from ._models_py3 import ComputeOperationValue + from ._models_py3 import DataDisk + from ._models_py3 import DataDiskImage + from ._models_py3 import DedicatedHost + from ._models_py3 import DedicatedHostAllocatableVM + from ._models_py3 import DedicatedHostAvailableCapacity + from ._models_py3 import DedicatedHostGroup + from ._models_py3 import DedicatedHostGroupInstanceView + from ._models_py3 import DedicatedHostGroupListResult + from ._models_py3 import DedicatedHostGroupUpdate + from ._models_py3 import DedicatedHostInstanceView + from ._models_py3 import DedicatedHostInstanceViewWithName + from ._models_py3 import DedicatedHostListResult + from ._models_py3 import DedicatedHostUpdate + from ._models_py3 import DiagnosticsProfile + from ._models_py3 import DiffDiskSettings + from ._models_py3 import DisallowedConfiguration + from ._models_py3 import DiskEncryptionSetParameters + from ._models_py3 import DiskEncryptionSettings + from ._models_py3 import DiskInstanceView + from ._models_py3 import ExtendedLocation from ._models_py3 import Extension + from ._models_py3 import HardwareProfile + from ._models_py3 import Image + from ._models_py3 import ImageDataDisk + from ._models_py3 import ImageDisk + from ._models_py3 import ImageListResult + from ._models_py3 import ImageOSDisk + from ._models_py3 import ImageReference + from ._models_py3 import ImageStorageProfile + from ._models_py3 import ImageUpdate from ._models_py3 import InnerError from ._models_py3 import InstanceSku + from ._models_py3 import InstanceViewStatus from ._models_py3 import InstanceViewStatusesSummary + from ._models_py3 import KeyVaultKeyReference + from ._models_py3 import KeyVaultSecretReference + from ._models_py3 import LastPatchInstallationSummary + from ._models_py3 import LinuxConfiguration + from ._models_py3 import LinuxParameters + from ._models_py3 import LinuxPatchSettings + from ._models_py3 import ListUsagesResult from ._models_py3 import LoadBalancerConfiguration from ._models_py3 import LoadBalancerConfigurationProperties from ._models_py3 import LoadBalancerFrontendIPConfiguration from ._models_py3 import LoadBalancerFrontendIPConfigurationProperties + from ._models_py3 import LogAnalyticsInputBase + from ._models_py3 import LogAnalyticsOperationResult + from ._models_py3 import LogAnalyticsOutput + from ._models_py3 import MaintenanceRedeployStatus + from ._models_py3 import ManagedDiskParameters + from ._models_py3 import NetworkInterfaceReference + from ._models_py3 import NetworkProfile + from ._models_py3 import OSDisk + from ._models_py3 import OSDiskImage from ._models_py3 import OSFamily from ._models_py3 import OSFamilyListResult from ._models_py3 import OSFamilyProperties + from ._models_py3 import OSProfile from ._models_py3 import OSVersion from ._models_py3 import OSVersionListResult from ._models_py3 import OSVersionProperties from ._models_py3 import OSVersionPropertiesBase + from ._models_py3 import OrchestrationServiceStateInput + from ._models_py3 import OrchestrationServiceSummary + from ._models_py3 import PatchInstallationDetail + from ._models_py3 import PatchSettings + from ._models_py3 import Plan + from ._models_py3 import ProximityPlacementGroup + from ._models_py3 import ProximityPlacementGroupListResult + from ._models_py3 import ProximityPlacementGroupUpdate + from ._models_py3 import ProxyResource + from ._models_py3 import PublicIPAddressSku + from ._models_py3 import PurchasePlan + from ._models_py3 import RecoveryWalkResponse + from ._models_py3 import RequestRateByIntervalInput + from ._models_py3 import Resource from ._models_py3 import ResourceInstanceViewStatus + from ._models_py3 import RestorePoint + from ._models_py3 import RestorePointCollection + from ._models_py3 import RestorePointCollectionListResult + from ._models_py3 import RestorePointCollectionSourceProperties + from ._models_py3 import RestorePointCollectionUpdate + from ._models_py3 import RestorePointProvisioningDetails + from ._models_py3 import RestorePointSourceMetadata + from ._models_py3 import RestorePointSourceVMDataDisk + from ._models_py3 import RestorePointSourceVMOSDisk + from ._models_py3 import RestorePointSourceVMStorageProfile + from ._models_py3 import RetrieveBootDiagnosticsDataResult from ._models_py3 import RoleInstance from ._models_py3 import RoleInstanceListResult from ._models_py3 import RoleInstanceNetworkProfile from ._models_py3 import RoleInstanceProperties from ._models_py3 import RoleInstanceView from ._models_py3 import RoleInstances + from ._models_py3 import RollbackStatusInfo + from ._models_py3 import RollingUpgradePolicy + from ._models_py3 import RollingUpgradeProgressInfo + from ._models_py3 import RollingUpgradeRunningStatus + from ._models_py3 import RollingUpgradeStatusInfo + from ._models_py3 import RunCommandDocument + from ._models_py3 import RunCommandDocumentBase + from ._models_py3 import RunCommandInput + from ._models_py3 import RunCommandInputParameter + from ._models_py3 import RunCommandListResult + from ._models_py3 import RunCommandParameterDefinition + from ._models_py3 import RunCommandResult + from ._models_py3 import ScaleInPolicy + from ._models_py3 import ScheduledEventsProfile + from ._models_py3 import SecurityProfile + from ._models_py3 import Sku + from ._models_py3 import SshConfiguration + from ._models_py3 import SshPublicKey + from ._models_py3 import SshPublicKeyGenerateKeyPairResult + from ._models_py3 import SshPublicKeyResource + from ._models_py3 import SshPublicKeyUpdateResource + from ._models_py3 import SshPublicKeysGroupListResult from ._models_py3 import StatusCodeCount + from ._models_py3 import StorageProfile from ._models_py3 import SubResource + from ._models_py3 import SubResourceReadOnly + from ._models_py3 import SubResourceWithColocationStatus + from ._models_py3 import TerminateNotificationProfile + from ._models_py3 import ThrottledRequestsInput + from ._models_py3 import UefiSettings from ._models_py3 import UpdateDomain from ._models_py3 import UpdateDomainListResult + from ._models_py3 import UpdateResource + from ._models_py3 import UpgradeOperationHistoricalStatusInfo + from ._models_py3 import UpgradeOperationHistoricalStatusInfoProperties + from ._models_py3 import UpgradeOperationHistoryStatus + from ._models_py3 import UpgradePolicy + from ._models_py3 import Usage + from ._models_py3 import UsageName + from ._models_py3 import UserAssignedIdentitiesValue + from ._models_py3 import VMScaleSetConvertToSinglePlacementGroupInput + from ._models_py3 import VaultCertificate + from ._models_py3 import VaultSecretGroup + from ._models_py3 import VirtualHardDisk + from ._models_py3 import VirtualMachine + from ._models_py3 import VirtualMachineAgentInstanceView + from ._models_py3 import VirtualMachineAssessPatchesResult + from ._models_py3 import VirtualMachineCaptureParameters + from ._models_py3 import VirtualMachineCaptureResult + from ._models_py3 import VirtualMachineExtension + from ._models_py3 import VirtualMachineExtensionHandlerInstanceView + from ._models_py3 import VirtualMachineExtensionImage + from ._models_py3 import VirtualMachineExtensionInstanceView + from ._models_py3 import VirtualMachineExtensionUpdate + from ._models_py3 import VirtualMachineExtensionsListResult + from ._models_py3 import VirtualMachineHealthStatus + from ._models_py3 import VirtualMachineIdentity + from ._models_py3 import VirtualMachineImage + from ._models_py3 import VirtualMachineImageFeature + from ._models_py3 import VirtualMachineImageResource + from ._models_py3 import VirtualMachineInstallPatchesParameters + from ._models_py3 import VirtualMachineInstallPatchesResult + from ._models_py3 import VirtualMachineInstanceView + from ._models_py3 import VirtualMachineIpTag + from ._models_py3 import VirtualMachineListResult + from ._models_py3 import VirtualMachineNetworkInterfaceConfiguration + from ._models_py3 import VirtualMachineNetworkInterfaceDnsSettingsConfiguration + from ._models_py3 import VirtualMachineNetworkInterfaceIPConfiguration + from ._models_py3 import VirtualMachinePatchStatus + from ._models_py3 import VirtualMachinePublicIPAddressConfiguration + from ._models_py3 import VirtualMachinePublicIPAddressDnsSettingsConfiguration + from ._models_py3 import VirtualMachineReimageParameters + from ._models_py3 import VirtualMachineRunCommand + from ._models_py3 import VirtualMachineRunCommandInstanceView + from ._models_py3 import VirtualMachineRunCommandScriptSource + from ._models_py3 import VirtualMachineRunCommandUpdate + from ._models_py3 import VirtualMachineRunCommandsListResult + from ._models_py3 import VirtualMachineScaleSet + from ._models_py3 import VirtualMachineScaleSetDataDisk + from ._models_py3 import VirtualMachineScaleSetExtension + from ._models_py3 import VirtualMachineScaleSetExtensionListResult + from ._models_py3 import VirtualMachineScaleSetExtensionProfile + from ._models_py3 import VirtualMachineScaleSetExtensionUpdate + from ._models_py3 import VirtualMachineScaleSetIPConfiguration + from ._models_py3 import VirtualMachineScaleSetIdentity + from ._models_py3 import VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue + from ._models_py3 import VirtualMachineScaleSetInstanceView + from ._models_py3 import VirtualMachineScaleSetInstanceViewStatusesSummary + from ._models_py3 import VirtualMachineScaleSetIpTag + from ._models_py3 import VirtualMachineScaleSetListOSUpgradeHistory + from ._models_py3 import VirtualMachineScaleSetListResult + from ._models_py3 import VirtualMachineScaleSetListSkusResult + from ._models_py3 import VirtualMachineScaleSetListWithLinkResult + from ._models_py3 import VirtualMachineScaleSetManagedDiskParameters + from ._models_py3 import VirtualMachineScaleSetNetworkConfiguration + from ._models_py3 import VirtualMachineScaleSetNetworkConfigurationDnsSettings + from ._models_py3 import VirtualMachineScaleSetNetworkProfile + from ._models_py3 import VirtualMachineScaleSetOSDisk + from ._models_py3 import VirtualMachineScaleSetOSProfile + from ._models_py3 import VirtualMachineScaleSetPublicIPAddressConfiguration + from ._models_py3 import VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + from ._models_py3 import VirtualMachineScaleSetReimageParameters + from ._models_py3 import VirtualMachineScaleSetSku + from ._models_py3 import VirtualMachineScaleSetSkuCapacity + from ._models_py3 import VirtualMachineScaleSetStorageProfile + from ._models_py3 import VirtualMachineScaleSetUpdate + from ._models_py3 import VirtualMachineScaleSetUpdateIPConfiguration + from ._models_py3 import VirtualMachineScaleSetUpdateNetworkConfiguration + from ._models_py3 import VirtualMachineScaleSetUpdateNetworkProfile + from ._models_py3 import VirtualMachineScaleSetUpdateOSDisk + from ._models_py3 import VirtualMachineScaleSetUpdateOSProfile + from ._models_py3 import VirtualMachineScaleSetUpdatePublicIPAddressConfiguration + from ._models_py3 import VirtualMachineScaleSetUpdateStorageProfile + from ._models_py3 import VirtualMachineScaleSetUpdateVMProfile + from ._models_py3 import VirtualMachineScaleSetVM + from ._models_py3 import VirtualMachineScaleSetVMExtension + from ._models_py3 import VirtualMachineScaleSetVMExtensionUpdate + from ._models_py3 import VirtualMachineScaleSetVMExtensionsListResult + from ._models_py3 import VirtualMachineScaleSetVMExtensionsSummary + from ._models_py3 import VirtualMachineScaleSetVMInstanceIDs + from ._models_py3 import VirtualMachineScaleSetVMInstanceRequiredIDs + from ._models_py3 import VirtualMachineScaleSetVMInstanceView + from ._models_py3 import VirtualMachineScaleSetVMListResult + from ._models_py3 import VirtualMachineScaleSetVMNetworkProfileConfiguration + from ._models_py3 import VirtualMachineScaleSetVMProfile + from ._models_py3 import VirtualMachineScaleSetVMProtectionPolicy + from ._models_py3 import VirtualMachineScaleSetVMReimageParameters + from ._models_py3 import VirtualMachineSize + from ._models_py3 import VirtualMachineSizeListResult + from ._models_py3 import VirtualMachineSoftwarePatchProperties + from ._models_py3 import VirtualMachineStatusCodeCount + from ._models_py3 import VirtualMachineUpdate + from ._models_py3 import WinRMConfiguration + from ._models_py3 import WinRMListener + from ._models_py3 import WindowsConfiguration + from ._models_py3 import WindowsParameters except (SyntaxError, ImportError): + from ._models import AdditionalCapabilities # type: ignore + from ._models import AdditionalUnattendContent # type: ignore + from ._models import ApiEntityReference # type: ignore from ._models import ApiError # type: ignore from ._models import ApiErrorBase # type: ignore + from ._models import AutomaticOSUpgradePolicy # type: ignore + from ._models import AutomaticOSUpgradeProperties # type: ignore + from ._models import AutomaticRepairsPolicy # type: ignore + from ._models import AvailabilitySet # type: ignore + from ._models import AvailabilitySetListResult # type: ignore + from ._models import AvailabilitySetUpdate # type: ignore + from ._models import AvailablePatchSummary # type: ignore + from ._models import BillingProfile # type: ignore + from ._models import BootDiagnostics # type: ignore + from ._models import BootDiagnosticsInstanceView # type: ignore from ._models import CloudService # type: ignore from ._models import CloudServiceExtensionProfile # type: ignore from ._models import CloudServiceExtensionProperties # type: ignore @@ -74,41 +306,320 @@ from ._models import CloudServiceVaultAndSecretReference # type: ignore from ._models import CloudServiceVaultCertificate # type: ignore from ._models import CloudServiceVaultSecretGroup # type: ignore + from ._models import ComputeOperationListResult # type: ignore + from ._models import ComputeOperationValue # type: ignore + from ._models import DataDisk # type: ignore + from ._models import DataDiskImage # type: ignore + from ._models import DedicatedHost # type: ignore + from ._models import DedicatedHostAllocatableVM # type: ignore + from ._models import DedicatedHostAvailableCapacity # type: ignore + from ._models import DedicatedHostGroup # type: ignore + from ._models import DedicatedHostGroupInstanceView # type: ignore + from ._models import DedicatedHostGroupListResult # type: ignore + from ._models import DedicatedHostGroupUpdate # type: ignore + from ._models import DedicatedHostInstanceView # type: ignore + from ._models import DedicatedHostInstanceViewWithName # type: ignore + from ._models import DedicatedHostListResult # type: ignore + from ._models import DedicatedHostUpdate # type: ignore + from ._models import DiagnosticsProfile # type: ignore + from ._models import DiffDiskSettings # type: ignore + from ._models import DisallowedConfiguration # type: ignore + from ._models import DiskEncryptionSetParameters # type: ignore + from ._models import DiskEncryptionSettings # type: ignore + from ._models import DiskInstanceView # type: ignore + from ._models import ExtendedLocation # type: ignore from ._models import Extension # type: ignore + from ._models import HardwareProfile # type: ignore + from ._models import Image # type: ignore + from ._models import ImageDataDisk # type: ignore + from ._models import ImageDisk # type: ignore + from ._models import ImageListResult # type: ignore + from ._models import ImageOSDisk # type: ignore + from ._models import ImageReference # type: ignore + from ._models import ImageStorageProfile # type: ignore + from ._models import ImageUpdate # type: ignore from ._models import InnerError # type: ignore from ._models import InstanceSku # type: ignore + from ._models import InstanceViewStatus # type: ignore from ._models import InstanceViewStatusesSummary # type: ignore + from ._models import KeyVaultKeyReference # type: ignore + from ._models import KeyVaultSecretReference # type: ignore + from ._models import LastPatchInstallationSummary # type: ignore + from ._models import LinuxConfiguration # type: ignore + from ._models import LinuxParameters # type: ignore + from ._models import LinuxPatchSettings # type: ignore + from ._models import ListUsagesResult # type: ignore from ._models import LoadBalancerConfiguration # type: ignore from ._models import LoadBalancerConfigurationProperties # type: ignore from ._models import LoadBalancerFrontendIPConfiguration # type: ignore from ._models import LoadBalancerFrontendIPConfigurationProperties # type: ignore + from ._models import LogAnalyticsInputBase # type: ignore + from ._models import LogAnalyticsOperationResult # type: ignore + from ._models import LogAnalyticsOutput # type: ignore + from ._models import MaintenanceRedeployStatus # type: ignore + from ._models import ManagedDiskParameters # type: ignore + from ._models import NetworkInterfaceReference # type: ignore + from ._models import NetworkProfile # type: ignore + from ._models import OSDisk # type: ignore + from ._models import OSDiskImage # type: ignore from ._models import OSFamily # type: ignore from ._models import OSFamilyListResult # type: ignore from ._models import OSFamilyProperties # type: ignore + from ._models import OSProfile # type: ignore from ._models import OSVersion # type: ignore from ._models import OSVersionListResult # type: ignore from ._models import OSVersionProperties # type: ignore from ._models import OSVersionPropertiesBase # type: ignore + from ._models import OrchestrationServiceStateInput # type: ignore + from ._models import OrchestrationServiceSummary # type: ignore + from ._models import PatchInstallationDetail # type: ignore + from ._models import PatchSettings # type: ignore + from ._models import Plan # type: ignore + from ._models import ProximityPlacementGroup # type: ignore + from ._models import ProximityPlacementGroupListResult # type: ignore + from ._models import ProximityPlacementGroupUpdate # type: ignore + from ._models import ProxyResource # type: ignore + from ._models import PublicIPAddressSku # type: ignore + from ._models import PurchasePlan # type: ignore + from ._models import RecoveryWalkResponse # type: ignore + from ._models import RequestRateByIntervalInput # type: ignore + from ._models import Resource # type: ignore from ._models import ResourceInstanceViewStatus # type: ignore + from ._models import RestorePoint # type: ignore + from ._models import RestorePointCollection # type: ignore + from ._models import RestorePointCollectionListResult # type: ignore + from ._models import RestorePointCollectionSourceProperties # type: ignore + from ._models import RestorePointCollectionUpdate # type: ignore + from ._models import RestorePointProvisioningDetails # type: ignore + from ._models import RestorePointSourceMetadata # type: ignore + from ._models import RestorePointSourceVMDataDisk # type: ignore + from ._models import RestorePointSourceVMOSDisk # type: ignore + from ._models import RestorePointSourceVMStorageProfile # type: ignore + from ._models import RetrieveBootDiagnosticsDataResult # type: ignore from ._models import RoleInstance # type: ignore from ._models import RoleInstanceListResult # type: ignore from ._models import RoleInstanceNetworkProfile # type: ignore from ._models import RoleInstanceProperties # type: ignore from ._models import RoleInstanceView # type: ignore from ._models import RoleInstances # type: ignore + from ._models import RollbackStatusInfo # type: ignore + from ._models import RollingUpgradePolicy # type: ignore + from ._models import RollingUpgradeProgressInfo # type: ignore + from ._models import RollingUpgradeRunningStatus # type: ignore + from ._models import RollingUpgradeStatusInfo # type: ignore + from ._models import RunCommandDocument # type: ignore + from ._models import RunCommandDocumentBase # type: ignore + from ._models import RunCommandInput # type: ignore + from ._models import RunCommandInputParameter # type: ignore + from ._models import RunCommandListResult # type: ignore + from ._models import RunCommandParameterDefinition # type: ignore + from ._models import RunCommandResult # type: ignore + from ._models import ScaleInPolicy # type: ignore + from ._models import ScheduledEventsProfile # type: ignore + from ._models import SecurityProfile # type: ignore + from ._models import Sku # type: ignore + from ._models import SshConfiguration # type: ignore + from ._models import SshPublicKey # type: ignore + from ._models import SshPublicKeyGenerateKeyPairResult # type: ignore + from ._models import SshPublicKeyResource # type: ignore + from ._models import SshPublicKeyUpdateResource # type: ignore + from ._models import SshPublicKeysGroupListResult # type: ignore from ._models import StatusCodeCount # type: ignore + from ._models import StorageProfile # type: ignore from ._models import SubResource # type: ignore + from ._models import SubResourceReadOnly # type: ignore + from ._models import SubResourceWithColocationStatus # type: ignore + from ._models import TerminateNotificationProfile # type: ignore + from ._models import ThrottledRequestsInput # type: ignore + from ._models import UefiSettings # type: ignore from ._models import UpdateDomain # type: ignore from ._models import UpdateDomainListResult # type: ignore + from ._models import UpdateResource # type: ignore + from ._models import UpgradeOperationHistoricalStatusInfo # type: ignore + from ._models import UpgradeOperationHistoricalStatusInfoProperties # type: ignore + from ._models import UpgradeOperationHistoryStatus # type: ignore + from ._models import UpgradePolicy # type: ignore + from ._models import Usage # type: ignore + from ._models import UsageName # type: ignore + from ._models import UserAssignedIdentitiesValue # type: ignore + from ._models import VMScaleSetConvertToSinglePlacementGroupInput # type: ignore + from ._models import VaultCertificate # type: ignore + from ._models import VaultSecretGroup # type: ignore + from ._models import VirtualHardDisk # type: ignore + from ._models import VirtualMachine # type: ignore + from ._models import VirtualMachineAgentInstanceView # type: ignore + from ._models import VirtualMachineAssessPatchesResult # type: ignore + from ._models import VirtualMachineCaptureParameters # type: ignore + from ._models import VirtualMachineCaptureResult # type: ignore + from ._models import VirtualMachineExtension # type: ignore + from ._models import VirtualMachineExtensionHandlerInstanceView # type: ignore + from ._models import VirtualMachineExtensionImage # type: ignore + from ._models import VirtualMachineExtensionInstanceView # type: ignore + from ._models import VirtualMachineExtensionUpdate # type: ignore + from ._models import VirtualMachineExtensionsListResult # type: ignore + from ._models import VirtualMachineHealthStatus # type: ignore + from ._models import VirtualMachineIdentity # type: ignore + from ._models import VirtualMachineImage # type: ignore + from ._models import VirtualMachineImageFeature # type: ignore + from ._models import VirtualMachineImageResource # type: ignore + from ._models import VirtualMachineInstallPatchesParameters # type: ignore + from ._models import VirtualMachineInstallPatchesResult # type: ignore + from ._models import VirtualMachineInstanceView # type: ignore + from ._models import VirtualMachineIpTag # type: ignore + from ._models import VirtualMachineListResult # type: ignore + from ._models import VirtualMachineNetworkInterfaceConfiguration # type: ignore + from ._models import VirtualMachineNetworkInterfaceDnsSettingsConfiguration # type: ignore + from ._models import VirtualMachineNetworkInterfaceIPConfiguration # type: ignore + from ._models import VirtualMachinePatchStatus # type: ignore + from ._models import VirtualMachinePublicIPAddressConfiguration # type: ignore + from ._models import VirtualMachinePublicIPAddressDnsSettingsConfiguration # type: ignore + from ._models import VirtualMachineReimageParameters # type: ignore + from ._models import VirtualMachineRunCommand # type: ignore + from ._models import VirtualMachineRunCommandInstanceView # type: ignore + from ._models import VirtualMachineRunCommandScriptSource # type: ignore + from ._models import VirtualMachineRunCommandUpdate # type: ignore + from ._models import VirtualMachineRunCommandsListResult # type: ignore + from ._models import VirtualMachineScaleSet # type: ignore + from ._models import VirtualMachineScaleSetDataDisk # type: ignore + from ._models import VirtualMachineScaleSetExtension # type: ignore + from ._models import VirtualMachineScaleSetExtensionListResult # type: ignore + from ._models import VirtualMachineScaleSetExtensionProfile # type: ignore + from ._models import VirtualMachineScaleSetExtensionUpdate # type: ignore + from ._models import VirtualMachineScaleSetIPConfiguration # type: ignore + from ._models import VirtualMachineScaleSetIdentity # type: ignore + from ._models import VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue # type: ignore + from ._models import VirtualMachineScaleSetInstanceView # type: ignore + from ._models import VirtualMachineScaleSetInstanceViewStatusesSummary # type: ignore + from ._models import VirtualMachineScaleSetIpTag # type: ignore + from ._models import VirtualMachineScaleSetListOSUpgradeHistory # type: ignore + from ._models import VirtualMachineScaleSetListResult # type: ignore + from ._models import VirtualMachineScaleSetListSkusResult # type: ignore + from ._models import VirtualMachineScaleSetListWithLinkResult # type: ignore + from ._models import VirtualMachineScaleSetManagedDiskParameters # type: ignore + from ._models import VirtualMachineScaleSetNetworkConfiguration # type: ignore + from ._models import VirtualMachineScaleSetNetworkConfigurationDnsSettings # type: ignore + from ._models import VirtualMachineScaleSetNetworkProfile # type: ignore + from ._models import VirtualMachineScaleSetOSDisk # type: ignore + from ._models import VirtualMachineScaleSetOSProfile # type: ignore + from ._models import VirtualMachineScaleSetPublicIPAddressConfiguration # type: ignore + from ._models import VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings # type: ignore + from ._models import VirtualMachineScaleSetReimageParameters # type: ignore + from ._models import VirtualMachineScaleSetSku # type: ignore + from ._models import VirtualMachineScaleSetSkuCapacity # type: ignore + from ._models import VirtualMachineScaleSetStorageProfile # type: ignore + from ._models import VirtualMachineScaleSetUpdate # type: ignore + from ._models import VirtualMachineScaleSetUpdateIPConfiguration # type: ignore + from ._models import VirtualMachineScaleSetUpdateNetworkConfiguration # type: ignore + from ._models import VirtualMachineScaleSetUpdateNetworkProfile # type: ignore + from ._models import VirtualMachineScaleSetUpdateOSDisk # type: ignore + from ._models import VirtualMachineScaleSetUpdateOSProfile # type: ignore + from ._models import VirtualMachineScaleSetUpdatePublicIPAddressConfiguration # type: ignore + from ._models import VirtualMachineScaleSetUpdateStorageProfile # type: ignore + from ._models import VirtualMachineScaleSetUpdateVMProfile # type: ignore + from ._models import VirtualMachineScaleSetVM # type: ignore + from ._models import VirtualMachineScaleSetVMExtension # type: ignore + from ._models import VirtualMachineScaleSetVMExtensionUpdate # type: ignore + from ._models import VirtualMachineScaleSetVMExtensionsListResult # type: ignore + from ._models import VirtualMachineScaleSetVMExtensionsSummary # type: ignore + from ._models import VirtualMachineScaleSetVMInstanceIDs # type: ignore + from ._models import VirtualMachineScaleSetVMInstanceRequiredIDs # type: ignore + from ._models import VirtualMachineScaleSetVMInstanceView # type: ignore + from ._models import VirtualMachineScaleSetVMListResult # type: ignore + from ._models import VirtualMachineScaleSetVMNetworkProfileConfiguration # type: ignore + from ._models import VirtualMachineScaleSetVMProfile # type: ignore + from ._models import VirtualMachineScaleSetVMProtectionPolicy # type: ignore + from ._models import VirtualMachineScaleSetVMReimageParameters # type: ignore + from ._models import VirtualMachineSize # type: ignore + from ._models import VirtualMachineSizeListResult # type: ignore + from ._models import VirtualMachineSoftwarePatchProperties # type: ignore + from ._models import VirtualMachineStatusCodeCount # type: ignore + from ._models import VirtualMachineUpdate # type: ignore + from ._models import WinRMConfiguration # type: ignore + from ._models import WinRMListener # type: ignore + from ._models import WindowsConfiguration # type: ignore + from ._models import WindowsParameters # type: ignore from ._compute_management_client_enums import ( + AvailabilitySetSkuTypes, + CachingTypes, CloudServiceUpgradeMode, + ConsistencyModeTypes, + DedicatedHostLicenseTypes, + DeleteOptions, + DiffDiskOptions, + DiffDiskPlacement, + DiskCreateOptionTypes, + DiskDeleteOptionTypes, + DiskDetachOptionTypes, + ExecutionState, + ExpandTypesForGetVMScaleSets, + ExtendedLocationTypes, + HyperVGenerationType, + HyperVGenerationTypes, + IPVersion, + IPVersions, + InstanceViewTypes, + IntervalInMins, + LinuxPatchAssessmentMode, + LinuxVMGuestPatchMode, + MaintenanceOperationResultCodeTypes, + NetworkApiVersion, + OperatingSystemStateTypes, + OperatingSystemType, + OperatingSystemTypes, + OrchestrationMode, + OrchestrationServiceNames, + OrchestrationServiceState, + OrchestrationServiceStateAction, + PatchAssessmentState, + PatchInstallationState, + PatchOperationStatus, + ProtocolTypes, + ProximityPlacementGroupType, + PublicIPAddressSkuName, + PublicIPAddressSkuTier, + PublicIPAllocationMethod, + ResourceIdentityType, + RestorePointCollectionExpandOptions, + RollingUpgradeActionType, + RollingUpgradeStatusCode, + SettingNames, StatusLevelTypes, + StorageAccountTypes, + UpgradeMode, + UpgradeOperationInvoker, + UpgradeState, + VMGuestPatchClassificationLinux, + VMGuestPatchClassificationWindows, + VMGuestPatchRebootBehavior, + VMGuestPatchRebootSetting, + VMGuestPatchRebootStatus, + VirtualMachineEvictionPolicyTypes, + VirtualMachinePriorityTypes, + VirtualMachineScaleSetScaleInRules, + VirtualMachineScaleSetSkuScaleType, + VirtualMachineSizeTypes, + VmDiskTypes, + WindowsPatchAssessmentMode, + WindowsVMGuestPatchMode, ) __all__ = [ + 'AdditionalCapabilities', + 'AdditionalUnattendContent', + 'ApiEntityReference', 'ApiError', 'ApiErrorBase', + 'AutomaticOSUpgradePolicy', + 'AutomaticOSUpgradeProperties', + 'AutomaticRepairsPolicy', + 'AvailabilitySet', + 'AvailabilitySetListResult', + 'AvailabilitySetUpdate', + 'AvailablePatchSummary', + 'BillingProfile', + 'BootDiagnostics', + 'BootDiagnosticsInstanceView', 'CloudService', 'CloudServiceExtensionProfile', 'CloudServiceExtensionProperties', @@ -127,32 +638,298 @@ 'CloudServiceVaultAndSecretReference', 'CloudServiceVaultCertificate', 'CloudServiceVaultSecretGroup', + 'ComputeOperationListResult', + 'ComputeOperationValue', + 'DataDisk', + 'DataDiskImage', + 'DedicatedHost', + 'DedicatedHostAllocatableVM', + 'DedicatedHostAvailableCapacity', + 'DedicatedHostGroup', + 'DedicatedHostGroupInstanceView', + 'DedicatedHostGroupListResult', + 'DedicatedHostGroupUpdate', + 'DedicatedHostInstanceView', + 'DedicatedHostInstanceViewWithName', + 'DedicatedHostListResult', + 'DedicatedHostUpdate', + 'DiagnosticsProfile', + 'DiffDiskSettings', + 'DisallowedConfiguration', + 'DiskEncryptionSetParameters', + 'DiskEncryptionSettings', + 'DiskInstanceView', + 'ExtendedLocation', 'Extension', + 'HardwareProfile', + 'Image', + 'ImageDataDisk', + 'ImageDisk', + 'ImageListResult', + 'ImageOSDisk', + 'ImageReference', + 'ImageStorageProfile', + 'ImageUpdate', 'InnerError', 'InstanceSku', + 'InstanceViewStatus', 'InstanceViewStatusesSummary', + 'KeyVaultKeyReference', + 'KeyVaultSecretReference', + 'LastPatchInstallationSummary', + 'LinuxConfiguration', + 'LinuxParameters', + 'LinuxPatchSettings', + 'ListUsagesResult', 'LoadBalancerConfiguration', 'LoadBalancerConfigurationProperties', 'LoadBalancerFrontendIPConfiguration', 'LoadBalancerFrontendIPConfigurationProperties', + 'LogAnalyticsInputBase', + 'LogAnalyticsOperationResult', + 'LogAnalyticsOutput', + 'MaintenanceRedeployStatus', + 'ManagedDiskParameters', + 'NetworkInterfaceReference', + 'NetworkProfile', + 'OSDisk', + 'OSDiskImage', 'OSFamily', 'OSFamilyListResult', 'OSFamilyProperties', + 'OSProfile', 'OSVersion', 'OSVersionListResult', 'OSVersionProperties', 'OSVersionPropertiesBase', + 'OrchestrationServiceStateInput', + 'OrchestrationServiceSummary', + 'PatchInstallationDetail', + 'PatchSettings', + 'Plan', + 'ProximityPlacementGroup', + 'ProximityPlacementGroupListResult', + 'ProximityPlacementGroupUpdate', + 'ProxyResource', + 'PublicIPAddressSku', + 'PurchasePlan', + 'RecoveryWalkResponse', + 'RequestRateByIntervalInput', + 'Resource', 'ResourceInstanceViewStatus', + 'RestorePoint', + 'RestorePointCollection', + 'RestorePointCollectionListResult', + 'RestorePointCollectionSourceProperties', + 'RestorePointCollectionUpdate', + 'RestorePointProvisioningDetails', + 'RestorePointSourceMetadata', + 'RestorePointSourceVMDataDisk', + 'RestorePointSourceVMOSDisk', + 'RestorePointSourceVMStorageProfile', + 'RetrieveBootDiagnosticsDataResult', 'RoleInstance', 'RoleInstanceListResult', 'RoleInstanceNetworkProfile', 'RoleInstanceProperties', 'RoleInstanceView', 'RoleInstances', + 'RollbackStatusInfo', + 'RollingUpgradePolicy', + 'RollingUpgradeProgressInfo', + 'RollingUpgradeRunningStatus', + 'RollingUpgradeStatusInfo', + 'RunCommandDocument', + 'RunCommandDocumentBase', + 'RunCommandInput', + 'RunCommandInputParameter', + 'RunCommandListResult', + 'RunCommandParameterDefinition', + 'RunCommandResult', + 'ScaleInPolicy', + 'ScheduledEventsProfile', + 'SecurityProfile', + 'Sku', + 'SshConfiguration', + 'SshPublicKey', + 'SshPublicKeyGenerateKeyPairResult', + 'SshPublicKeyResource', + 'SshPublicKeyUpdateResource', + 'SshPublicKeysGroupListResult', 'StatusCodeCount', + 'StorageProfile', 'SubResource', + 'SubResourceReadOnly', + 'SubResourceWithColocationStatus', + 'TerminateNotificationProfile', + 'ThrottledRequestsInput', + 'UefiSettings', 'UpdateDomain', 'UpdateDomainListResult', + 'UpdateResource', + 'UpgradeOperationHistoricalStatusInfo', + 'UpgradeOperationHistoricalStatusInfoProperties', + 'UpgradeOperationHistoryStatus', + 'UpgradePolicy', + 'Usage', + 'UsageName', + 'UserAssignedIdentitiesValue', + 'VMScaleSetConvertToSinglePlacementGroupInput', + 'VaultCertificate', + 'VaultSecretGroup', + 'VirtualHardDisk', + 'VirtualMachine', + 'VirtualMachineAgentInstanceView', + 'VirtualMachineAssessPatchesResult', + 'VirtualMachineCaptureParameters', + 'VirtualMachineCaptureResult', + 'VirtualMachineExtension', + 'VirtualMachineExtensionHandlerInstanceView', + 'VirtualMachineExtensionImage', + 'VirtualMachineExtensionInstanceView', + 'VirtualMachineExtensionUpdate', + 'VirtualMachineExtensionsListResult', + 'VirtualMachineHealthStatus', + 'VirtualMachineIdentity', + 'VirtualMachineImage', + 'VirtualMachineImageFeature', + 'VirtualMachineImageResource', + 'VirtualMachineInstallPatchesParameters', + 'VirtualMachineInstallPatchesResult', + 'VirtualMachineInstanceView', + 'VirtualMachineIpTag', + 'VirtualMachineListResult', + 'VirtualMachineNetworkInterfaceConfiguration', + 'VirtualMachineNetworkInterfaceDnsSettingsConfiguration', + 'VirtualMachineNetworkInterfaceIPConfiguration', + 'VirtualMachinePatchStatus', + 'VirtualMachinePublicIPAddressConfiguration', + 'VirtualMachinePublicIPAddressDnsSettingsConfiguration', + 'VirtualMachineReimageParameters', + 'VirtualMachineRunCommand', + 'VirtualMachineRunCommandInstanceView', + 'VirtualMachineRunCommandScriptSource', + 'VirtualMachineRunCommandUpdate', + 'VirtualMachineRunCommandsListResult', + 'VirtualMachineScaleSet', + 'VirtualMachineScaleSetDataDisk', + 'VirtualMachineScaleSetExtension', + 'VirtualMachineScaleSetExtensionListResult', + 'VirtualMachineScaleSetExtensionProfile', + 'VirtualMachineScaleSetExtensionUpdate', + 'VirtualMachineScaleSetIPConfiguration', + 'VirtualMachineScaleSetIdentity', + 'VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue', + 'VirtualMachineScaleSetInstanceView', + 'VirtualMachineScaleSetInstanceViewStatusesSummary', + 'VirtualMachineScaleSetIpTag', + 'VirtualMachineScaleSetListOSUpgradeHistory', + 'VirtualMachineScaleSetListResult', + 'VirtualMachineScaleSetListSkusResult', + 'VirtualMachineScaleSetListWithLinkResult', + 'VirtualMachineScaleSetManagedDiskParameters', + 'VirtualMachineScaleSetNetworkConfiguration', + 'VirtualMachineScaleSetNetworkConfigurationDnsSettings', + 'VirtualMachineScaleSetNetworkProfile', + 'VirtualMachineScaleSetOSDisk', + 'VirtualMachineScaleSetOSProfile', + 'VirtualMachineScaleSetPublicIPAddressConfiguration', + 'VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings', + 'VirtualMachineScaleSetReimageParameters', + 'VirtualMachineScaleSetSku', + 'VirtualMachineScaleSetSkuCapacity', + 'VirtualMachineScaleSetStorageProfile', + 'VirtualMachineScaleSetUpdate', + 'VirtualMachineScaleSetUpdateIPConfiguration', + 'VirtualMachineScaleSetUpdateNetworkConfiguration', + 'VirtualMachineScaleSetUpdateNetworkProfile', + 'VirtualMachineScaleSetUpdateOSDisk', + 'VirtualMachineScaleSetUpdateOSProfile', + 'VirtualMachineScaleSetUpdatePublicIPAddressConfiguration', + 'VirtualMachineScaleSetUpdateStorageProfile', + 'VirtualMachineScaleSetUpdateVMProfile', + 'VirtualMachineScaleSetVM', + 'VirtualMachineScaleSetVMExtension', + 'VirtualMachineScaleSetVMExtensionUpdate', + 'VirtualMachineScaleSetVMExtensionsListResult', + 'VirtualMachineScaleSetVMExtensionsSummary', + 'VirtualMachineScaleSetVMInstanceIDs', + 'VirtualMachineScaleSetVMInstanceRequiredIDs', + 'VirtualMachineScaleSetVMInstanceView', + 'VirtualMachineScaleSetVMListResult', + 'VirtualMachineScaleSetVMNetworkProfileConfiguration', + 'VirtualMachineScaleSetVMProfile', + 'VirtualMachineScaleSetVMProtectionPolicy', + 'VirtualMachineScaleSetVMReimageParameters', + 'VirtualMachineSize', + 'VirtualMachineSizeListResult', + 'VirtualMachineSoftwarePatchProperties', + 'VirtualMachineStatusCodeCount', + 'VirtualMachineUpdate', + 'WinRMConfiguration', + 'WinRMListener', + 'WindowsConfiguration', + 'WindowsParameters', + 'AvailabilitySetSkuTypes', + 'CachingTypes', 'CloudServiceUpgradeMode', + 'ConsistencyModeTypes', + 'DedicatedHostLicenseTypes', + 'DeleteOptions', + 'DiffDiskOptions', + 'DiffDiskPlacement', + 'DiskCreateOptionTypes', + 'DiskDeleteOptionTypes', + 'DiskDetachOptionTypes', + 'ExecutionState', + 'ExpandTypesForGetVMScaleSets', + 'ExtendedLocationTypes', + 'HyperVGenerationType', + 'HyperVGenerationTypes', + 'IPVersion', + 'IPVersions', + 'InstanceViewTypes', + 'IntervalInMins', + 'LinuxPatchAssessmentMode', + 'LinuxVMGuestPatchMode', + 'MaintenanceOperationResultCodeTypes', + 'NetworkApiVersion', + 'OperatingSystemStateTypes', + 'OperatingSystemType', + 'OperatingSystemTypes', + 'OrchestrationMode', + 'OrchestrationServiceNames', + 'OrchestrationServiceState', + 'OrchestrationServiceStateAction', + 'PatchAssessmentState', + 'PatchInstallationState', + 'PatchOperationStatus', + 'ProtocolTypes', + 'ProximityPlacementGroupType', + 'PublicIPAddressSkuName', + 'PublicIPAddressSkuTier', + 'PublicIPAllocationMethod', + 'ResourceIdentityType', + 'RestorePointCollectionExpandOptions', + 'RollingUpgradeActionType', + 'RollingUpgradeStatusCode', + 'SettingNames', 'StatusLevelTypes', + 'StorageAccountTypes', + 'UpgradeMode', + 'UpgradeOperationInvoker', + 'UpgradeState', + 'VMGuestPatchClassificationLinux', + 'VMGuestPatchClassificationWindows', + 'VMGuestPatchRebootBehavior', + 'VMGuestPatchRebootSetting', + 'VMGuestPatchRebootStatus', + 'VirtualMachineEvictionPolicyTypes', + 'VirtualMachinePriorityTypes', + 'VirtualMachineScaleSetScaleInRules', + 'VirtualMachineScaleSetSkuScaleType', + 'VirtualMachineSizeTypes', + 'VmDiskTypes', + 'WindowsPatchAssessmentMode', + 'WindowsVMGuestPatchMode', ] diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_compute_management_client_enums.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_compute_management_client_enums.py index 2335366377fd..6fe7ba392a9e 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_compute_management_client_enums.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_compute_management_client_enums.py @@ -26,6 +26,25 @@ def __getattr__(cls, name): raise AttributeError(name) +class AvailabilitySetSkuTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the sku of an Availability Set. Use 'Aligned' for virtual machines with managed disks + and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'. + """ + + CLASSIC = "Classic" + ALIGNED = "Aligned" + +class CachingTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values are: + :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage** + """ + + NONE = "None" + READ_ONLY = "ReadOnly" + READ_WRITE = "ReadWrite" + class CloudServiceUpgradeMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated @@ -41,6 +60,356 @@ class CloudServiceUpgradeMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum MANUAL = "Manual" SIMULTANEOUS = "Simultaneous" +class ConsistencyModeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Gets the consistency mode for the restore point. Please refer to https://aka.ms/RestorePoints + for more details. + """ + + CRASH_CONSISTENT = "CrashConsistent" + FILE_SYSTEM_CONSISTENT = "FileSystemConsistent" + APPLICATION_CONSISTENT = "ApplicationConsistent" + +class DedicatedHostLicenseTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the software license type that will be applied to the VMs deployed on the dedicated + host. :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **None** + :code:`
    `:code:`
    ` **Windows_Server_Hybrid** :code:`
    `:code:`
    ` + **Windows_Server_Perpetual** :code:`
    `:code:`
    ` Default: **None** + """ + + NONE = "None" + WINDOWS_SERVER_HYBRID = "Windows_Server_Hybrid" + WINDOWS_SERVER_PERPETUAL = "Windows_Server_Perpetual" + +class DeleteOptions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specify what happens to the network interface when the VM is deleted + """ + + DELETE = "Delete" + DETACH = "Detach" + +class DiffDiskOptions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the ephemeral disk option for operating system disk. + """ + + LOCAL = "Local" + +class DiffDiskPlacement(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the ephemeral disk placement for operating system disk. This property can be used by + user in the request to choose the location i.e, cache disk or resource disk space for Ephemeral + OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer + Ephemeral OS disk size requirements for Windows VM at + https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements + and Linux VM at + https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements + """ + + CACHE_DISK = "CacheDisk" + RESOURCE_DISK = "ResourceDisk" + +class DiskCreateOptionTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies how the virtual machine should be created.:code:`
    `:code:`
    ` Possible values + are::code:`
    `:code:`
    ` **Attach** \u2013 This value is used when you are using a + specialized disk to create the virtual machine.:code:`
    `:code:`
    ` **FromImage** \u2013 + This value is used when you are using an image to create the virtual machine. If you are using + a platform image, you also use the imageReference element described above. If you are using a + marketplace image, you also use the plan element previously described. + """ + + FROM_IMAGE = "FromImage" + EMPTY = "Empty" + ATTACH = "Attach" + +class DiskDeleteOptionTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the behavior of the managed disk when the VM gets deleted i.e whether the managed + disk is deleted or detached. Supported values::code:`
    `:code:`
    ` **Delete** If this value + is used, the managed disk is deleted when VM gets deleted.:code:`
    `:code:`
    ` **Detach** + If this value is used, the managed disk is retained after VM gets + deleted.:code:`
    `:code:`
    ` Minimum api-version: 2021-03-01 + """ + + DELETE = "Delete" + DETACH = "Detach" + +class DiskDetachOptionTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the detach behavior to be used while detaching a disk or which is already in the + process of detachment from the virtual machine. Supported values: **ForceDetach**. + :code:`
    `:code:`
    ` detachOption: **ForceDetach** is applicable only for managed data + disks. If a previous detachment attempt of the data disk did not complete due to an unexpected + failure from the virtual machine and the disk is still not released then use force-detach as a + last resort option to detach the disk forcibly from the VM. All writes might not have been + flushed when using this detach behavior. :code:`
    `:code:`
    ` This feature is still in + preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk + update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. + """ + + FORCE_DETACH = "ForceDetach" + +class ExecutionState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Script execution status. + """ + + UNKNOWN = "Unknown" + PENDING = "Pending" + RUNNING = "Running" + FAILED = "Failed" + SUCCEEDED = "Succeeded" + TIMED_OUT = "TimedOut" + CANCELED = "Canceled" + +class ExpandTypesForGetVMScaleSets(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + USER_DATA = "userData" + +class ExtendedLocationTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of extendedLocation. + """ + + EDGE_ZONE = "EdgeZone" + +class HyperVGenerationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the HyperVGeneration Type associated with a resource + """ + + V1 = "V1" + V2 = "V2" + +class HyperVGenerationTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the HyperVGeneration Type + """ + + V1 = "V1" + V2 = "V2" + +class InstanceViewTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + INSTANCE_VIEW = "instanceView" + USER_DATA = "userData" + +class IntervalInMins(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Interval value in minutes used to create LogAnalytics call rate logs. + """ + + THREE_MINS = "ThreeMins" + FIVE_MINS = "FiveMins" + THIRTY_MINS = "ThirtyMins" + SIXTY_MINS = "SixtyMins" + +class IPVersion(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """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'. + """ + + I_PV4 = "IPv4" + I_PV6 = "IPv6" + +class IPVersions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """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'. + """ + + I_PV4 = "IPv4" + I_PV6 = "IPv6" + +class LinuxPatchAssessmentMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """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. :code:`
    `:code:`
    ` + **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property + provisionVMAgent must be true. + """ + + IMAGE_DEFAULT = "ImageDefault" + AUTOMATIC_BY_PLATFORM = "AutomaticByPlatform" + +class LinuxVMGuestPatchMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated + to virtual machine scale set with OrchestrationMode as Flexible.:code:`
    `:code:`
    ` + Possible values are::code:`
    `:code:`
    ` **ImageDefault** - The virtual machine's + default patching configuration is used. :code:`
    `:code:`
    ` **AutomaticByPlatform** - + The virtual machine will be automatically updated by the platform. The property + provisionVMAgent must be true + """ + + IMAGE_DEFAULT = "ImageDefault" + AUTOMATIC_BY_PLATFORM = "AutomaticByPlatform" + +class MaintenanceOperationResultCodeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The Last Maintenance Operation Result Code. + """ + + NONE = "None" + RETRY_LATER = "RetryLater" + MAINTENANCE_ABORTED = "MaintenanceAborted" + MAINTENANCE_COMPLETED = "MaintenanceCompleted" + +class NetworkApiVersion(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """specifies the Microsoft.Network API version used when creating networking resources in the + Network Interface Configurations + """ + + TWO_THOUSAND_TWENTY11_01 = "2020-11-01" + +class OperatingSystemStateTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The OS State. + """ + + #: Generalized image. Needs to be provisioned during deployment time. + GENERALIZED = "Generalized" + #: Specialized image. Contains already provisioned OS Disk. + SPECIALIZED = "Specialized" + +class OperatingSystemType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Gets the Operating System type. + """ + + WINDOWS = "Windows" + LINUX = "Linux" + +class OperatingSystemTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The operating system of the osDiskImage. + """ + + WINDOWS = "Windows" + LINUX = "Linux" + +class OrchestrationMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the orchestration mode for the virtual machine scale set. + """ + + UNIFORM = "Uniform" + FLEXIBLE = "Flexible" + +class OrchestrationServiceNames(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The name of the service. + """ + + AUTOMATIC_REPAIRS = "AutomaticRepairs" + DUMMY_ORCHESTRATION_SERVICE_NAME = "DummyOrchestrationServiceName" + +class OrchestrationServiceState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The current state of the service. + """ + + NOT_RUNNING = "NotRunning" + RUNNING = "Running" + SUSPENDED = "Suspended" + +class OrchestrationServiceStateAction(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The action to be performed. + """ + + RESUME = "Resume" + SUSPEND = "Suspend" + +class PatchAssessmentState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes the availability of a given patch. + """ + + UNKNOWN = "Unknown" + AVAILABLE = "Available" + +class PatchInstallationState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The state of the patch after the installation operation completed. + """ + + UNKNOWN = "Unknown" + INSTALLED = "Installed" + FAILED = "Failed" + EXCLUDED = "Excluded" + NOT_SELECTED = "NotSelected" + PENDING = "Pending" + +class PatchOperationStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The overall success or failure status of the operation. It remains "InProgress" until the + operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or + "CompletedWithWarnings." + """ + + UNKNOWN = "Unknown" + IN_PROGRESS = "InProgress" + FAILED = "Failed" + SUCCEEDED = "Succeeded" + COMPLETED_WITH_WARNINGS = "CompletedWithWarnings" + +class ProtocolTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the protocol of WinRM listener. :code:`
    `:code:`
    ` Possible values are: + :code:`
    `\ **http** :code:`
    `:code:`
    ` **https** + """ + + HTTP = "Http" + HTTPS = "Https" + +class ProximityPlacementGroupType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the type of the proximity placement group. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **Standard** : Co-locate resources within an Azure region or + Availability Zone. :code:`
    `:code:`
    ` **Ultra** : For future use. + """ + + STANDARD = "Standard" + ULTRA = "Ultra" + +class PublicIPAddressSkuName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specify public IP sku name + """ + + BASIC = "Basic" + STANDARD = "Standard" + +class PublicIPAddressSkuTier(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specify public IP sku tier + """ + + REGIONAL = "Regional" + GLOBAL_ENUM = "Global" + +class PublicIPAllocationMethod(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specify the public IP allocation type + """ + + DYNAMIC = "Dynamic" + STATIC = "Static" + +class ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity used for the virtual machine. The type 'SystemAssigned, 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. + """ + + SYSTEM_ASSIGNED = "SystemAssigned" + USER_ASSIGNED = "UserAssigned" + SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned, UserAssigned" + NONE = "None" + +class RestorePointCollectionExpandOptions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + RESTORE_POINTS = "restorePoints" + +class RollingUpgradeActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The last action performed on the rolling upgrade. + """ + + START = "Start" + CANCEL = "Cancel" + +class RollingUpgradeStatusCode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Code indicating the current status of the upgrade. + """ + + ROLLING_FORWARD = "RollingForward" + CANCELLED = "Cancelled" + COMPLETED = "Completed" + FAULTED = "Faulted" + +class SettingNames(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the name of the setting to which the content applies. Possible values are: + FirstLogonCommands and AutoLogon. + """ + + AUTO_LOGON = "AutoLogon" + FIRST_LOGON_COMMANDS = "FirstLogonCommands" + class StatusLevelTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The level code. """ @@ -48,3 +417,342 @@ class StatusLevelTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): INFO = "Info" WARNING = "Warning" ERROR = "Error" + +class StorageAccountTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the storage account type for the managed disk. Managed OS disk storage account type + can only be set when you create the scale set. NOTE: UltraSSD_LRS can only be used with data + disks. It cannot be used with OS Disk. Standard_LRS uses Standard HDD. StandardSSD_LRS uses + Standard SSD. Premium_LRS uses Premium SSD. UltraSSD_LRS uses Ultra disk. Premium_ZRS uses + Premium SSD zone redundant storage. StandardSSD_ZRS uses Standard SSD zone redundant storage. + For more information regarding disks supported for Windows Virtual Machines, refer to + https://docs.microsoft.com/azure/virtual-machines/windows/disks-types and, for Linux Virtual + Machines, refer to https://docs.microsoft.com/azure/virtual-machines/linux/disks-types + """ + + STANDARD_LRS = "Standard_LRS" + PREMIUM_LRS = "Premium_LRS" + STANDARD_SSD_LRS = "StandardSSD_LRS" + ULTRA_SSD_LRS = "UltraSSD_LRS" + PREMIUM_ZRS = "Premium_ZRS" + STANDARD_SSD_ZRS = "StandardSSD_ZRS" + +class UpgradeMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
    `:code:`
    ` Possible values are::code:`
    `:code:`
    ` **Manual** - You control the application + of updates to virtual machines in the scale set. You do this by using the manualUpgrade + action.:code:`
    `:code:`
    ` **Automatic** - All virtual machines in the scale set are + automatically updated at the same time. + """ + + AUTOMATIC = "Automatic" + MANUAL = "Manual" + ROLLING = "Rolling" + +class UpgradeOperationInvoker(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Invoker of the Upgrade Operation + """ + + UNKNOWN = "Unknown" + USER = "User" + PLATFORM = "Platform" + +class UpgradeState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Code indicating the current status of the upgrade. + """ + + ROLLING_FORWARD = "RollingForward" + CANCELLED = "Cancelled" + COMPLETED = "Completed" + FAULTED = "Faulted" + +class VirtualMachineEvictionPolicyTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the eviction policy for the Azure Spot VM/VMSS + """ + + DEALLOCATE = "Deallocate" + DELETE = "Delete" + +class VirtualMachinePriorityTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the priority for a standalone virtual machine or the virtual machines in the scale + set. :code:`
    `:code:`
    ` 'Low' enum will be deprecated in the future, please use 'Spot' as + the enum to deploy Azure Spot VM/VMSS. + """ + + REGULAR = "Regular" + LOW = "Low" + SPOT = "Spot" + +class VirtualMachineScaleSetScaleInRules(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + DEFAULT = "Default" + OLDEST_VM = "OldestVM" + NEWEST_VM = "NewestVM" + +class VirtualMachineScaleSetSkuScaleType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The scale type applicable to the sku. + """ + + AUTOMATIC = "Automatic" + NONE = "None" + +class VirtualMachineSizeTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the size of the virtual machine. :code:`
    `:code:`
    ` The enum data type is + currently deprecated and will be removed by December 23rd 2023. :code:`
    `:code:`
    ` + Recommended way to get the list of available sizes is using these APIs: + :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + `_ + :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region + `_ :code:`
    `:code:`
    ` + `List all available virtual machine sizes for resizing + `_. For more + information about virtual machine sizes, see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The + available VM sizes depend on region and availability set. + """ + + BASIC_A0 = "Basic_A0" + BASIC_A1 = "Basic_A1" + BASIC_A2 = "Basic_A2" + BASIC_A3 = "Basic_A3" + BASIC_A4 = "Basic_A4" + STANDARD_A0 = "Standard_A0" + STANDARD_A1 = "Standard_A1" + STANDARD_A2 = "Standard_A2" + STANDARD_A3 = "Standard_A3" + STANDARD_A4 = "Standard_A4" + STANDARD_A5 = "Standard_A5" + STANDARD_A6 = "Standard_A6" + STANDARD_A7 = "Standard_A7" + STANDARD_A8 = "Standard_A8" + STANDARD_A9 = "Standard_A9" + STANDARD_A10 = "Standard_A10" + STANDARD_A11 = "Standard_A11" + STANDARD_A1_V2 = "Standard_A1_v2" + STANDARD_A2_V2 = "Standard_A2_v2" + STANDARD_A4_V2 = "Standard_A4_v2" + STANDARD_A8_V2 = "Standard_A8_v2" + STANDARD_A2_M_V2 = "Standard_A2m_v2" + STANDARD_A4_M_V2 = "Standard_A4m_v2" + STANDARD_A8_M_V2 = "Standard_A8m_v2" + STANDARD_B1_S = "Standard_B1s" + STANDARD_B1_MS = "Standard_B1ms" + STANDARD_B2_S = "Standard_B2s" + STANDARD_B2_MS = "Standard_B2ms" + STANDARD_B4_MS = "Standard_B4ms" + STANDARD_B8_MS = "Standard_B8ms" + STANDARD_D1 = "Standard_D1" + STANDARD_D2 = "Standard_D2" + STANDARD_D3 = "Standard_D3" + STANDARD_D4 = "Standard_D4" + STANDARD_D11 = "Standard_D11" + STANDARD_D12 = "Standard_D12" + STANDARD_D13 = "Standard_D13" + STANDARD_D14 = "Standard_D14" + STANDARD_D1_V2 = "Standard_D1_v2" + STANDARD_D2_V2 = "Standard_D2_v2" + STANDARD_D3_V2 = "Standard_D3_v2" + STANDARD_D4_V2 = "Standard_D4_v2" + STANDARD_D5_V2 = "Standard_D5_v2" + STANDARD_D2_V3 = "Standard_D2_v3" + STANDARD_D4_V3 = "Standard_D4_v3" + STANDARD_D8_V3 = "Standard_D8_v3" + STANDARD_D16_V3 = "Standard_D16_v3" + STANDARD_D32_V3 = "Standard_D32_v3" + STANDARD_D64_V3 = "Standard_D64_v3" + STANDARD_D2_S_V3 = "Standard_D2s_v3" + STANDARD_D4_S_V3 = "Standard_D4s_v3" + STANDARD_D8_S_V3 = "Standard_D8s_v3" + STANDARD_D16_S_V3 = "Standard_D16s_v3" + STANDARD_D32_S_V3 = "Standard_D32s_v3" + STANDARD_D64_S_V3 = "Standard_D64s_v3" + STANDARD_D11_V2 = "Standard_D11_v2" + STANDARD_D12_V2 = "Standard_D12_v2" + STANDARD_D13_V2 = "Standard_D13_v2" + STANDARD_D14_V2 = "Standard_D14_v2" + STANDARD_D15_V2 = "Standard_D15_v2" + STANDARD_DS1 = "Standard_DS1" + STANDARD_DS2 = "Standard_DS2" + STANDARD_DS3 = "Standard_DS3" + STANDARD_DS4 = "Standard_DS4" + STANDARD_DS11 = "Standard_DS11" + STANDARD_DS12 = "Standard_DS12" + STANDARD_DS13 = "Standard_DS13" + STANDARD_DS14 = "Standard_DS14" + STANDARD_DS1_V2 = "Standard_DS1_v2" + STANDARD_DS2_V2 = "Standard_DS2_v2" + STANDARD_DS3_V2 = "Standard_DS3_v2" + STANDARD_DS4_V2 = "Standard_DS4_v2" + STANDARD_DS5_V2 = "Standard_DS5_v2" + STANDARD_DS11_V2 = "Standard_DS11_v2" + STANDARD_DS12_V2 = "Standard_DS12_v2" + STANDARD_DS13_V2 = "Standard_DS13_v2" + STANDARD_DS14_V2 = "Standard_DS14_v2" + STANDARD_DS15_V2 = "Standard_DS15_v2" + STANDARD_DS13_4_V2 = "Standard_DS13-4_v2" + STANDARD_DS13_2_V2 = "Standard_DS13-2_v2" + STANDARD_DS14_8_V2 = "Standard_DS14-8_v2" + STANDARD_DS14_4_V2 = "Standard_DS14-4_v2" + STANDARD_E2_V3 = "Standard_E2_v3" + STANDARD_E4_V3 = "Standard_E4_v3" + STANDARD_E8_V3 = "Standard_E8_v3" + STANDARD_E16_V3 = "Standard_E16_v3" + STANDARD_E32_V3 = "Standard_E32_v3" + STANDARD_E64_V3 = "Standard_E64_v3" + STANDARD_E2_S_V3 = "Standard_E2s_v3" + STANDARD_E4_S_V3 = "Standard_E4s_v3" + STANDARD_E8_S_V3 = "Standard_E8s_v3" + STANDARD_E16_S_V3 = "Standard_E16s_v3" + STANDARD_E32_S_V3 = "Standard_E32s_v3" + STANDARD_E64_S_V3 = "Standard_E64s_v3" + STANDARD_E32_16_V3 = "Standard_E32-16_v3" + STANDARD_E32_8_S_V3 = "Standard_E32-8s_v3" + STANDARD_E64_32_S_V3 = "Standard_E64-32s_v3" + STANDARD_E64_16_S_V3 = "Standard_E64-16s_v3" + STANDARD_F1 = "Standard_F1" + STANDARD_F2 = "Standard_F2" + STANDARD_F4 = "Standard_F4" + STANDARD_F8 = "Standard_F8" + STANDARD_F16 = "Standard_F16" + STANDARD_F1_S = "Standard_F1s" + STANDARD_F2_S = "Standard_F2s" + STANDARD_F4_S = "Standard_F4s" + STANDARD_F8_S = "Standard_F8s" + STANDARD_F16_S = "Standard_F16s" + STANDARD_F2_S_V2 = "Standard_F2s_v2" + STANDARD_F4_S_V2 = "Standard_F4s_v2" + STANDARD_F8_S_V2 = "Standard_F8s_v2" + STANDARD_F16_S_V2 = "Standard_F16s_v2" + STANDARD_F32_S_V2 = "Standard_F32s_v2" + STANDARD_F64_S_V2 = "Standard_F64s_v2" + STANDARD_F72_S_V2 = "Standard_F72s_v2" + STANDARD_G1 = "Standard_G1" + STANDARD_G2 = "Standard_G2" + STANDARD_G3 = "Standard_G3" + STANDARD_G4 = "Standard_G4" + STANDARD_G5 = "Standard_G5" + STANDARD_GS1 = "Standard_GS1" + STANDARD_GS2 = "Standard_GS2" + STANDARD_GS3 = "Standard_GS3" + STANDARD_GS4 = "Standard_GS4" + STANDARD_GS5 = "Standard_GS5" + STANDARD_GS4_8 = "Standard_GS4-8" + STANDARD_GS4_4 = "Standard_GS4-4" + STANDARD_GS5_16 = "Standard_GS5-16" + STANDARD_GS5_8 = "Standard_GS5-8" + STANDARD_H8 = "Standard_H8" + STANDARD_H16 = "Standard_H16" + STANDARD_H8_M = "Standard_H8m" + STANDARD_H16_M = "Standard_H16m" + STANDARD_H16_R = "Standard_H16r" + STANDARD_H16_MR = "Standard_H16mr" + STANDARD_L4_S = "Standard_L4s" + STANDARD_L8_S = "Standard_L8s" + STANDARD_L16_S = "Standard_L16s" + STANDARD_L32_S = "Standard_L32s" + STANDARD_M64_S = "Standard_M64s" + STANDARD_M64_MS = "Standard_M64ms" + STANDARD_M128_S = "Standard_M128s" + STANDARD_M128_MS = "Standard_M128ms" + STANDARD_M64_32_MS = "Standard_M64-32ms" + STANDARD_M64_16_MS = "Standard_M64-16ms" + STANDARD_M128_64_MS = "Standard_M128-64ms" + STANDARD_M128_32_MS = "Standard_M128-32ms" + STANDARD_NC6 = "Standard_NC6" + STANDARD_NC12 = "Standard_NC12" + STANDARD_NC24 = "Standard_NC24" + STANDARD_NC24_R = "Standard_NC24r" + STANDARD_NC6_S_V2 = "Standard_NC6s_v2" + STANDARD_NC12_S_V2 = "Standard_NC12s_v2" + STANDARD_NC24_S_V2 = "Standard_NC24s_v2" + STANDARD_NC24_RS_V2 = "Standard_NC24rs_v2" + STANDARD_NC6_S_V3 = "Standard_NC6s_v3" + STANDARD_NC12_S_V3 = "Standard_NC12s_v3" + STANDARD_NC24_S_V3 = "Standard_NC24s_v3" + STANDARD_NC24_RS_V3 = "Standard_NC24rs_v3" + STANDARD_ND6_S = "Standard_ND6s" + STANDARD_ND12_S = "Standard_ND12s" + STANDARD_ND24_S = "Standard_ND24s" + STANDARD_ND24_RS = "Standard_ND24rs" + STANDARD_NV6 = "Standard_NV6" + STANDARD_NV12 = "Standard_NV12" + STANDARD_NV24 = "Standard_NV24" + +class VmDiskTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """VM disk types which are disallowed. + """ + + NONE = "None" + UNMANAGED = "Unmanaged" + +class VMGuestPatchClassificationLinux(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + CRITICAL = "Critical" + SECURITY = "Security" + OTHER = "Other" + +class VMGuestPatchClassificationWindows(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + CRITICAL = "Critical" + SECURITY = "Security" + UPDATE_ROLL_UP = "UpdateRollUp" + FEATURE_PACK = "FeaturePack" + SERVICE_PACK = "ServicePack" + DEFINITION = "Definition" + TOOLS = "Tools" + UPDATES = "Updates" + +class VMGuestPatchRebootBehavior(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes the reboot requirements of the patch. + """ + + UNKNOWN = "Unknown" + NEVER_REBOOTS = "NeverReboots" + ALWAYS_REQUIRES_REBOOT = "AlwaysRequiresReboot" + CAN_REQUEST_REBOOT = "CanRequestReboot" + +class VMGuestPatchRebootSetting(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Defines when it is acceptable to reboot a VM during a software update operation. + """ + + IF_REQUIRED = "IfRequired" + NEVER = "Never" + ALWAYS = "Always" + +class VMGuestPatchRebootStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The reboot state of the VM following completion of the operation. + """ + + UNKNOWN = "Unknown" + NOT_NEEDED = "NotNeeded" + REQUIRED = "Required" + STARTED = "Started" + FAILED = "Failed" + COMPLETED = "Completed" + +class WindowsPatchAssessmentMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """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.:code:`
    `:code:`
    ` + **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property + provisionVMAgent must be true. + """ + + IMAGE_DEFAULT = "ImageDefault" + AUTOMATIC_BY_PLATFORM = "AutomaticByPlatform" + +class WindowsVMGuestPatchMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated + to virtual machine scale set with OrchestrationMode as Flexible.:code:`
    `:code:`
    ` + Possible values are::code:`
    `:code:`
    ` **Manual** - You control the application of + patches to a virtual machine. You do this by applying patches manually inside the VM. In this + mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates + must be false:code:`
    `:code:`
    ` **AutomaticByOS** - The virtual machine will + automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates + must be true. :code:`
    `:code:`
    ` **AutomaticByPlatform** - the virtual machine will + automatically updated by the platform. The properties provisionVMAgent and + WindowsConfiguration.enableAutomaticUpdates must be true + """ + + MANUAL = "Manual" + AUTOMATIC_BY_OS = "AutomaticByOS" + AUTOMATIC_BY_PLATFORM = "AutomaticByPlatform" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models.py index f3a67f641fb9..d3084c280f5c 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models.py @@ -9,6 +9,93 @@ import msrest.serialization +class AdditionalCapabilities(msrest.serialization.Model): + """Enables or disables a capability on the virtual machine or virtual machine scale set. + + :param ultra_ssd_enabled: The flag that enables or disables a capability to have one or more + managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with + storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale + set only if this property is enabled. + :type ultra_ssd_enabled: bool + """ + + _attribute_map = { + 'ultra_ssd_enabled': {'key': 'ultraSSDEnabled', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(AdditionalCapabilities, self).__init__(**kwargs) + self.ultra_ssd_enabled = kwargs.get('ultra_ssd_enabled', None) + + +class AdditionalUnattendContent(msrest.serialization.Model): + """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default + value: "OobeSystem". + :vartype pass_name: str + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :vartype component_name: str + :param setting_name: Specifies the name of the setting to which the content applies. Possible + values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", + "FirstLogonCommands". + :type setting_name: str or ~azure.mgmt.compute.v2021_03_01.models.SettingNames + :param 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. + :type content: str + """ + + _validation = { + 'pass_name': {'constant': True}, + 'component_name': {'constant': True}, + } + + _attribute_map = { + 'pass_name': {'key': 'passName', 'type': 'str'}, + 'component_name': {'key': 'componentName', 'type': 'str'}, + 'setting_name': {'key': 'settingName', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'str'}, + } + + pass_name = "OobeSystem" + component_name = "Microsoft-Windows-Shell-Setup" + + def __init__( + self, + **kwargs + ): + super(AdditionalUnattendContent, self).__init__(**kwargs) + self.setting_name = kwargs.get('setting_name', None) + self.content = kwargs.get('content', None) + + +class ApiEntityReference(msrest.serialization.Model): + """The API entity reference. + + :param id: The ARM resource id in the form of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ApiEntityReference, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + class ApiError(msrest.serialization.Model): """Api error. @@ -71,8 +158,91 @@ def __init__( self.target = kwargs.get('target', None) -class CloudService(msrest.serialization.Model): - """Describes the cloud service. +class AutomaticOSUpgradePolicy(msrest.serialization.Model): + """The configuration parameters used for performing automatic OS upgrade. + + :param enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be + applied to scale set instances in a rolling fashion when a newer version of the OS image + becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for + Windows based scale sets, `enableAutomaticUpdates + `_ + is automatically set to false and cannot be set to true. + :type enable_automatic_os_upgrade: bool + :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. + Default value is false. + :type disable_automatic_rollback: bool + """ + + _attribute_map = { + 'enable_automatic_os_upgrade': {'key': 'enableAutomaticOSUpgrade', 'type': 'bool'}, + 'disable_automatic_rollback': {'key': 'disableAutomaticRollback', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(AutomaticOSUpgradePolicy, self).__init__(**kwargs) + self.enable_automatic_os_upgrade = kwargs.get('enable_automatic_os_upgrade', None) + self.disable_automatic_rollback = kwargs.get('disable_automatic_rollback', None) + + +class AutomaticOSUpgradeProperties(msrest.serialization.Model): + """Describes automatic OS upgrade properties on the image. + + All required parameters must be populated in order to send to Azure. + + :param automatic_os_upgrade_supported: Required. Specifies whether automatic OS upgrade is + supported on the image. + :type automatic_os_upgrade_supported: bool + """ + + _validation = { + 'automatic_os_upgrade_supported': {'required': True}, + } + + _attribute_map = { + 'automatic_os_upgrade_supported': {'key': 'automaticOSUpgradeSupported', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(AutomaticOSUpgradeProperties, self).__init__(**kwargs) + self.automatic_os_upgrade_supported = kwargs['automatic_os_upgrade_supported'] + + +class AutomaticRepairsPolicy(msrest.serialization.Model): + """Specifies the configuration parameters for automatic repairs on the virtual machine scale set. + + :param enabled: Specifies whether automatic repairs should be enabled on the virtual machine + scale set. The default value is false. + :type enabled: bool + :param grace_period: The amount of time for which automatic repairs are suspended due to a + state change on VM. The grace time starts after the state change has completed. This helps + avoid premature or accidental repairs. The time duration should be specified in ISO 8601 + format. The minimum allowed grace period is 30 minutes (PT30M), which is also the default + value. The maximum allowed grace period is 90 minutes (PT90M). + :type grace_period: str + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'grace_period': {'key': 'gracePeriod', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AutomaticRepairsPolicy, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.grace_period = kwargs.get('grace_period', None) + + +class Resource(msrest.serialization.Model): + """The Resource model definition. Variables are only populated by the server, and will be ignored when sending a request. @@ -88,8 +258,6 @@ class CloudService(msrest.serialization.Model): :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param properties: Cloud service properties. - :type properties: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceProperties """ _validation = { @@ -105,193 +273,574 @@ class CloudService(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'CloudServiceProperties'}, } def __init__( self, **kwargs ): - super(CloudService, self).__init__(**kwargs) + super(Resource, self).__init__(**kwargs) self.id = None self.name = None self.type = None self.location = kwargs['location'] self.tags = kwargs.get('tags', None) - self.properties = kwargs.get('properties', None) -class CloudServiceExtensionProfile(msrest.serialization.Model): - """Describes a cloud service extension profile. +class AvailabilitySet(Resource): + """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 sets, see `Availability sets overview `_. :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Maintenance and updates for Virtual Machines in Azure `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. - :param extensions: List of extensions for the cloud service. - :type extensions: list[~azure.mgmt.compute.v2021_03_01.models.Extension] + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param sku: Sku of the availability set, only name is required to be set. See + 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'. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param platform_update_domain_count: Update Domain count. + :type platform_update_domain_count: int + :param platform_fault_domain_count: Fault Domain count. + :type platform_fault_domain_count: int + :param virtual_machines: A list of references to all virtual machines in the availability set. + :type virtual_machines: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param proximity_placement_group: Specifies information about the proximity placement group + that the availability set should be assigned to. :code:`
    `:code:`
    `Minimum api-version: + 2018-04-01. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :ivar statuses: The resource status information. + :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'statuses': {'readonly': True}, + } + _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'platform_update_domain_count': {'key': 'properties.platformUpdateDomainCount', 'type': 'int'}, + 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, + 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResource]'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + 'statuses': {'key': 'properties.statuses', 'type': '[InstanceViewStatus]'}, } def __init__( self, **kwargs ): - super(CloudServiceExtensionProfile, self).__init__(**kwargs) - self.extensions = kwargs.get('extensions', None) + super(AvailabilitySet, self).__init__(**kwargs) + self.sku = kwargs.get('sku', None) + self.platform_update_domain_count = kwargs.get('platform_update_domain_count', None) + self.platform_fault_domain_count = kwargs.get('platform_fault_domain_count', None) + self.virtual_machines = kwargs.get('virtual_machines', None) + self.proximity_placement_group = kwargs.get('proximity_placement_group', None) + self.statuses = None -class CloudServiceExtensionProperties(msrest.serialization.Model): - """Extension Properties. +class AvailabilitySetListResult(msrest.serialization.Model): + """The List Availability Set operation response. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :param publisher: The name of the extension handler publisher. - :type publisher: str - :param type: Specifies the type of the extension. - :type type: str - :param type_handler_version: Specifies the version of the extension. Specifies the version of - the extension. If this element is not specified or an asterisk (*) is used as the value, the - latest version of the extension is used. If the value is specified with a major version number - and an asterisk as the minor version number (X.), the latest minor version of the specified - major version is selected. If a major version number and a minor version number are specified - (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade - is performed on the role instance. - :type type_handler_version: str - :param auto_upgrade_minor_version: Explicitly specify whether platform can automatically - upgrade typeHandlerVersion to higher minor versions when they become available. - :type auto_upgrade_minor_version: bool - :param settings: Public settings for the extension. For JSON extensions, this is the JSON - settings for the extension. For XML Extension (like RDP), this is the XML setting for the - extension. - :type settings: str - :param protected_settings: Protected settings for the extension which are encrypted before sent - to the role instance. - :type protected_settings: str - :param protected_settings_from_key_vault: - :type protected_settings_from_key_vault: - ~azure.mgmt.compute.v2021_03_01.models.CloudServiceVaultAndSecretReference - :param force_update_tag: Tag to force apply the provided public and protected settings. - Changing the tag value allows for re-running the extension without changing any of the public - or protected settings. - If forceUpdateTag is not changed, updates to public or protected settings would still be - applied by the handler. - If neither forceUpdateTag nor any of public or protected settings change, extension would flow - to the role instance with the same sequence-number, and - it is up to handler implementation whether to re-run it or not. - :type force_update_tag: str - :ivar provisioning_state: The provisioning state, which only appears in the response. - :vartype provisioning_state: str - :param roles_applied_to: Optional list of roles to apply this extension. If property is not - specified or '*' is specified, extension is applied to all roles in the cloud service. - :type roles_applied_to: list[str] + :param value: Required. The list of availability sets. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.AvailabilitySet] + :param next_link: The URI to fetch the next page of AvailabilitySets. Call ListNext() with this + URI to fetch the next page of AvailabilitySets. + :type next_link: str """ _validation = { - 'provisioning_state': {'readonly': True}, + 'value': {'required': True}, } _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'}, - 'auto_upgrade_minor_version': {'key': 'autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'settings', 'type': 'str'}, - 'protected_settings': {'key': 'protectedSettings', 'type': 'str'}, - 'protected_settings_from_key_vault': {'key': 'protectedSettingsFromKeyVault', 'type': 'CloudServiceVaultAndSecretReference'}, - 'force_update_tag': {'key': 'forceUpdateTag', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'roles_applied_to': {'key': 'rolesAppliedTo', 'type': '[str]'}, + 'value': {'key': 'value', 'type': '[AvailabilitySet]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): - super(CloudServiceExtensionProperties, self).__init__(**kwargs) - self.publisher = kwargs.get('publisher', None) - self.type = kwargs.get('type', None) - self.type_handler_version = kwargs.get('type_handler_version', None) - self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) - self.settings = kwargs.get('settings', None) - self.protected_settings = kwargs.get('protected_settings', None) - self.protected_settings_from_key_vault = kwargs.get('protected_settings_from_key_vault', None) - self.force_update_tag = kwargs.get('force_update_tag', None) - self.provisioning_state = None - self.roles_applied_to = kwargs.get('roles_applied_to', None) + super(AvailabilitySetListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) -class CloudServiceInstanceView(msrest.serialization.Model): - """InstanceView of CloudService as a whole. +class UpdateResource(msrest.serialization.Model): + """The Update Resource model definition. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(UpdateResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + + +class AvailabilitySetUpdate(UpdateResource): + """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. - :param role_instance: Instance view statuses. - :type role_instance: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatusesSummary - :ivar sdk_version: The version of the SDK that was used to generate the package for the cloud - service. - :vartype sdk_version: str - :ivar private_ids: Specifies a list of unique identifiers generated internally for the cloud - service. :code:`
    `:code:`
    ` NOTE: If you are using Azure Diagnostics extension, this - property can be used as 'DeploymentId' for querying details. - :vartype private_ids: list[str] - :ivar statuses: - :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.ResourceInstanceViewStatus] + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param sku: Sku of the availability set. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param platform_update_domain_count: Update Domain count. + :type platform_update_domain_count: int + :param platform_fault_domain_count: Fault Domain count. + :type platform_fault_domain_count: int + :param virtual_machines: A list of references to all virtual machines in the availability set. + :type virtual_machines: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param proximity_placement_group: Specifies information about the proximity placement group + that the availability set should be assigned to. :code:`
    `:code:`
    `Minimum api-version: + 2018-04-01. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :ivar statuses: The resource status information. + :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] """ _validation = { - 'sdk_version': {'readonly': True}, - 'private_ids': {'readonly': True}, 'statuses': {'readonly': True}, } _attribute_map = { - 'role_instance': {'key': 'roleInstance', 'type': 'InstanceViewStatusesSummary'}, - 'sdk_version': {'key': 'sdkVersion', 'type': 'str'}, - 'private_ids': {'key': 'privateIds', 'type': '[str]'}, - 'statuses': {'key': 'statuses', 'type': '[ResourceInstanceViewStatus]'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'platform_update_domain_count': {'key': 'properties.platformUpdateDomainCount', 'type': 'int'}, + 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, + 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResource]'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + 'statuses': {'key': 'properties.statuses', 'type': '[InstanceViewStatus]'}, } def __init__( self, **kwargs ): - super(CloudServiceInstanceView, self).__init__(**kwargs) - self.role_instance = kwargs.get('role_instance', None) - self.sdk_version = None - self.private_ids = None + super(AvailabilitySetUpdate, self).__init__(**kwargs) + self.sku = kwargs.get('sku', None) + self.platform_update_domain_count = kwargs.get('platform_update_domain_count', None) + self.platform_fault_domain_count = kwargs.get('platform_fault_domain_count', None) + self.virtual_machines = kwargs.get('virtual_machines', None) + self.proximity_placement_group = kwargs.get('proximity_placement_group', None) self.statuses = None -class CloudServiceListResult(msrest.serialization.Model): - """CloudServiceListResult. +class AvailablePatchSummary(msrest.serialization.Model): + """Describes the properties of an virtual machine instance view for available patch summary. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when sending a request. - :param value: Required. - :type value: list[~azure.mgmt.compute.v2021_03_01.models.CloudService] - :param next_link: - :type next_link: str + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", + or "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.compute.v2021_03_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 + :ivar reboot_pending: The overall reboot status of the VM. It will be true when partially + installed patches require a reboot to complete installation but the reboot has not yet + occurred. + :vartype reboot_pending: bool + :ivar critical_and_security_patch_count: The number of critical or security patches that have + been detected as available and not yet installed. + :vartype critical_and_security_patch_count: int + :ivar other_patch_count: The number of all available patches excluding critical and security. + :vartype other_patch_count: int + :ivar start_time: The UTC timestamp when the operation began. + :vartype start_time: ~datetime.datetime + :ivar last_modified_time: The UTC timestamp when the operation began. + :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.v2021_03_01.models.ApiError """ _validation = { - 'value': {'required': True}, + 'status': {'readonly': True}, + 'assessment_activity_id': {'readonly': True}, + 'reboot_pending': {'readonly': True}, + 'critical_and_security_patch_count': {'readonly': True}, + 'other_patch_count': {'readonly': True}, + 'start_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'error': {'readonly': True}, } _attribute_map = { - 'value': {'key': 'value', 'type': '[CloudService]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'assessment_activity_id': {'key': 'assessmentActivityId', 'type': 'str'}, + 'reboot_pending': {'key': 'rebootPending', 'type': 'bool'}, + 'critical_and_security_patch_count': {'key': 'criticalAndSecurityPatchCount', 'type': 'int'}, + 'other_patch_count': {'key': 'otherPatchCount', 'type': 'int'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'ApiError'}, } def __init__( self, **kwargs ): - super(CloudServiceListResult, self).__init__(**kwargs) - self.value = kwargs['value'] - self.next_link = kwargs.get('next_link', None) + super(AvailablePatchSummary, self).__init__(**kwargs) + self.status = None + self.assessment_activity_id = None + self.reboot_pending = None + self.critical_and_security_patch_count = None + self.other_patch_count = None + self.start_time = None + self.last_modified_time = None + self.error = None + + +class BillingProfile(msrest.serialization.Model): + """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + + :param max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. + This price is in US Dollars. :code:`
    `:code:`
    ` This price will be compared with the + current Azure Spot price for the VM size. Also, the prices are compared at the time of + create/update of Azure Spot VM/VMSS and the operation will only succeed if the maxPrice is + greater than the current Azure Spot price. :code:`
    `:code:`
    ` The maxPrice will also be + used for evicting a Azure Spot VM/VMSS if the current Azure Spot price goes beyond the maxPrice + after creation of VM/VMSS. :code:`
    `:code:`
    ` Possible values are: + :code:`
    `:code:`
    ` - Any decimal value greater than zero. Example: 0.01538 + :code:`
    `:code:`
    ` -1 – indicates default price to be up-to on-demand. + :code:`
    `:code:`
    ` You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS + should not be evicted for price reasons. Also, the default max price is -1 if it is not + provided by you. :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + :type max_price: float + """ + _attribute_map = { + 'max_price': {'key': 'maxPrice', 'type': 'float'}, + } -class CloudServiceNetworkProfile(msrest.serialization.Model): + def __init__( + self, + **kwargs + ): + super(BillingProfile, self).__init__(**kwargs) + self.max_price = kwargs.get('max_price', None) + + +class BootDiagnostics(msrest.serialization.Model): + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
    `:code:`
    ` You can easily view the output of your console log. :code:`
    `:code:`
    ` Azure also enables you to see a screenshot of the VM from the hypervisor. + + :param enabled: Whether boot diagnostics should be enabled on the Virtual Machine. + :type enabled: bool + :param storage_uri: Uri of the storage account to use for placing the console output and + screenshot. :code:`
    `:code:`
    `If storageUri is not specified while enabling boot + diagnostics, managed storage will be used. + :type storage_uri: str + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'storage_uri': {'key': 'storageUri', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BootDiagnostics, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.storage_uri = kwargs.get('storage_uri', None) + + +class BootDiagnosticsInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine boot diagnostics. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar console_screenshot_blob_uri: The console screenshot blob URI. + :code:`
    `:code:`
    `NOTE: This will **not** be set if boot diagnostics is currently enabled + with managed storage. + :vartype console_screenshot_blob_uri: str + :ivar serial_console_log_blob_uri: The serial console log blob Uri. + :code:`
    `:code:`
    `NOTE: This will **not** be set if boot diagnostics is currently enabled + with managed storage. + :vartype serial_console_log_blob_uri: str + :ivar status: The boot diagnostics status information for the VM. :code:`
    `:code:`
    ` + NOTE: It will be set only if there are errors encountered in enabling boot diagnostics. + :vartype status: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus + """ + + _validation = { + 'console_screenshot_blob_uri': {'readonly': True}, + 'serial_console_log_blob_uri': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'}, + 'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'InstanceViewStatus'}, + } + + def __init__( + self, + **kwargs + ): + super(BootDiagnosticsInstanceView, self).__init__(**kwargs) + self.console_screenshot_blob_uri = None + self.serial_console_log_blob_uri = None + self.status = None + + +class CloudService(msrest.serialization.Model): + """Describes the cloud service. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param properties: Cloud service properties. + :type properties: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'CloudServiceProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudService, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs['location'] + self.tags = kwargs.get('tags', None) + self.properties = kwargs.get('properties', None) + + +class CloudServiceExtensionProfile(msrest.serialization.Model): + """Describes a cloud service extension profile. + + :param extensions: List of extensions for the cloud service. + :type extensions: list[~azure.mgmt.compute.v2021_03_01.models.Extension] + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudServiceExtensionProfile, self).__init__(**kwargs) + self.extensions = kwargs.get('extensions', None) + + +class CloudServiceExtensionProperties(msrest.serialization.Model): + """Extension Properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type: Specifies the type of the extension. + :type type: str + :param type_handler_version: Specifies the version of the extension. Specifies the version of + the extension. If this element is not specified or an asterisk (*) is used as the value, the + latest version of the extension is used. If the value is specified with a major version number + and an asterisk as the minor version number (X.), the latest minor version of the specified + major version is selected. If a major version number and a minor version number are specified + (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade + is performed on the role instance. + :type type_handler_version: str + :param auto_upgrade_minor_version: Explicitly specify whether platform can automatically + upgrade typeHandlerVersion to higher minor versions when they become available. + :type auto_upgrade_minor_version: bool + :param settings: Public settings for the extension. For JSON extensions, this is the JSON + settings for the extension. For XML Extension (like RDP), this is the XML setting for the + extension. + :type settings: str + :param protected_settings: Protected settings for the extension which are encrypted before sent + to the role instance. + :type protected_settings: str + :param protected_settings_from_key_vault: + :type protected_settings_from_key_vault: + ~azure.mgmt.compute.v2021_03_01.models.CloudServiceVaultAndSecretReference + :param force_update_tag: Tag to force apply the provided public and protected settings. + Changing the tag value allows for re-running the extension without changing any of the public + or protected settings. + If forceUpdateTag is not changed, updates to public or protected settings would still be + applied by the handler. + If neither forceUpdateTag nor any of public or protected settings change, extension would flow + to the role instance with the same sequence-number, and + it is up to handler implementation whether to re-run it or not. + :type force_update_tag: str + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param roles_applied_to: Optional list of roles to apply this extension. If property is not + specified or '*' is specified, extension is applied to all roles in the cloud service. + :type roles_applied_to: list[str] + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'autoUpgradeMinorVersion', 'type': 'bool'}, + 'settings': {'key': 'settings', 'type': 'str'}, + 'protected_settings': {'key': 'protectedSettings', 'type': 'str'}, + 'protected_settings_from_key_vault': {'key': 'protectedSettingsFromKeyVault', 'type': 'CloudServiceVaultAndSecretReference'}, + 'force_update_tag': {'key': 'forceUpdateTag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'roles_applied_to': {'key': 'rolesAppliedTo', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudServiceExtensionProperties, self).__init__(**kwargs) + self.publisher = kwargs.get('publisher', None) + self.type = kwargs.get('type', None) + self.type_handler_version = kwargs.get('type_handler_version', None) + self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) + self.settings = kwargs.get('settings', None) + self.protected_settings = kwargs.get('protected_settings', None) + self.protected_settings_from_key_vault = kwargs.get('protected_settings_from_key_vault', None) + self.force_update_tag = kwargs.get('force_update_tag', None) + self.provisioning_state = None + self.roles_applied_to = kwargs.get('roles_applied_to', None) + + +class CloudServiceInstanceView(msrest.serialization.Model): + """InstanceView of CloudService as a whole. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param role_instance: Instance view statuses. + :type role_instance: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatusesSummary + :ivar sdk_version: The version of the SDK that was used to generate the package for the cloud + service. + :vartype sdk_version: str + :ivar private_ids: Specifies a list of unique identifiers generated internally for the cloud + service. :code:`
    `:code:`
    ` NOTE: If you are using Azure Diagnostics extension, this + property can be used as 'DeploymentId' for querying details. + :vartype private_ids: list[str] + :ivar statuses: + :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.ResourceInstanceViewStatus] + """ + + _validation = { + 'sdk_version': {'readonly': True}, + 'private_ids': {'readonly': True}, + 'statuses': {'readonly': True}, + } + + _attribute_map = { + 'role_instance': {'key': 'roleInstance', 'type': 'InstanceViewStatusesSummary'}, + 'sdk_version': {'key': 'sdkVersion', 'type': 'str'}, + 'private_ids': {'key': 'privateIds', 'type': '[str]'}, + 'statuses': {'key': 'statuses', 'type': '[ResourceInstanceViewStatus]'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudServiceInstanceView, self).__init__(**kwargs) + self.role_instance = kwargs.get('role_instance', None) + self.sdk_version = None + self.private_ids = None + self.statuses = None + + +class CloudServiceListResult(msrest.serialization.Model): + """CloudServiceListResult. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.CloudService] + :param next_link: + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[CloudService]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudServiceListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class CloudServiceNetworkProfile(msrest.serialization.Model): """Network Profile for the cloud service. :param load_balancer_configurations: List of Load balancer configurations. Cloud service can @@ -691,250 +1240,403 @@ def __init__( self.vault_certificates = kwargs.get('vault_certificates', None) -class Extension(msrest.serialization.Model): - """Describes a cloud service Extension. +class ComputeOperationListResult(msrest.serialization.Model): + """The List Compute Operation operation response. - :param name: The name of the extension. - :type name: str - :param properties: Extension Properties. - :type properties: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceExtensionProperties + 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.v2021_03_01.models.ComputeOperationValue] """ - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'CloudServiceExtensionProperties'}, + _validation = { + 'value': {'readonly': True}, } - def __init__( - self, - **kwargs - ): - super(Extension, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) - - -class InnerError(msrest.serialization.Model): - """Inner error details. - - :param exceptiontype: The exception type. - :type exceptiontype: str - :param errordetail: The internal error message or exception dump. - :type errordetail: str - """ - _attribute_map = { - 'exceptiontype': {'key': 'exceptiontype', 'type': 'str'}, - 'errordetail': {'key': 'errordetail', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ComputeOperationValue]'}, } def __init__( self, **kwargs ): - super(InnerError, self).__init__(**kwargs) - self.exceptiontype = kwargs.get('exceptiontype', None) - self.errordetail = kwargs.get('errordetail', None) + super(ComputeOperationListResult, self).__init__(**kwargs) + self.value = None -class InstanceSku(msrest.serialization.Model): - """InstanceSku. +class ComputeOperationValue(msrest.serialization.Model): + """Describes the properties of a Compute Operation value. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: The sku name. + :ivar origin: The origin of the compute operation. + :vartype origin: str + :ivar name: The name of the compute operation. :vartype name: str - :ivar tier: The tier of the cloud service role instance. - :vartype tier: str + :ivar operation: The display name of the compute operation. + :vartype operation: str + :ivar resource: The display name of the resource the operation applies to. + :vartype resource: str + :ivar description: The description of the operation. + :vartype description: str + :ivar provider: The resource provider for the operation. + :vartype provider: str """ _validation = { + 'origin': {'readonly': True}, 'name': {'readonly': True}, - 'tier': {'readonly': True}, + 'operation': {'readonly': True}, + 'resource': {'readonly': True}, + 'description': {'readonly': True}, + 'provider': {'readonly': True}, } _attribute_map = { + 'origin': {'key': 'origin', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, + 'operation': {'key': 'display.operation', 'type': 'str'}, + 'resource': {'key': 'display.resource', 'type': 'str'}, + 'description': {'key': 'display.description', 'type': 'str'}, + 'provider': {'key': 'display.provider', 'type': 'str'}, } def __init__( self, **kwargs ): - super(InstanceSku, self).__init__(**kwargs) + super(ComputeOperationValue, self).__init__(**kwargs) + self.origin = None self.name = None - self.tier = None + self.operation = None + self.resource = None + self.description = None + self.provider = None -class InstanceViewStatusesSummary(msrest.serialization.Model): - """Instance view statuses. +class DataDisk(msrest.serialization.Model): + """Describes a data disk. Variables are only populated by the server, and will be ignored when sending a request. - :ivar statuses_summary: - :vartype statuses_summary: list[~azure.mgmt.compute.v2021_03_01.models.StatusCodeCount] + All required parameters must be populated in order to send to Azure. + + :param lun: Required. 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. + :type lun: int + :param name: The disk name. + :type name: str + :param vhd: The virtual hard disk. + :type vhd: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param 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. + :type image: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or + disabled on the disk. + :type write_accelerator_enabled: bool + :param create_option: Required. Specifies how the virtual machine should be + created.:code:`
    `:code:`
    ` Possible values are::code:`
    `:code:`
    ` **Attach** \u2013 + This value is used when you are using a specialized disk to create the virtual + machine.:code:`
    `:code:`
    ` **FromImage** \u2013 This value is used when you are using an + image to create the virtual machine. If you are using a platform image, you also use the + imageReference element described above. If you are using a marketplace image, you also use the + plan element previously described. Possible values include: "FromImage", "Empty", "Attach". + :type create_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskCreateOptionTypes + :param 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:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param managed_disk: The managed disk parameters. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.ManagedDiskParameters + :param to_be_detached: Specifies whether the data disk is in process of detachment from the + VirtualMachine/VirtualMachineScaleset. + :type to_be_detached: bool + :ivar disk_iops_read_write: Specifies the Read-Write IOPS for the managed disk when + StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be + updated only via updates to the VirtualMachine Scale Set. + :vartype disk_iops_read_write: long + :ivar disk_m_bps_read_write: Specifies the bandwidth in MB per second for the managed disk when + StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be + updated only via updates to the VirtualMachine Scale Set. + :vartype disk_m_bps_read_write: long + :param detach_option: Specifies the detach behavior to be used while detaching a disk or which + is already in the process of detachment from the virtual machine. Supported values: + **ForceDetach**. :code:`
    `:code:`
    ` detachOption: **ForceDetach** is applicable only for + managed data disks. If a previous detachment attempt of the data disk did not complete due to + an unexpected failure from the virtual machine and the disk is still not released then use + force-detach as a last resort option to detach the disk forcibly from the VM. All writes might + not have been flushed when using this detach behavior. :code:`
    `:code:`
    ` This feature is + still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data + disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. Possible + values include: "ForceDetach". + :type detach_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskDetachOptionTypes + :param delete_option: Specifies whether data disk should be deleted or detached upon VM + deletion.:code:`
    `:code:`
    ` Possible values: :code:`
    `:code:`
    ` **Delete** If this + value is used, the data disk is deleted when VM is deleted.:code:`
    `:code:`
    ` **Detach** + If this value is used, the data disk is retained after VM is deleted.:code:`
    `:code:`
    ` + The default value is set to **detach**. Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskDeleteOptionTypes """ _validation = { - 'statuses_summary': {'readonly': True}, + 'lun': {'required': True}, + 'create_option': {'required': True}, + 'disk_iops_read_write': {'readonly': True}, + 'disk_m_bps_read_write': {'readonly': True}, } _attribute_map = { - 'statuses_summary': {'key': 'statusesSummary', 'type': '[StatusCodeCount]'}, + 'lun': {'key': 'lun', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'vhd': {'key': 'vhd', 'type': 'VirtualHardDisk'}, + 'image': {'key': 'image', 'type': 'VirtualHardDisk'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'}, + 'create_option': {'key': 'createOption', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'}, + 'to_be_detached': {'key': 'toBeDetached', 'type': 'bool'}, + 'disk_iops_read_write': {'key': 'diskIOPSReadWrite', 'type': 'long'}, + 'disk_m_bps_read_write': {'key': 'diskMBpsReadWrite', 'type': 'long'}, + 'detach_option': {'key': 'detachOption', 'type': 'str'}, + 'delete_option': {'key': 'deleteOption', 'type': 'str'}, } def __init__( self, **kwargs ): - super(InstanceViewStatusesSummary, self).__init__(**kwargs) - self.statuses_summary = None - - -class LoadBalancerConfiguration(msrest.serialization.Model): - """Describes the load balancer configuration. + super(DataDisk, self).__init__(**kwargs) + self.lun = kwargs['lun'] + self.name = kwargs.get('name', None) + self.vhd = kwargs.get('vhd', None) + self.image = kwargs.get('image', None) + self.caching = kwargs.get('caching', None) + self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None) + self.create_option = kwargs['create_option'] + self.disk_size_gb = kwargs.get('disk_size_gb', None) + self.managed_disk = kwargs.get('managed_disk', None) + self.to_be_detached = kwargs.get('to_be_detached', None) + self.disk_iops_read_write = None + self.disk_m_bps_read_write = None + self.detach_option = kwargs.get('detach_option', None) + self.delete_option = kwargs.get('delete_option', None) + + +class DataDiskImage(msrest.serialization.Model): + """Contains the data disk images information. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when sending a request. - :param id: Resource Id. - :type id: str - :param name: Required. The name of the Load balancer. - :type name: str - :param properties: Required. Properties of the load balancer configuration. - :type properties: ~azure.mgmt.compute.v2021_03_01.models.LoadBalancerConfigurationProperties + :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. + :vartype lun: int """ _validation = { - 'name': {'required': True}, - 'properties': {'required': True}, + 'lun': {'readonly': True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'LoadBalancerConfigurationProperties'}, + 'lun': {'key': 'lun', 'type': 'int'}, } def __init__( self, **kwargs ): - super(LoadBalancerConfiguration, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.name = kwargs['name'] - self.properties = kwargs['properties'] + super(DataDiskImage, self).__init__(**kwargs) + self.lun = None -class LoadBalancerConfigurationProperties(msrest.serialization.Model): - """LoadBalancerConfigurationProperties. +class DedicatedHost(Resource): + """Specifies information about the Dedicated host. + + Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :param frontend_ip_configurations: Required. Specifies the frontend IP to be used for the load - balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must - have exactly one frontend IP configuration. - :type frontend_ip_configurations: - list[~azure.mgmt.compute.v2021_03_01.models.LoadBalancerFrontendIPConfiguration] + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param sku: Required. 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. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. + :type platform_fault_domain: int + :param auto_replace_on_failure: Specifies whether the dedicated host should be replaced + automatically in case of a failure. The value is defaulted to 'true' when not provided. + :type auto_replace_on_failure: bool + :ivar host_id: A unique id generated and assigned to the dedicated host by the platform. + :code:`
    `:code:`
    ` Does 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.v2021_03_01.models.SubResourceReadOnly] + :param license_type: Specifies the software license type that will be applied to the VMs + deployed on the dedicated host. :code:`
    `:code:`
    ` Possible values are: + :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **Windows_Server_Hybrid** + :code:`
    `:code:`
    ` **Windows_Server_Perpetual** :code:`
    `:code:`
    ` Default: + **None**. Possible values include: "None", "Windows_Server_Hybrid", "Windows_Server_Perpetual". + :type license_type: str or ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.DedicatedHostInstanceView """ _validation = { - 'frontend_ip_configurations': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'sku': {'required': True}, + 'platform_fault_domain': {'minimum': 0}, + 'host_id': {'readonly': True}, + 'virtual_machines': {'readonly': True}, + 'provisioning_time': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, } _attribute_map = { - 'frontend_ip_configurations': {'key': 'frontendIPConfigurations', 'type': '[LoadBalancerFrontendIPConfiguration]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'platform_fault_domain': {'key': 'properties.platformFaultDomain', 'type': 'int'}, + 'auto_replace_on_failure': {'key': 'properties.autoReplaceOnFailure', 'type': 'bool'}, + 'host_id': {'key': 'properties.hostId', 'type': 'str'}, + 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResourceReadOnly]'}, + 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'provisioning_time': {'key': 'properties.provisioningTime', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'DedicatedHostInstanceView'}, } def __init__( self, **kwargs ): - super(LoadBalancerConfigurationProperties, self).__init__(**kwargs) - self.frontend_ip_configurations = kwargs['frontend_ip_configurations'] - + super(DedicatedHost, self).__init__(**kwargs) + self.sku = kwargs['sku'] + self.platform_fault_domain = kwargs.get('platform_fault_domain', None) + self.auto_replace_on_failure = kwargs.get('auto_replace_on_failure', None) + self.host_id = None + self.virtual_machines = None + self.license_type = kwargs.get('license_type', None) + self.provisioning_time = None + self.provisioning_state = None + self.instance_view = None -class LoadBalancerFrontendIPConfiguration(msrest.serialization.Model): - """LoadBalancerFrontendIPConfiguration. - All required parameters must be populated in order to send to Azure. +class DedicatedHostAllocatableVM(msrest.serialization.Model): + """Represents the dedicated host unutilized capacity in terms of a specific VM size. - :param name: Required. The name of the resource that is unique within the set of frontend IP - configurations used by the load balancer. This name can be used to access the resource. - :type name: str - :param properties: Required. Properties of load balancer frontend ip configuration. - :type properties: - ~azure.mgmt.compute.v2021_03_01.models.LoadBalancerFrontendIPConfigurationProperties + :param vm_size: VM size in terms of which the unutilized capacity is represented. + :type vm_size: str + :param count: Maximum number of VMs of size vmSize that can fit in the dedicated host's + remaining capacity. + :type count: float """ - _validation = { - 'name': {'required': True}, - 'properties': {'required': True}, - } - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'LoadBalancerFrontendIPConfigurationProperties'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'float'}, } def __init__( self, **kwargs ): - super(LoadBalancerFrontendIPConfiguration, self).__init__(**kwargs) - self.name = kwargs['name'] - self.properties = kwargs['properties'] + super(DedicatedHostAllocatableVM, self).__init__(**kwargs) + self.vm_size = kwargs.get('vm_size', None) + self.count = kwargs.get('count', None) -class LoadBalancerFrontendIPConfigurationProperties(msrest.serialization.Model): - """Describes a cloud service IP Configuration. +class DedicatedHostAvailableCapacity(msrest.serialization.Model): + """Dedicated host unutilized capacity. - :param public_ip_address: The reference to the public ip address resource. - :type public_ip_address: ~azure.mgmt.compute.v2021_03_01.models.SubResource - :param subnet: The reference to the virtual network subnet resource. - :type subnet: ~azure.mgmt.compute.v2021_03_01.models.SubResource - :param private_ip_address: The virtual network private IP address of the IP configuration. - :type private_ip_address: str + :param 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. + :type allocatable_v_ms: list[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostAllocatableVM] """ _attribute_map = { - 'public_ip_address': {'key': 'publicIPAddress', 'type': 'SubResource'}, - 'subnet': {'key': 'subnet', 'type': 'SubResource'}, - 'private_ip_address': {'key': 'privateIPAddress', 'type': 'str'}, + 'allocatable_v_ms': {'key': 'allocatableVMs', 'type': '[DedicatedHostAllocatableVM]'}, } def __init__( self, **kwargs ): - super(LoadBalancerFrontendIPConfigurationProperties, self).__init__(**kwargs) - self.public_ip_address = kwargs.get('public_ip_address', None) - self.subnet = kwargs.get('subnet', None) - self.private_ip_address = kwargs.get('private_ip_address', None) + super(DedicatedHostAvailableCapacity, self).__init__(**kwargs) + self.allocatable_v_ms = kwargs.get('allocatable_v_ms', None) -class OSFamily(msrest.serialization.Model): - """Describes a cloud service OS family. +class DedicatedHostGroup(Resource): + """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
    `:code:`
    ` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. + :ivar id: Resource Id. :vartype id: str :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str - :ivar location: Resource location. - :vartype location: str - :param properties: OS family properties. - :type properties: ~azure.mgmt.compute.v2021_03_01.models.OSFamilyProperties + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param zones: Availability Zone to use for this host group. Only single zone is supported. The + zone can be assigned only during creation. If not provided, the group supports all zones in the + region. If provided, enforces each host in the group to be in the same zone. + :type zones: list[str] + :param platform_fault_domain_count: Number of fault domains that the host group can span. + :type 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.v2021_03_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.v2021_03_01.models.DedicatedHostGroupInstanceView + :param 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 + group. The value is defaulted to 'false' when not provided. :code:`
    `:code:`
    `Minimum + api-version: 2020-06-01. + :type support_automatic_placement: bool """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'readonly': True}, + 'location': {'required': True}, + 'platform_fault_domain_count': {'minimum': 1}, + 'hosts': {'readonly': True}, + 'instance_view': {'readonly': True}, } _attribute_map = { @@ -942,29 +1644,54 @@ class OSFamily(msrest.serialization.Model): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'OSFamilyProperties'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, + 'hosts': {'key': 'properties.hosts', 'type': '[SubResourceReadOnly]'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'DedicatedHostGroupInstanceView'}, + 'support_automatic_placement': {'key': 'properties.supportAutomaticPlacement', 'type': 'bool'}, } def __init__( self, **kwargs ): - super(OSFamily, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = None - self.properties = kwargs.get('properties', None) + super(DedicatedHostGroup, self).__init__(**kwargs) + self.zones = kwargs.get('zones', None) + self.platform_fault_domain_count = kwargs.get('platform_fault_domain_count', None) + self.hosts = None + self.instance_view = None + self.support_automatic_placement = kwargs.get('support_automatic_placement', None) -class OSFamilyListResult(msrest.serialization.Model): - """OSFamilyListResult. +class DedicatedHostGroupInstanceView(msrest.serialization.Model): + """DedicatedHostGroupInstanceView. + + :param hosts: List of instance view of the dedicated hosts under the dedicated host group. + :type hosts: list[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostInstanceViewWithName] + """ + + _attribute_map = { + 'hosts': {'key': 'hosts', 'type': '[DedicatedHostInstanceViewWithName]'}, + } + + def __init__( + self, + **kwargs + ): + super(DedicatedHostGroupInstanceView, self).__init__(**kwargs) + self.hosts = kwargs.get('hosts', None) + + +class DedicatedHostGroupListResult(msrest.serialization.Model): + """The List Dedicated Host Group with resource group response. All required parameters must be populated in order to send to Azure. - :param value: Required. - :type value: list[~azure.mgmt.compute.v2021_03_01.models.OSFamily] - :param next_link: + :param value: Required. The list of dedicated host groups. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroup] + :param 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. :type next_link: str """ @@ -973,7 +1700,7 @@ class OSFamilyListResult(msrest.serialization.Model): } _attribute_map = { - 'value': {'key': 'value', 'type': '[OSFamily]'}, + 'value': {'key': 'value', 'type': '[DedicatedHostGroup]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } @@ -981,117 +1708,2124 @@ def __init__( self, **kwargs ): - super(OSFamilyListResult, self).__init__(**kwargs) + super(DedicatedHostGroupListResult, self).__init__(**kwargs) self.value = kwargs['value'] self.next_link = kwargs.get('next_link', None) -class OSFamilyProperties(msrest.serialization.Model): - """OS family properties. +class DedicatedHostGroupUpdate(UpdateResource): + """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: The OS family name. - :vartype name: str - :ivar label: The OS family label. - :vartype label: str - :ivar versions: List of OS versions belonging to this family. - :vartype versions: list[~azure.mgmt.compute.v2021_03_01.models.OSVersionPropertiesBase] + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param zones: Availability Zone to use for this host group. Only single zone is supported. The + zone can be assigned only during creation. If not provided, the group supports all zones in the + region. If provided, enforces each host in the group to be in the same zone. + :type zones: list[str] + :param platform_fault_domain_count: Number of fault domains that the host group can span. + :type 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.v2021_03_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.v2021_03_01.models.DedicatedHostGroupInstanceView + :param 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 + group. The value is defaulted to 'false' when not provided. :code:`
    `:code:`
    `Minimum + api-version: 2020-06-01. + :type support_automatic_placement: bool """ _validation = { - 'name': {'readonly': True}, - 'label': {'readonly': True}, - 'versions': {'readonly': True}, + 'platform_fault_domain_count': {'minimum': 1}, + 'hosts': {'readonly': True}, + 'instance_view': {'readonly': True}, } _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'versions': {'key': 'versions', 'type': '[OSVersionPropertiesBase]'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, + 'hosts': {'key': 'properties.hosts', 'type': '[SubResourceReadOnly]'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'DedicatedHostGroupInstanceView'}, + 'support_automatic_placement': {'key': 'properties.supportAutomaticPlacement', 'type': 'bool'}, } def __init__( self, **kwargs ): - super(OSFamilyProperties, self).__init__(**kwargs) - self.name = None - self.label = None - self.versions = None + super(DedicatedHostGroupUpdate, self).__init__(**kwargs) + self.zones = kwargs.get('zones', None) + self.platform_fault_domain_count = kwargs.get('platform_fault_domain_count', None) + self.hosts = None + self.instance_view = None + self.support_automatic_placement = kwargs.get('support_automatic_placement', None) -class OSVersion(msrest.serialization.Model): - """Describes a cloud service OS version. +class DedicatedHostInstanceView(msrest.serialization.Model): + """The instance view of a dedicated host. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :param properties: OS version properties. - :type properties: ~azure.mgmt.compute.v2021_03_01.models.OSVersionProperties + :ivar asset_id: Specifies the unique id of the dedicated physical machine on which the + dedicated host resides. + :vartype asset_id: str + :param available_capacity: Unutilized capacity of the dedicated host. + :type available_capacity: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostAvailableCapacity + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] """ _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, + 'asset_id': {'readonly': True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'OSVersionProperties'}, + 'asset_id': {'key': 'assetId', 'type': 'str'}, + 'available_capacity': {'key': 'availableCapacity', 'type': 'DedicatedHostAvailableCapacity'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, } def __init__( self, **kwargs ): - super(OSVersion, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = None - self.properties = kwargs.get('properties', None) + super(DedicatedHostInstanceView, self).__init__(**kwargs) + self.asset_id = None + self.available_capacity = kwargs.get('available_capacity', None) + self.statuses = kwargs.get('statuses', None) -class OSVersionListResult(msrest.serialization.Model): - """OSVersionListResult. +class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): + """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when sending a request. - :param value: Required. - :type value: list[~azure.mgmt.compute.v2021_03_01.models.OSVersion] - :param next_link: - :type next_link: str + :ivar asset_id: Specifies the unique id of the dedicated physical machine on which the + dedicated host resides. + :vartype asset_id: str + :param available_capacity: Unutilized capacity of the dedicated host. + :type available_capacity: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostAvailableCapacity + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + :ivar name: The name of the dedicated host. + :vartype name: str """ _validation = { - 'value': {'required': True}, + 'asset_id': {'readonly': True}, + 'name': {'readonly': True}, } _attribute_map = { - 'value': {'key': 'value', 'type': '[OSVersion]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'asset_id': {'key': 'assetId', 'type': 'str'}, + 'available_capacity': {'key': 'availableCapacity', 'type': 'DedicatedHostAvailableCapacity'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + 'name': {'key': 'name', 'type': 'str'}, } def __init__( self, **kwargs ): - super(OSVersionListResult, self).__init__(**kwargs) - self.value = kwargs['value'] - self.next_link = kwargs.get('next_link', None) + super(DedicatedHostInstanceViewWithName, self).__init__(**kwargs) + self.name = None + + +class DedicatedHostListResult(msrest.serialization.Model): + """The list dedicated host operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of dedicated hosts. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.DedicatedHost] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[DedicatedHost]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(DedicatedHostListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class DedicatedHostUpdate(UpdateResource): + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. + :type platform_fault_domain: int + :param auto_replace_on_failure: Specifies whether the dedicated host should be replaced + automatically in case of a failure. The value is defaulted to 'true' when not provided. + :type auto_replace_on_failure: bool + :ivar host_id: A unique id generated and assigned to the dedicated host by the platform. + :code:`
    `:code:`
    ` Does 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.v2021_03_01.models.SubResourceReadOnly] + :param license_type: Specifies the software license type that will be applied to the VMs + deployed on the dedicated host. :code:`
    `:code:`
    ` Possible values are: + :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **Windows_Server_Hybrid** + :code:`
    `:code:`
    ` **Windows_Server_Perpetual** :code:`
    `:code:`
    ` Default: + **None**. Possible values include: "None", "Windows_Server_Hybrid", "Windows_Server_Perpetual". + :type license_type: str or ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.DedicatedHostInstanceView + """ + + _validation = { + 'platform_fault_domain': {'minimum': 0}, + 'host_id': {'readonly': True}, + 'virtual_machines': {'readonly': True}, + 'provisioning_time': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'platform_fault_domain': {'key': 'properties.platformFaultDomain', 'type': 'int'}, + 'auto_replace_on_failure': {'key': 'properties.autoReplaceOnFailure', 'type': 'bool'}, + 'host_id': {'key': 'properties.hostId', 'type': 'str'}, + 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResourceReadOnly]'}, + 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'provisioning_time': {'key': 'properties.provisioningTime', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'DedicatedHostInstanceView'}, + } + + def __init__( + self, + **kwargs + ): + super(DedicatedHostUpdate, self).__init__(**kwargs) + self.platform_fault_domain = kwargs.get('platform_fault_domain', None) + self.auto_replace_on_failure = kwargs.get('auto_replace_on_failure', None) + self.host_id = None + self.virtual_machines = None + self.license_type = kwargs.get('license_type', None) + self.provisioning_time = None + self.provisioning_state = None + self.instance_view = None + + +class DiagnosticsProfile(msrest.serialization.Model): + """Specifies the boot diagnostic settings state. :code:`
    `:code:`
    `Minimum api-version: 2015-06-15. + + :param boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view + Console Output and Screenshot to diagnose VM status. :code:`
    `:code:`
    ` You can easily + view the output of your console log. :code:`
    `:code:`
    ` Azure also enables you to see a + screenshot of the VM from the hypervisor. + :type boot_diagnostics: ~azure.mgmt.compute.v2021_03_01.models.BootDiagnostics + """ + + _attribute_map = { + 'boot_diagnostics': {'key': 'bootDiagnostics', 'type': 'BootDiagnostics'}, + } + + def __init__( + self, + **kwargs + ): + super(DiagnosticsProfile, self).__init__(**kwargs) + self.boot_diagnostics = kwargs.get('boot_diagnostics', None) + + +class DiffDiskSettings(msrest.serialization.Model): + """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
    `:code:`
    ` NOTE: The ephemeral disk settings can only be specified for managed disk. + + :param option: Specifies the ephemeral disk settings for operating system disk. Possible values + include: "Local". + :type option: str or ~azure.mgmt.compute.v2021_03_01.models.DiffDiskOptions + :param placement: Specifies the ephemeral disk placement for operating system + disk.:code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **CacheDisk** + :code:`
    `:code:`
    ` **ResourceDisk** :code:`
    `:code:`
    ` Default: **CacheDisk** if + one is configured for the VM size otherwise **ResourceDisk** is used.:code:`
    `:code:`
    ` + Refer to VM size documentation for Windows VM at + https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at + https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a + cache disk. Possible values include: "CacheDisk", "ResourceDisk". + :type placement: str or ~azure.mgmt.compute.v2021_03_01.models.DiffDiskPlacement + """ + + _attribute_map = { + 'option': {'key': 'option', 'type': 'str'}, + 'placement': {'key': 'placement', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(DiffDiskSettings, self).__init__(**kwargs) + self.option = kwargs.get('option', None) + self.placement = kwargs.get('placement', None) + + +class DisallowedConfiguration(msrest.serialization.Model): + """Specifies the disallowed configuration for a virtual machine image. + + :param vm_disk_type: VM disk types which are disallowed. Possible values include: "None", + "Unmanaged". + :type vm_disk_type: str or ~azure.mgmt.compute.v2021_03_01.models.VmDiskTypes + """ + + _attribute_map = { + 'vm_disk_type': {'key': 'vmDiskType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(DisallowedConfiguration, self).__init__(**kwargs) + self.vm_disk_type = kwargs.get('vm_disk_type', None) + + +class SubResource(msrest.serialization.Model): + """SubResource. + + :param id: Resource Id. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SubResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class DiskEncryptionSetParameters(SubResource): + """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
    `:code:`
    ` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + + :param id: Resource Id. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(DiskEncryptionSetParameters, self).__init__(**kwargs) + + +class DiskEncryptionSettings(msrest.serialization.Model): + """Describes a Encryption Settings for a Disk. + + :param disk_encryption_key: Specifies the location of the disk encryption key, which is a Key + Vault Secret. + :type disk_encryption_key: ~azure.mgmt.compute.v2021_03_01.models.KeyVaultSecretReference + :param key_encryption_key: Specifies the location of the key encryption key in Key Vault. + :type key_encryption_key: ~azure.mgmt.compute.v2021_03_01.models.KeyVaultKeyReference + :param enabled: Specifies whether disk encryption should be enabled on the virtual machine. + :type enabled: bool + """ + + _attribute_map = { + 'disk_encryption_key': {'key': 'diskEncryptionKey', 'type': 'KeyVaultSecretReference'}, + 'key_encryption_key': {'key': 'keyEncryptionKey', 'type': 'KeyVaultKeyReference'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(DiskEncryptionSettings, self).__init__(**kwargs) + self.disk_encryption_key = kwargs.get('disk_encryption_key', None) + self.key_encryption_key = kwargs.get('key_encryption_key', None) + self.enabled = kwargs.get('enabled', None) + + +class DiskInstanceView(msrest.serialization.Model): + """The instance view of the disk. + + :param name: The disk name. + :type name: str + :param encryption_settings: Specifies the encryption settings for the OS Disk. + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type encryption_settings: list[~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSettings] + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'encryption_settings': {'key': 'encryptionSettings', 'type': '[DiskEncryptionSettings]'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + **kwargs + ): + super(DiskInstanceView, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.encryption_settings = kwargs.get('encryption_settings', None) + self.statuses = kwargs.get('statuses', None) + + +class ExtendedLocation(msrest.serialization.Model): + """The complex type of the extended location. + + :param name: The name of the extended location. + :type name: str + :param type: The type of the extended location. Possible values include: "EdgeZone". + :type type: str or ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocationTypes + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ExtendedLocation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = kwargs.get('type', None) + + +class Extension(msrest.serialization.Model): + """Describes a cloud service Extension. + + :param name: The name of the extension. + :type name: str + :param properties: Extension Properties. + :type properties: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceExtensionProperties + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'CloudServiceExtensionProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(Extension, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + + +class HardwareProfile(msrest.serialization.Model): + """Specifies the hardware settings for the virtual machine. + + :param vm_size: Specifies the size of the virtual machine. :code:`
    `:code:`
    ` The enum + data type is currently deprecated and will be removed by December 23rd 2023. + :code:`
    `:code:`
    ` Recommended way to get the list of available sizes is using these + APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + `_ + :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region + `_ :code:`
    `:code:`
    ` + `List all available virtual machine sizes for resizing + `_. For more + information about virtual machine sizes, see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The + available VM sizes depend on region and availability set. Possible values include: "Basic_A0", + "Basic_A1", "Basic_A2", "Basic_A3", "Basic_A4", "Standard_A0", "Standard_A1", "Standard_A2", + "Standard_A3", "Standard_A4", "Standard_A5", "Standard_A6", "Standard_A7", "Standard_A8", + "Standard_A9", "Standard_A10", "Standard_A11", "Standard_A1_v2", "Standard_A2_v2", + "Standard_A4_v2", "Standard_A8_v2", "Standard_A2m_v2", "Standard_A4m_v2", "Standard_A8m_v2", + "Standard_B1s", "Standard_B1ms", "Standard_B2s", "Standard_B2ms", "Standard_B4ms", + "Standard_B8ms", "Standard_D1", "Standard_D2", "Standard_D3", "Standard_D4", "Standard_D11", + "Standard_D12", "Standard_D13", "Standard_D14", "Standard_D1_v2", "Standard_D2_v2", + "Standard_D3_v2", "Standard_D4_v2", "Standard_D5_v2", "Standard_D2_v3", "Standard_D4_v3", + "Standard_D8_v3", "Standard_D16_v3", "Standard_D32_v3", "Standard_D64_v3", "Standard_D2s_v3", + "Standard_D4s_v3", "Standard_D8s_v3", "Standard_D16s_v3", "Standard_D32s_v3", + "Standard_D64s_v3", "Standard_D11_v2", "Standard_D12_v2", "Standard_D13_v2", "Standard_D14_v2", + "Standard_D15_v2", "Standard_DS1", "Standard_DS2", "Standard_DS3", "Standard_DS4", + "Standard_DS11", "Standard_DS12", "Standard_DS13", "Standard_DS14", "Standard_DS1_v2", + "Standard_DS2_v2", "Standard_DS3_v2", "Standard_DS4_v2", "Standard_DS5_v2", "Standard_DS11_v2", + "Standard_DS12_v2", "Standard_DS13_v2", "Standard_DS14_v2", "Standard_DS15_v2", + "Standard_DS13-4_v2", "Standard_DS13-2_v2", "Standard_DS14-8_v2", "Standard_DS14-4_v2", + "Standard_E2_v3", "Standard_E4_v3", "Standard_E8_v3", "Standard_E16_v3", "Standard_E32_v3", + "Standard_E64_v3", "Standard_E2s_v3", "Standard_E4s_v3", "Standard_E8s_v3", "Standard_E16s_v3", + "Standard_E32s_v3", "Standard_E64s_v3", "Standard_E32-16_v3", "Standard_E32-8s_v3", + "Standard_E64-32s_v3", "Standard_E64-16s_v3", "Standard_F1", "Standard_F2", "Standard_F4", + "Standard_F8", "Standard_F16", "Standard_F1s", "Standard_F2s", "Standard_F4s", "Standard_F8s", + "Standard_F16s", "Standard_F2s_v2", "Standard_F4s_v2", "Standard_F8s_v2", "Standard_F16s_v2", + "Standard_F32s_v2", "Standard_F64s_v2", "Standard_F72s_v2", "Standard_G1", "Standard_G2", + "Standard_G3", "Standard_G4", "Standard_G5", "Standard_GS1", "Standard_GS2", "Standard_GS3", + "Standard_GS4", "Standard_GS5", "Standard_GS4-8", "Standard_GS4-4", "Standard_GS5-16", + "Standard_GS5-8", "Standard_H8", "Standard_H16", "Standard_H8m", "Standard_H16m", + "Standard_H16r", "Standard_H16mr", "Standard_L4s", "Standard_L8s", "Standard_L16s", + "Standard_L32s", "Standard_M64s", "Standard_M64ms", "Standard_M128s", "Standard_M128ms", + "Standard_M64-32ms", "Standard_M64-16ms", "Standard_M128-64ms", "Standard_M128-32ms", + "Standard_NC6", "Standard_NC12", "Standard_NC24", "Standard_NC24r", "Standard_NC6s_v2", + "Standard_NC12s_v2", "Standard_NC24s_v2", "Standard_NC24rs_v2", "Standard_NC6s_v3", + "Standard_NC12s_v3", "Standard_NC24s_v3", "Standard_NC24rs_v3", "Standard_ND6s", + "Standard_ND12s", "Standard_ND24s", "Standard_ND24rs", "Standard_NV6", "Standard_NV12", + "Standard_NV24". + :type vm_size: str or ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineSizeTypes + """ + + _attribute_map = { + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(HardwareProfile, self).__init__(**kwargs) + self.vm_size = kwargs.get('vm_size', None) + + +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 must not exist. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param extended_location: The extended location of the Image. + :type extended_location: ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocation + :param source_virtual_machine: The source virtual machine from which Image is created. + :type source_virtual_machine: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: ~azure.mgmt.compute.v2021_03_01.models.ImageStorageProfile + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + :param 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. Possible values include: "V1", "V2". + :type hyper_v_generation: str or ~azure.mgmt.compute.v2021_03_01.models.HyperVGenerationTypes + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'source_virtual_machine': {'key': 'properties.sourceVirtualMachine', 'type': 'SubResource'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'ImageStorageProfile'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'hyper_v_generation': {'key': 'properties.hyperVGeneration', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Image, self).__init__(**kwargs) + self.extended_location = kwargs.get('extended_location', None) + self.source_virtual_machine = kwargs.get('source_virtual_machine', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.provisioning_state = None + self.hyper_v_generation = kwargs.get('hyper_v_generation', None) + + +class ImageDisk(msrest.serialization.Model): + """Describes a image disk. + + :param snapshot: The snapshot. + :type snapshot: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param managed_disk: The managedDisk. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param blob_uri: The Virtual Hard Disk. + :type blob_uri: str + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param 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. :code:`
    `:code:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param storage_account_type: Specifies the storage account type for the managed disk. NOTE: + UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values + include: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", + "StandardSSD_ZRS". + :type storage_account_type: str or ~azure.mgmt.compute.v2021_03_01.models.StorageAccountTypes + :param disk_encryption_set: Specifies the customer managed disk encryption set resource id for + the managed image disk. + :type disk_encryption_set: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSetParameters + """ + + _attribute_map = { + 'snapshot': {'key': 'snapshot', 'type': 'SubResource'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'SubResource'}, + 'blob_uri': {'key': 'blobUri', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_encryption_set': {'key': 'diskEncryptionSet', 'type': 'DiskEncryptionSetParameters'}, + } + + def __init__( + self, + **kwargs + ): + super(ImageDisk, self).__init__(**kwargs) + self.snapshot = kwargs.get('snapshot', None) + self.managed_disk = kwargs.get('managed_disk', None) + self.blob_uri = kwargs.get('blob_uri', None) + self.caching = kwargs.get('caching', None) + self.disk_size_gb = kwargs.get('disk_size_gb', None) + self.storage_account_type = kwargs.get('storage_account_type', None) + self.disk_encryption_set = kwargs.get('disk_encryption_set', None) + + +class ImageDataDisk(ImageDisk): + """Describes a data disk. + + All required parameters must be populated in order to send to Azure. + + :param snapshot: The snapshot. + :type snapshot: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param managed_disk: The managedDisk. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param blob_uri: The Virtual Hard Disk. + :type blob_uri: str + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param 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. :code:`
    `:code:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param storage_account_type: Specifies the storage account type for the managed disk. NOTE: + UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values + include: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", + "StandardSSD_ZRS". + :type storage_account_type: str or ~azure.mgmt.compute.v2021_03_01.models.StorageAccountTypes + :param disk_encryption_set: Specifies the customer managed disk encryption set resource id for + the managed image disk. + :type disk_encryption_set: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSetParameters + :param lun: Required. 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. + :type lun: int + """ + + _validation = { + 'lun': {'required': True}, + } + + _attribute_map = { + 'snapshot': {'key': 'snapshot', 'type': 'SubResource'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'SubResource'}, + 'blob_uri': {'key': 'blobUri', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_encryption_set': {'key': 'diskEncryptionSet', 'type': 'DiskEncryptionSetParameters'}, + 'lun': {'key': 'lun', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(ImageDataDisk, self).__init__(**kwargs) + self.lun = kwargs['lun'] + + +class ImageListResult(msrest.serialization.Model): + """The List Image operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of Images. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.Image] + :param next_link: The uri to fetch the next page of Images. Call ListNext() with this to fetch + the next page of Images. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Image]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ImageListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class ImageOSDisk(ImageDisk): + """Describes an Operating System disk. + + All required parameters must be populated in order to send to Azure. + + :param snapshot: The snapshot. + :type snapshot: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param managed_disk: The managedDisk. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param blob_uri: The Virtual Hard Disk. + :type blob_uri: str + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param 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. :code:`
    `:code:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param storage_account_type: Specifies the storage account type for the managed disk. NOTE: + UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values + include: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", + "StandardSSD_ZRS". + :type storage_account_type: str or ~azure.mgmt.compute.v2021_03_01.models.StorageAccountTypes + :param disk_encryption_set: Specifies the customer managed disk encryption set resource id for + the managed image disk. + :type disk_encryption_set: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSetParameters + :param os_type: Required. 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. :code:`
    `:code:`
    ` Possible + values are: :code:`
    `:code:`
    ` **Windows** :code:`
    `:code:`
    ` **Linux**. Possible + values include: "Windows", "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + :param os_state: Required. The OS State. Possible values include: "Generalized", "Specialized". + :type os_state: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemStateTypes + """ + + _validation = { + 'os_type': {'required': True}, + 'os_state': {'required': True}, + } + + _attribute_map = { + 'snapshot': {'key': 'snapshot', 'type': 'SubResource'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'SubResource'}, + 'blob_uri': {'key': 'blobUri', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_encryption_set': {'key': 'diskEncryptionSet', 'type': 'DiskEncryptionSetParameters'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'os_state': {'key': 'osState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ImageOSDisk, self).__init__(**kwargs) + self.os_type = kwargs['os_type'] + self.os_state = kwargs['os_state'] + + +class ImageReference(SubResource): + """Specifies information about the image to use. You can specify 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. NOTE: Image reference publisher and offer can only be set when you create the scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: Resource Id. + :type id: str + :param publisher: The image publisher. + :type publisher: str + :param offer: Specifies the offer of the platform image or marketplace image used to create the + virtual machine. + :type offer: str + :param sku: The image SKU. + :type sku: str + :param version: Specifies the version of the platform image or marketplace image used to create + the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and + Build are decimal numbers. Specify 'latest' to use the latest version of an image available at + deploy time. Even if you use 'latest', the VM image will not automatically update after deploy + time even if a new version becomes available. + :type version: str + :ivar exact_version: Specifies in decimal numbers, the version of platform image or marketplace + image used to create the virtual machine. This readonly field differs from 'version', only if + the value specified in 'version' field is 'latest'. + :vartype exact_version: str + """ + + _validation = { + 'exact_version': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'offer': {'key': 'offer', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'exact_version': {'key': 'exactVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ImageReference, self).__init__(**kwargs) + self.publisher = kwargs.get('publisher', None) + self.offer = kwargs.get('offer', None) + self.sku = kwargs.get('sku', None) + self.version = kwargs.get('version', None) + self.exact_version = None + + +class ImageStorageProfile(msrest.serialization.Model): + """Describes a storage profile. + + :param os_disk: Specifies information about the operating system disk used by the virtual + machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs + for Azure virtual machines + `_. + :type os_disk: ~azure.mgmt.compute.v2021_03_01.models.ImageOSDisk + :param 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 + `_. + :type data_disks: list[~azure.mgmt.compute.v2021_03_01.models.ImageDataDisk] + :param 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). + :type zone_resilient: bool + """ + + _attribute_map = { + 'os_disk': {'key': 'osDisk', 'type': 'ImageOSDisk'}, + 'data_disks': {'key': 'dataDisks', 'type': '[ImageDataDisk]'}, + 'zone_resilient': {'key': 'zoneResilient', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(ImageStorageProfile, self).__init__(**kwargs) + self.os_disk = kwargs.get('os_disk', None) + self.data_disks = kwargs.get('data_disks', None) + self.zone_resilient = kwargs.get('zone_resilient', None) + + +class ImageUpdate(UpdateResource): + """The source user image virtual hard disk. Only tags may be updated. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param source_virtual_machine: The source virtual machine from which Image is created. + :type source_virtual_machine: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: ~azure.mgmt.compute.v2021_03_01.models.ImageStorageProfile + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + :param 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. Possible values include: "V1", "V2". + :type hyper_v_generation: str or ~azure.mgmt.compute.v2021_03_01.models.HyperVGenerationTypes + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source_virtual_machine': {'key': 'properties.sourceVirtualMachine', 'type': 'SubResource'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'ImageStorageProfile'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'hyper_v_generation': {'key': 'properties.hyperVGeneration', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ImageUpdate, self).__init__(**kwargs) + self.source_virtual_machine = kwargs.get('source_virtual_machine', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.provisioning_state = None + self.hyper_v_generation = kwargs.get('hyper_v_generation', None) + + +class InnerError(msrest.serialization.Model): + """Inner error details. + + :param exceptiontype: The exception type. + :type exceptiontype: str + :param errordetail: The internal error message or exception dump. + :type errordetail: str + """ + + _attribute_map = { + 'exceptiontype': {'key': 'exceptiontype', 'type': 'str'}, + 'errordetail': {'key': 'errordetail', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(InnerError, self).__init__(**kwargs) + self.exceptiontype = kwargs.get('exceptiontype', None) + self.errordetail = kwargs.get('errordetail', None) + + +class InstanceSku(msrest.serialization.Model): + """InstanceSku. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The sku name. + :vartype name: str + :ivar tier: The tier of the cloud service role instance. + :vartype tier: str + """ + + _validation = { + 'name': {'readonly': True}, + 'tier': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(InstanceSku, self).__init__(**kwargs) + self.name = None + self.tier = None + + +class InstanceViewStatus(msrest.serialization.Model): + """Instance view status. + + :param code: The status code. + :type code: str + :param level: The level code. Possible values include: "Info", "Warning", "Error". + :type level: str or ~azure.mgmt.compute.v2021_03_01.models.StatusLevelTypes + :param display_status: The short localizable label for the status. + :type display_status: str + :param message: The detailed status message, including for alerts and error messages. + :type message: str + :param time: The time of the status. + :type time: ~datetime.datetime + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'level': {'key': 'level', 'type': 'str'}, + 'display_status': {'key': 'displayStatus', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'time': {'key': 'time', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(InstanceViewStatus, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.level = kwargs.get('level', None) + self.display_status = kwargs.get('display_status', None) + self.message = kwargs.get('message', None) + self.time = kwargs.get('time', None) + + +class InstanceViewStatusesSummary(msrest.serialization.Model): + """Instance view statuses. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar statuses_summary: + :vartype statuses_summary: list[~azure.mgmt.compute.v2021_03_01.models.StatusCodeCount] + """ + + _validation = { + 'statuses_summary': {'readonly': True}, + } + + _attribute_map = { + 'statuses_summary': {'key': 'statusesSummary', 'type': '[StatusCodeCount]'}, + } + + def __init__( + self, + **kwargs + ): + super(InstanceViewStatusesSummary, self).__init__(**kwargs) + self.statuses_summary = None + + +class KeyVaultKeyReference(msrest.serialization.Model): + """Describes a reference to Key Vault Key. + + All required parameters must be populated in order to send to Azure. + + :param key_url: Required. The URL referencing a key encryption key in Key Vault. + :type key_url: str + :param source_vault: Required. The relative URL of the Key Vault containing the key. + :type source_vault: ~azure.mgmt.compute.v2021_03_01.models.SubResource + """ + + _validation = { + 'key_url': {'required': True}, + 'source_vault': {'required': True}, + } + + _attribute_map = { + 'key_url': {'key': 'keyUrl', 'type': 'str'}, + 'source_vault': {'key': 'sourceVault', 'type': 'SubResource'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyVaultKeyReference, self).__init__(**kwargs) + self.key_url = kwargs['key_url'] + self.source_vault = kwargs['source_vault'] + + +class KeyVaultSecretReference(msrest.serialization.Model): + """Describes a reference to Key Vault Secret. + + All required parameters must be populated in order to send to Azure. + + :param secret_url: Required. The URL referencing a secret in a Key Vault. + :type secret_url: str + :param source_vault: Required. The relative URL of the Key Vault containing the secret. + :type source_vault: ~azure.mgmt.compute.v2021_03_01.models.SubResource + """ + + _validation = { + 'secret_url': {'required': True}, + 'source_vault': {'required': True}, + } + + _attribute_map = { + 'secret_url': {'key': 'secretUrl', 'type': 'str'}, + 'source_vault': {'key': 'sourceVault', 'type': 'SubResource'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyVaultSecretReference, self).__init__(**kwargs) + self.secret_url = kwargs['secret_url'] + self.source_vault = kwargs['source_vault'] + + +class LastPatchInstallationSummary(msrest.serialization.Model): + """Describes the properties of the last installed patch summary. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", + or "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.compute.v2021_03_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 maintenance_window_exceeded: Describes whether the operation ran out of time before it + completed all its intended actions. + :vartype maintenance_window_exceeded: bool + :ivar not_selected_patch_count: The number of all available patches but not going to be + installed because it didn't match a classification or inclusion list entry. + :vartype not_selected_patch_count: int + :ivar excluded_patch_count: The number of all available patches but excluded explicitly by a + customer-specified exclusion list match. + :vartype excluded_patch_count: int + :ivar pending_patch_count: The number of all available patches expected to be installed over + the course of the patch installation operation. + :vartype pending_patch_count: int + :ivar installed_patch_count: The count of patches that successfully installed. + :vartype installed_patch_count: int + :ivar failed_patch_count: The count of patches that failed installation. + :vartype failed_patch_count: int + :ivar start_time: The UTC timestamp when the operation began. + :vartype start_time: ~datetime.datetime + :ivar last_modified_time: The UTC timestamp when the operation began. + :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.v2021_03_01.models.ApiError + """ + + _validation = { + 'status': {'readonly': True}, + 'installation_activity_id': {'readonly': True}, + 'maintenance_window_exceeded': {'readonly': True}, + 'not_selected_patch_count': {'readonly': True}, + 'excluded_patch_count': {'readonly': True}, + 'pending_patch_count': {'readonly': True}, + 'installed_patch_count': {'readonly': True}, + 'failed_patch_count': {'readonly': True}, + 'start_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'installation_activity_id': {'key': 'installationActivityId', 'type': 'str'}, + 'maintenance_window_exceeded': {'key': 'maintenanceWindowExceeded', 'type': 'bool'}, + 'not_selected_patch_count': {'key': 'notSelectedPatchCount', 'type': 'int'}, + 'excluded_patch_count': {'key': 'excludedPatchCount', 'type': 'int'}, + 'pending_patch_count': {'key': 'pendingPatchCount', 'type': 'int'}, + 'installed_patch_count': {'key': 'installedPatchCount', 'type': 'int'}, + 'failed_patch_count': {'key': 'failedPatchCount', 'type': 'int'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'ApiError'}, + } + + def __init__( + self, + **kwargs + ): + super(LastPatchInstallationSummary, self).__init__(**kwargs) + self.status = None + self.installation_activity_id = None + self.maintenance_window_exceeded = None + self.not_selected_patch_count = None + self.excluded_patch_count = None + self.pending_patch_count = None + self.installed_patch_count = None + self.failed_patch_count = None + self.start_time = None + self.last_modified_time = None + self.error = None + + +class LinuxConfiguration(msrest.serialization.Model): + """Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. + + :param disable_password_authentication: Specifies whether password authentication should be + disabled. + :type disable_password_authentication: bool + :param ssh: Specifies the ssh key configuration for a Linux OS. + :type ssh: ~azure.mgmt.compute.v2021_03_01.models.SshConfiguration + :param provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the + virtual machine. :code:`
    `:code:`
    ` 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 be added to the VM later. + :type provision_vm_agent: bool + :param patch_settings: [Preview Feature] Specifies settings related to VM Guest Patching on + Linux. + :type patch_settings: ~azure.mgmt.compute.v2021_03_01.models.LinuxPatchSettings + """ + + _attribute_map = { + 'disable_password_authentication': {'key': 'disablePasswordAuthentication', 'type': 'bool'}, + 'ssh': {'key': 'ssh', 'type': 'SshConfiguration'}, + 'provision_vm_agent': {'key': 'provisionVMAgent', 'type': 'bool'}, + 'patch_settings': {'key': 'patchSettings', 'type': 'LinuxPatchSettings'}, + } + + def __init__( + self, + **kwargs + ): + super(LinuxConfiguration, self).__init__(**kwargs) + self.disable_password_authentication = kwargs.get('disable_password_authentication', None) + self.ssh = kwargs.get('ssh', None) + self.provision_vm_agent = kwargs.get('provision_vm_agent', None) + self.patch_settings = kwargs.get('patch_settings', None) + + +class LinuxParameters(msrest.serialization.Model): + """Input for InstallPatches on a Linux VM, as directly received by the API. + + :param classifications_to_include: The update classifications to select when installing patches + for Linux. + :type classifications_to_include: list[str or + ~azure.mgmt.compute.v2021_03_01.models.VMGuestPatchClassificationLinux] + :param package_name_masks_to_include: packages to include in the patch operation. Format: + packageName_packageVersion. + :type package_name_masks_to_include: list[str] + :param package_name_masks_to_exclude: packages to exclude in the patch operation. Format: + packageName_packageVersion. + :type package_name_masks_to_exclude: list[str] + :param maintenance_run_id: This is used as a maintenance run identifier for Auto VM Guest + Patching in Linux. + :type maintenance_run_id: str + """ + + _attribute_map = { + 'classifications_to_include': {'key': 'classificationsToInclude', 'type': '[str]'}, + 'package_name_masks_to_include': {'key': 'packageNameMasksToInclude', 'type': '[str]'}, + 'package_name_masks_to_exclude': {'key': 'packageNameMasksToExclude', 'type': '[str]'}, + 'maintenance_run_id': {'key': 'maintenanceRunId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LinuxParameters, self).__init__(**kwargs) + self.classifications_to_include = kwargs.get('classifications_to_include', None) + self.package_name_masks_to_include = kwargs.get('package_name_masks_to_include', None) + self.package_name_masks_to_exclude = kwargs.get('package_name_masks_to_exclude', None) + self.maintenance_run_id = kwargs.get('maintenance_run_id', None) + + +class LinuxPatchSettings(msrest.serialization.Model): + """Specifies settings related to VM Guest Patching on Linux. + + :param patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual + machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
    `:code:`
    ` Possible values are::code:`
    `:code:`
    ` **ImageDefault** - The + virtual machine's default patching configuration is used. :code:`
    `:code:`
    ` + **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. + The property provisionVMAgent must be true. Possible values include: "ImageDefault", + "AutomaticByPlatform". + :type patch_mode: str or ~azure.mgmt.compute.v2021_03_01.models.LinuxVMGuestPatchMode + :param 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. :code:`
    `:code:`
    ` **AutomaticByPlatform** - The platform will trigger periodic patch + assessments. The property provisionVMAgent must be true. Possible values include: + "ImageDefault", "AutomaticByPlatform". + :type assessment_mode: str or ~azure.mgmt.compute.v2021_03_01.models.LinuxPatchAssessmentMode + """ + + _attribute_map = { + 'patch_mode': {'key': 'patchMode', 'type': 'str'}, + 'assessment_mode': {'key': 'assessmentMode', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LinuxPatchSettings, self).__init__(**kwargs) + self.patch_mode = kwargs.get('patch_mode', None) + self.assessment_mode = kwargs.get('assessment_mode', None) + + +class ListUsagesResult(msrest.serialization.Model): + """The List Usages operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of compute resource usages. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.Usage] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Usage]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ListUsagesResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class LoadBalancerConfiguration(msrest.serialization.Model): + """Describes the load balancer configuration. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource Id. + :type id: str + :param name: Required. The name of the Load balancer. + :type name: str + :param properties: Required. Properties of the load balancer configuration. + :type properties: ~azure.mgmt.compute.v2021_03_01.models.LoadBalancerConfigurationProperties + """ + + _validation = { + 'name': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'LoadBalancerConfigurationProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(LoadBalancerConfiguration, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = kwargs['name'] + self.properties = kwargs['properties'] + + +class LoadBalancerConfigurationProperties(msrest.serialization.Model): + """LoadBalancerConfigurationProperties. + + All required parameters must be populated in order to send to Azure. + + :param frontend_ip_configurations: Required. Specifies the frontend IP to be used for the load + balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must + have exactly one frontend IP configuration. + :type frontend_ip_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.LoadBalancerFrontendIPConfiguration] + """ + + _validation = { + 'frontend_ip_configurations': {'required': True}, + } + + _attribute_map = { + 'frontend_ip_configurations': {'key': 'frontendIPConfigurations', 'type': '[LoadBalancerFrontendIPConfiguration]'}, + } + + def __init__( + self, + **kwargs + ): + super(LoadBalancerConfigurationProperties, self).__init__(**kwargs) + self.frontend_ip_configurations = kwargs['frontend_ip_configurations'] + + +class LoadBalancerFrontendIPConfiguration(msrest.serialization.Model): + """LoadBalancerFrontendIPConfiguration. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the resource that is unique within the set of frontend IP + configurations used by the load balancer. This name can be used to access the resource. + :type name: str + :param properties: Required. Properties of load balancer frontend ip configuration. + :type properties: + ~azure.mgmt.compute.v2021_03_01.models.LoadBalancerFrontendIPConfigurationProperties + """ + + _validation = { + 'name': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'LoadBalancerFrontendIPConfigurationProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(LoadBalancerFrontendIPConfiguration, self).__init__(**kwargs) + self.name = kwargs['name'] + self.properties = kwargs['properties'] + + +class LoadBalancerFrontendIPConfigurationProperties(msrest.serialization.Model): + """Describes a cloud service IP Configuration. + + :param public_ip_address: The reference to the public ip address resource. + :type public_ip_address: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param subnet: The reference to the virtual network subnet resource. + :type subnet: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param private_ip_address: The virtual network private IP address of the IP configuration. + :type private_ip_address: str + """ + + _attribute_map = { + 'public_ip_address': {'key': 'publicIPAddress', 'type': 'SubResource'}, + 'subnet': {'key': 'subnet', 'type': 'SubResource'}, + 'private_ip_address': {'key': 'privateIPAddress', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LoadBalancerFrontendIPConfigurationProperties, self).__init__(**kwargs) + self.public_ip_address = kwargs.get('public_ip_address', None) + self.subnet = kwargs.get('subnet', None) + self.private_ip_address = kwargs.get('private_ip_address', None) + + +class LogAnalyticsInputBase(msrest.serialization.Model): + """Api input base class for LogAnalytics Api. + + All required parameters must be populated in order to send to Azure. + + :param blob_container_sas_uri: Required. SAS Uri of the logging blob container to which + LogAnalytics Api writes output logs to. + :type blob_container_sas_uri: str + :param from_time: Required. From time of the query. + :type from_time: ~datetime.datetime + :param to_time: Required. To time of the query. + :type to_time: ~datetime.datetime + :param group_by_throttle_policy: Group query result by Throttle Policy applied. + :type group_by_throttle_policy: bool + :param group_by_operation_name: Group query result by Operation Name. + :type group_by_operation_name: bool + :param group_by_resource_name: Group query result by Resource Name. + :type group_by_resource_name: bool + :param group_by_client_application_id: Group query result by Client Application ID. + :type group_by_client_application_id: bool + :param group_by_user_agent: Group query result by User Agent. + :type group_by_user_agent: bool + """ + + _validation = { + 'blob_container_sas_uri': {'required': True}, + 'from_time': {'required': True}, + 'to_time': {'required': True}, + } + + _attribute_map = { + 'blob_container_sas_uri': {'key': 'blobContainerSasUri', 'type': 'str'}, + 'from_time': {'key': 'fromTime', 'type': 'iso-8601'}, + 'to_time': {'key': 'toTime', 'type': 'iso-8601'}, + 'group_by_throttle_policy': {'key': 'groupByThrottlePolicy', 'type': 'bool'}, + 'group_by_operation_name': {'key': 'groupByOperationName', 'type': 'bool'}, + 'group_by_resource_name': {'key': 'groupByResourceName', 'type': 'bool'}, + 'group_by_client_application_id': {'key': 'groupByClientApplicationId', 'type': 'bool'}, + 'group_by_user_agent': {'key': 'groupByUserAgent', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(LogAnalyticsInputBase, self).__init__(**kwargs) + self.blob_container_sas_uri = kwargs['blob_container_sas_uri'] + self.from_time = kwargs['from_time'] + self.to_time = kwargs['to_time'] + self.group_by_throttle_policy = kwargs.get('group_by_throttle_policy', None) + self.group_by_operation_name = kwargs.get('group_by_operation_name', None) + self.group_by_resource_name = kwargs.get('group_by_resource_name', None) + self.group_by_client_application_id = kwargs.get('group_by_client_application_id', None) + self.group_by_user_agent = kwargs.get('group_by_user_agent', None) + + +class LogAnalyticsOperationResult(msrest.serialization.Model): + """LogAnalytics operation status response. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar properties: LogAnalyticsOutput. + :vartype properties: ~azure.mgmt.compute.v2021_03_01.models.LogAnalyticsOutput + """ + + _validation = { + 'properties': {'readonly': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'LogAnalyticsOutput'}, + } + + def __init__( + self, + **kwargs + ): + super(LogAnalyticsOperationResult, self).__init__(**kwargs) + self.properties = None + + +class LogAnalyticsOutput(msrest.serialization.Model): + """LogAnalytics output properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar output: Output file Uri path to blob container. + :vartype output: str + """ + + _validation = { + 'output': {'readonly': True}, + } + + _attribute_map = { + 'output': {'key': 'output', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LogAnalyticsOutput, self).__init__(**kwargs) + self.output = None + + +class MaintenanceRedeployStatus(msrest.serialization.Model): + """Maintenance Operation Status. + + :param is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform + Maintenance. + :type is_customer_initiated_maintenance_allowed: bool + :param pre_maintenance_window_start_time: Start Time for the Pre Maintenance Window. + :type pre_maintenance_window_start_time: ~datetime.datetime + :param pre_maintenance_window_end_time: End Time for the Pre Maintenance Window. + :type pre_maintenance_window_end_time: ~datetime.datetime + :param maintenance_window_start_time: Start Time for the Maintenance Window. + :type maintenance_window_start_time: ~datetime.datetime + :param maintenance_window_end_time: End Time for the Maintenance Window. + :type maintenance_window_end_time: ~datetime.datetime + :param last_operation_result_code: The Last Maintenance Operation Result Code. Possible values + include: "None", "RetryLater", "MaintenanceAborted", "MaintenanceCompleted". + :type last_operation_result_code: str or + ~azure.mgmt.compute.v2021_03_01.models.MaintenanceOperationResultCodeTypes + :param last_operation_message: Message returned for the last Maintenance Operation. + :type last_operation_message: str + """ + + _attribute_map = { + 'is_customer_initiated_maintenance_allowed': {'key': 'isCustomerInitiatedMaintenanceAllowed', 'type': 'bool'}, + 'pre_maintenance_window_start_time': {'key': 'preMaintenanceWindowStartTime', 'type': 'iso-8601'}, + 'pre_maintenance_window_end_time': {'key': 'preMaintenanceWindowEndTime', 'type': 'iso-8601'}, + 'maintenance_window_start_time': {'key': 'maintenanceWindowStartTime', 'type': 'iso-8601'}, + 'maintenance_window_end_time': {'key': 'maintenanceWindowEndTime', 'type': 'iso-8601'}, + 'last_operation_result_code': {'key': 'lastOperationResultCode', 'type': 'str'}, + 'last_operation_message': {'key': 'lastOperationMessage', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(MaintenanceRedeployStatus, self).__init__(**kwargs) + self.is_customer_initiated_maintenance_allowed = kwargs.get('is_customer_initiated_maintenance_allowed', None) + self.pre_maintenance_window_start_time = kwargs.get('pre_maintenance_window_start_time', None) + self.pre_maintenance_window_end_time = kwargs.get('pre_maintenance_window_end_time', None) + self.maintenance_window_start_time = kwargs.get('maintenance_window_start_time', None) + self.maintenance_window_end_time = kwargs.get('maintenance_window_end_time', None) + self.last_operation_result_code = kwargs.get('last_operation_result_code', None) + self.last_operation_message = kwargs.get('last_operation_message', None) + + +class ManagedDiskParameters(SubResource): + """The parameters of a managed disk. + + :param id: Resource Id. + :type id: str + :param storage_account_type: Specifies the storage account type for the managed disk. NOTE: + UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values + include: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", + "StandardSSD_ZRS". + :type storage_account_type: str or ~azure.mgmt.compute.v2021_03_01.models.StorageAccountTypes + :param disk_encryption_set: Specifies the customer managed disk encryption set resource id for + the managed disk. + :type disk_encryption_set: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSetParameters + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_encryption_set': {'key': 'diskEncryptionSet', 'type': 'DiskEncryptionSetParameters'}, + } + + def __init__( + self, + **kwargs + ): + super(ManagedDiskParameters, self).__init__(**kwargs) + self.storage_account_type = kwargs.get('storage_account_type', None) + self.disk_encryption_set = kwargs.get('disk_encryption_set', None) + + +class NetworkInterfaceReference(SubResource): + """Describes a network interface reference. + + :param id: Resource Id. + :type id: str + :param primary: Specifies the primary network interface in case the virtual machine has more + than 1 network interface. + :type primary: bool + :param delete_option: Specify what happens to the network interface when the VM is deleted. + Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(NetworkInterfaceReference, self).__init__(**kwargs) + self.primary = kwargs.get('primary', None) + self.delete_option = kwargs.get('delete_option', None) + + +class NetworkProfile(msrest.serialization.Model): + """Specifies the network interfaces or the networking configuration of the virtual machine. + + :param network_interfaces: Specifies the list of resource Ids for the network interfaces + associated with the virtual machine. + :type network_interfaces: + list[~azure.mgmt.compute.v2021_03_01.models.NetworkInterfaceReference] + :param network_api_version: specifies the Microsoft.Network API version used when creating + networking resources in the Network Interface Configurations. Possible values include: + "2020-11-01". + :type network_api_version: str or ~azure.mgmt.compute.v2021_03_01.models.NetworkApiVersion + :param network_interface_configurations: Specifies the networking configurations that will be + used to create the virtual machine networking resources. + :type network_interface_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineNetworkInterfaceConfiguration] + """ + + _attribute_map = { + 'network_interfaces': {'key': 'networkInterfaces', 'type': '[NetworkInterfaceReference]'}, + 'network_api_version': {'key': 'networkApiVersion', 'type': 'str'}, + 'network_interface_configurations': {'key': 'networkInterfaceConfigurations', 'type': '[VirtualMachineNetworkInterfaceConfiguration]'}, + } + + def __init__( + self, + **kwargs + ): + super(NetworkProfile, self).__init__(**kwargs) + self.network_interfaces = kwargs.get('network_interfaces', None) + self.network_api_version = kwargs.get('network_api_version', None) + self.network_interface_configurations = kwargs.get('network_interface_configurations', None) + + +class OrchestrationServiceStateInput(msrest.serialization.Model): + """The input for OrchestrationServiceState. + + All required parameters must be populated in order to send to Azure. + + :param service_name: Required. The name of the service. Possible values include: + "AutomaticRepairs", "DummyOrchestrationServiceName". + :type service_name: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceNames + :param action: Required. The action to be performed. Possible values include: "Resume", + "Suspend". + :type action: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceStateAction + """ + + _validation = { + 'service_name': {'required': True}, + 'action': {'required': True}, + } + + _attribute_map = { + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'action': {'key': 'action', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OrchestrationServiceStateInput, self).__init__(**kwargs) + self.service_name = kwargs['service_name'] + self.action = kwargs['action'] + + +class OrchestrationServiceSummary(msrest.serialization.Model): + """Summary for an orchestration service of a virtual machine scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar service_name: The name of the service. Possible values include: "AutomaticRepairs", + "DummyOrchestrationServiceName". + :vartype service_name: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceNames + :ivar service_state: The current state of the service. Possible values include: "NotRunning", + "Running", "Suspended". + :vartype service_state: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceState + """ + + _validation = { + 'service_name': {'readonly': True}, + 'service_state': {'readonly': True}, + } + + _attribute_map = { + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'service_state': {'key': 'serviceState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OrchestrationServiceSummary, self).__init__(**kwargs) + self.service_name = None + self.service_state = None + + +class OSDisk(msrest.serialization.Model): + """Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + + All required parameters must be populated in order to send to Azure. + + :param 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. :code:`
    `:code:`
    ` Possible + values are: :code:`
    `:code:`
    ` **Windows** :code:`
    `:code:`
    ` **Linux**. Possible + values include: "Windows", "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + :param encryption_settings: Specifies the encryption settings for the OS Disk. + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type encryption_settings: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSettings + :param name: The disk name. + :type name: str + :param vhd: The virtual hard disk. + :type vhd: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param 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. + :type image: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None** for Standard + storage. **ReadOnly** for Premium storage. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or + disabled on the disk. + :type write_accelerator_enabled: bool + :param diff_disk_settings: Specifies the ephemeral Disk Settings for the operating system disk + used by the virtual machine. + :type diff_disk_settings: ~azure.mgmt.compute.v2021_03_01.models.DiffDiskSettings + :param create_option: Required. Specifies how the virtual machine should be + created.:code:`
    `:code:`
    ` Possible values are::code:`
    `:code:`
    ` **Attach** \u2013 + This value is used when you are using a specialized disk to create the virtual + machine.:code:`
    `:code:`
    ` **FromImage** \u2013 This value is used when you are using an + image to create the virtual machine. If you are using a platform image, you also use the + imageReference element described above. If you are using a marketplace image, you also use the + plan element previously described. Possible values include: "FromImage", "Empty", "Attach". + :type create_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskCreateOptionTypes + :param 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:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param managed_disk: The managed disk parameters. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.ManagedDiskParameters + :param delete_option: Specifies whether OS Disk should be deleted or detached upon VM deletion. + :code:`
    `:code:`
    ` Possible values: :code:`
    `:code:`
    ` **Delete** If this value is + used, the OS disk is deleted when VM is deleted.:code:`
    `:code:`
    ` **Detach** If this + value is used, the os disk is retained after VM is deleted. :code:`
    `:code:`
    ` The + default value is set to **detach**. For an ephemeral OS Disk, the default value is set to + **Delete**. User cannot change the delete option for ephemeral OS Disk. Possible values + include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskDeleteOptionTypes + """ + + _validation = { + 'create_option': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'encryption_settings': {'key': 'encryptionSettings', 'type': 'DiskEncryptionSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'vhd': {'key': 'vhd', 'type': 'VirtualHardDisk'}, + 'image': {'key': 'image', 'type': 'VirtualHardDisk'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'}, + 'diff_disk_settings': {'key': 'diffDiskSettings', 'type': 'DiffDiskSettings'}, + 'create_option': {'key': 'createOption', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'}, + 'delete_option': {'key': 'deleteOption', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OSDisk, self).__init__(**kwargs) + self.os_type = kwargs.get('os_type', None) + self.encryption_settings = kwargs.get('encryption_settings', None) + self.name = kwargs.get('name', None) + self.vhd = kwargs.get('vhd', None) + self.image = kwargs.get('image', None) + self.caching = kwargs.get('caching', None) + self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None) + self.diff_disk_settings = kwargs.get('diff_disk_settings', None) + self.create_option = kwargs['create_option'] + self.disk_size_gb = kwargs.get('disk_size_gb', None) + self.managed_disk = kwargs.get('managed_disk', None) + self.delete_option = kwargs.get('delete_option', None) + + +class OSDiskImage(msrest.serialization.Model): + """Contains the os disk image information. + + All required parameters must be populated in order to send to Azure. + + :param operating_system: Required. The operating system of the osDiskImage. Possible values + include: "Windows", "Linux". + :type operating_system: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + """ + + _validation = { + 'operating_system': {'required': True}, + } + + _attribute_map = { + 'operating_system': {'key': 'operatingSystem', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OSDiskImage, self).__init__(**kwargs) + self.operating_system = kwargs['operating_system'] + + +class OSFamily(msrest.serialization.Model): + """Describes a cloud service OS family. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :param properties: OS family properties. + :type properties: ~azure.mgmt.compute.v2021_03_01.models.OSFamilyProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OSFamilyProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(OSFamily, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = None + self.properties = kwargs.get('properties', None) + + +class OSFamilyListResult(msrest.serialization.Model): + """OSFamilyListResult. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.OSFamily] + :param next_link: + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[OSFamily]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OSFamilyListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class OSFamilyProperties(msrest.serialization.Model): + """OS family properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The OS family name. + :vartype name: str + :ivar label: The OS family label. + :vartype label: str + :ivar versions: List of OS versions belonging to this family. + :vartype versions: list[~azure.mgmt.compute.v2021_03_01.models.OSVersionPropertiesBase] + """ + + _validation = { + 'name': {'readonly': True}, + 'label': {'readonly': True}, + 'versions': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[OSVersionPropertiesBase]'}, + } + + def __init__( + self, + **kwargs + ): + super(OSFamilyProperties, self).__init__(**kwargs) + self.name = None + self.label = None + self.versions = None + + +class OSProfile(msrest.serialization.Model): + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + + :param computer_name: Specifies the host OS name of the virtual machine. + :code:`
    `:code:`
    ` This name cannot be updated after the VM is created. + :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` + **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and + restrictions see `Azure infrastructure services implementation guidelines + `_. + :type computer_name: str + :param admin_username: Specifies the name of the administrator account. + :code:`
    `:code:`
    ` This property cannot be updated after the VM is created. + :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." + :code:`
    `:code:`
    ` **Disallowed values:** "administrator", "admin", "user", "user1", + "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", + "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", + "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". + :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` + **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 + characters. + :type admin_username: str + :param admin_password: Specifies the password of the administrator account. + :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` + **Minimum-length (Linux):** 6 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 123 + characters :code:`
    `:code:`
    ` **Max-length (Linux):** 72 characters + :code:`
    `:code:`
    ` **Complexity requirements:** 3 out of 4 conditions below need to be + fulfilled :code:`
    ` Has lower characters :code:`
    `Has upper characters :code:`
    ` Has a + digit :code:`
    ` Has a special character (Regex match [\W_]) :code:`
    `:code:`
    ` + **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", + "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For + resetting the password, see `How to reset the Remote Desktop service or its login password in a + Windows VM `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. + :type admin_password: str + :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded + string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum + length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` **Note: Do not pass any + secrets or passwords in customData property** :code:`
    `:code:`
    ` This property cannot be + updated after the VM is created. :code:`
    `:code:`
    ` customData is passed to the VM to be + saved as a file, for more information see `Custom Data on Azure VMs + `_ + :code:`
    `:code:`
    ` For using cloud-init for your Linux VM, see `Using cloud-init to + customize a Linux VM during creation + `_. + :type custom_data: str + :param windows_configuration: Specifies Windows operating system settings on the virtual + machine. + :type windows_configuration: ~azure.mgmt.compute.v2021_03_01.models.WindowsConfiguration + :param linux_configuration: Specifies the Linux operating system settings on the virtual + machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_. + :type linux_configuration: ~azure.mgmt.compute.v2021_03_01.models.LinuxConfiguration + :param secrets: Specifies set of certificates that should be installed onto the virtual + machine. + :type secrets: list[~azure.mgmt.compute.v2021_03_01.models.VaultSecretGroup] + :param allow_extension_operations: Specifies whether extension operations should be allowed on + the virtual machine. :code:`
    `:code:`
    `This may only be set to False when no extensions + are present on the virtual machine. + :type allow_extension_operations: bool + :param require_guest_provision_signal: Specifies whether the guest provision signal is required + to infer provision success of the virtual machine. **Note: This property is for private + testing only, and all customers must not set the property to false.**. + :type require_guest_provision_signal: bool + """ + + _attribute_map = { + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'admin_password': {'key': 'adminPassword', 'type': 'str'}, + 'custom_data': {'key': 'customData', 'type': 'str'}, + 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'WindowsConfiguration'}, + 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'LinuxConfiguration'}, + 'secrets': {'key': 'secrets', 'type': '[VaultSecretGroup]'}, + 'allow_extension_operations': {'key': 'allowExtensionOperations', 'type': 'bool'}, + 'require_guest_provision_signal': {'key': 'requireGuestProvisionSignal', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(OSProfile, self).__init__(**kwargs) + self.computer_name = kwargs.get('computer_name', None) + self.admin_username = kwargs.get('admin_username', None) + self.admin_password = kwargs.get('admin_password', None) + self.custom_data = kwargs.get('custom_data', None) + self.windows_configuration = kwargs.get('windows_configuration', None) + self.linux_configuration = kwargs.get('linux_configuration', None) + self.secrets = kwargs.get('secrets', None) + self.allow_extension_operations = kwargs.get('allow_extension_operations', None) + self.require_guest_provision_signal = kwargs.get('require_guest_provision_signal', None) + + +class OSVersion(msrest.serialization.Model): + """Describes a cloud service OS version. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :param properties: OS version properties. + :type properties: ~azure.mgmt.compute.v2021_03_01.models.OSVersionProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OSVersionProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(OSVersion, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = None + self.properties = kwargs.get('properties', None) + + +class OSVersionListResult(msrest.serialization.Model): + """OSVersionListResult. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.OSVersion] + :param next_link: + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[OSVersion]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OSVersionListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) class OSVersionProperties(msrest.serialization.Model): @@ -1099,196 +3833,6627 @@ class OSVersionProperties(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar family: The family of this OS version. - :vartype family: str - :ivar family_label: The family label of this OS version. - :vartype family_label: str - :ivar version: The OS version. - :vartype version: str - :ivar label: The OS version label. - :vartype label: str - :ivar is_default: Specifies whether this is the default OS version for its family. - :vartype is_default: bool - :ivar is_active: Specifies whether this OS version is active. - :vartype is_active: bool + :ivar family: The family of this OS version. + :vartype family: str + :ivar family_label: The family label of this OS version. + :vartype family_label: str + :ivar version: The OS version. + :vartype version: str + :ivar label: The OS version label. + :vartype label: str + :ivar is_default: Specifies whether this is the default OS version for its family. + :vartype is_default: bool + :ivar is_active: Specifies whether this OS version is active. + :vartype is_active: bool + """ + + _validation = { + 'family': {'readonly': True}, + 'family_label': {'readonly': True}, + 'version': {'readonly': True}, + 'label': {'readonly': True}, + 'is_default': {'readonly': True}, + 'is_active': {'readonly': True}, + } + + _attribute_map = { + 'family': {'key': 'family', 'type': 'str'}, + 'family_label': {'key': 'familyLabel', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(OSVersionProperties, self).__init__(**kwargs) + self.family = None + self.family_label = None + self.version = None + self.label = None + self.is_default = None + self.is_active = None + + +class OSVersionPropertiesBase(msrest.serialization.Model): + """Configuration view of an OS version. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar version: The OS version. + :vartype version: str + :ivar label: The OS version label. + :vartype label: str + :ivar is_default: Specifies whether this is the default OS version for its family. + :vartype is_default: bool + :ivar is_active: Specifies whether this OS version is active. + :vartype is_active: bool + """ + + _validation = { + 'version': {'readonly': True}, + 'label': {'readonly': True}, + 'is_default': {'readonly': True}, + 'is_active': {'readonly': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(OSVersionPropertiesBase, self).__init__(**kwargs) + self.version = None + self.label = None + self.is_default = None + self.is_active = None + + +class PatchInstallationDetail(msrest.serialization.Model): + """Information about a specific patch that was encountered during an installation action. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar patch_id: A unique identifier for the patch. + :vartype patch_id: str + :ivar name: The friendly name of the patch. + :vartype name: str + :ivar version: The version string of the package. It may conform to Semantic Versioning. Only + applies to Linux. + :vartype version: str + :ivar kb_id: The KBID of the patch. Only applies to Windows patches. + :vartype kb_id: str + :ivar classifications: The classification(s) of the patch as provided by the patch publisher. + :vartype classifications: list[str] + :ivar installation_state: The state of the patch after the installation operation completed. + Possible values include: "Unknown", "Installed", "Failed", "Excluded", "NotSelected", + "Pending". + :vartype installation_state: str or + ~azure.mgmt.compute.v2021_03_01.models.PatchInstallationState + """ + + _validation = { + 'patch_id': {'readonly': True}, + 'name': {'readonly': True}, + 'version': {'readonly': True}, + 'kb_id': {'readonly': True}, + 'classifications': {'readonly': True}, + 'installation_state': {'readonly': True}, + } + + _attribute_map = { + 'patch_id': {'key': 'patchId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'kb_id': {'key': 'kbId', 'type': 'str'}, + 'classifications': {'key': 'classifications', 'type': '[str]'}, + 'installation_state': {'key': 'installationState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PatchInstallationDetail, self).__init__(**kwargs) + self.patch_id = None + self.name = None + self.version = None + self.kb_id = None + self.classifications = None + self.installation_state = None + + +class PatchSettings(msrest.serialization.Model): + """Specifies settings related to VM Guest Patching on Windows. + + :param patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual + machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
    `:code:`
    ` Possible values are::code:`
    `:code:`
    ` **Manual** - You control + the application of patches to a virtual machine. You do this by applying patches manually + inside the VM. In this mode, automatic updates are disabled; the property + WindowsConfiguration.enableAutomaticUpdates must be false:code:`
    `:code:`
    ` + **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property + WindowsConfiguration.enableAutomaticUpdates must be true. :code:`
    `:code:`
    ` + **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The + properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. + Possible values include: "Manual", "AutomaticByOS", "AutomaticByPlatform". + :type patch_mode: str or ~azure.mgmt.compute.v2021_03_01.models.WindowsVMGuestPatchMode + :param 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'. + :type enable_hotpatching: bool + :param 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.:code:`
    `:code:`
    ` **AutomaticByPlatform** - The platform will trigger periodic patch + assessments. The property provisionVMAgent must be true. Possible values include: + "ImageDefault", "AutomaticByPlatform". + :type assessment_mode: str or ~azure.mgmt.compute.v2021_03_01.models.WindowsPatchAssessmentMode + """ + + _attribute_map = { + 'patch_mode': {'key': 'patchMode', 'type': 'str'}, + 'enable_hotpatching': {'key': 'enableHotpatching', 'type': 'bool'}, + 'assessment_mode': {'key': 'assessmentMode', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PatchSettings, self).__init__(**kwargs) + self.patch_mode = kwargs.get('patch_mode', None) + self.enable_hotpatching = kwargs.get('enable_hotpatching', None) + self.assessment_mode = kwargs.get('assessment_mode', None) + + +class Plan(msrest.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 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**. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: Specifies the product of the image from the marketplace. This is the same value + as Offer under the imageReference element. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Plan, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.publisher = kwargs.get('publisher', None) + self.product = kwargs.get('product', None) + self.promotion_code = kwargs.get('promotion_code', None) + + +class ProximityPlacementGroup(Resource): + """Specifies information about the proximity placement group. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param proximity_placement_group_type: Specifies the type of the proximity placement group. + :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **Standard** : Co-locate + resources within an Azure region or Availability Zone. :code:`
    `:code:`
    ` **Ultra** : For + future use. Possible values include: "Standard", "Ultra". + :type proximity_placement_group_type: str or + ~azure.mgmt.compute.v2021_03_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.v2021_03_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.v2021_03_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.v2021_03_01.models.SubResourceWithColocationStatus] + :param colocation_status: Describes colocation status of the Proximity Placement Group. + :type colocation_status: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'virtual_machines': {'readonly': True}, + 'virtual_machine_scale_sets': {'readonly': True}, + 'availability_sets': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'proximity_placement_group_type': {'key': 'properties.proximityPlacementGroupType', 'type': 'str'}, + 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResourceWithColocationStatus]'}, + 'virtual_machine_scale_sets': {'key': 'properties.virtualMachineScaleSets', 'type': '[SubResourceWithColocationStatus]'}, + 'availability_sets': {'key': 'properties.availabilitySets', 'type': '[SubResourceWithColocationStatus]'}, + 'colocation_status': {'key': 'properties.colocationStatus', 'type': 'InstanceViewStatus'}, + } + + def __init__( + self, + **kwargs + ): + super(ProximityPlacementGroup, self).__init__(**kwargs) + self.proximity_placement_group_type = kwargs.get('proximity_placement_group_type', None) + self.virtual_machines = None + self.virtual_machine_scale_sets = None + self.availability_sets = None + self.colocation_status = kwargs.get('colocation_status', None) + + +class ProximityPlacementGroupListResult(msrest.serialization.Model): + """The List Proximity Placement Group operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of proximity placement groups. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroup] + :param next_link: The URI to fetch the next page of proximity placement groups. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ProximityPlacementGroup]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ProximityPlacementGroupListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class ProximityPlacementGroupUpdate(UpdateResource): + """Specifies information about the proximity placement group. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(ProximityPlacementGroupUpdate, self).__init__(**kwargs) + + +class ProxyResource(msrest.serialization.Model): + """The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a location. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ProxyResource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class PublicIPAddressSku(msrest.serialization.Model): + """Describes the public IP Sku. + + All required parameters must be populated in order to send to Azure. + + :param public_ip_address_sku_name: Required. Specify public IP sku name. Possible values + include: "Basic", "Standard". + :type public_ip_address_sku_name: str or + ~azure.mgmt.compute.v2021_03_01.models.PublicIPAddressSkuName + :param public_ip_address_sku_tier: Specify public IP sku tier. Possible values include: + "Regional", "Global". + :type public_ip_address_sku_tier: str or + ~azure.mgmt.compute.v2021_03_01.models.PublicIPAddressSkuTier + """ + + _validation = { + 'public_ip_address_sku_name': {'required': True}, + } + + _attribute_map = { + 'public_ip_address_sku_name': {'key': 'publicIPAddressSkuName', 'type': 'str'}, + 'public_ip_address_sku_tier': {'key': 'publicIPAddressSkuTier', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PublicIPAddressSku, self).__init__(**kwargs) + self.public_ip_address_sku_name = kwargs['public_ip_address_sku_name'] + self.public_ip_address_sku_tier = kwargs.get('public_ip_address_sku_tier', None) + + +class PurchasePlan(msrest.serialization.Model): + """Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. + + All required parameters must be populated in order to send to Azure. + + :param publisher: Required. The publisher ID. + :type publisher: str + :param name: Required. The plan ID. + :type name: str + :param product: Required. Specifies the product of the image from the marketplace. This is the + same value as Offer under the imageReference element. + :type product: str + """ + + _validation = { + 'publisher': {'required': True}, + 'name': {'required': True}, + 'product': {'required': True}, + } + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PurchasePlan, self).__init__(**kwargs) + self.publisher = kwargs['publisher'] + self.name = kwargs['name'] + self.product = kwargs['product'] + + +class RecoveryWalkResponse(msrest.serialization.Model): + """Response after calling a manual recovery walk. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar walk_performed: Whether the recovery walk was performed. + :vartype walk_performed: bool + :ivar next_platform_update_domain: The next update domain that needs to be walked. Null means + walk spanning all update domains has been completed. + :vartype next_platform_update_domain: int + """ + + _validation = { + 'walk_performed': {'readonly': True}, + 'next_platform_update_domain': {'readonly': True}, + } + + _attribute_map = { + 'walk_performed': {'key': 'walkPerformed', 'type': 'bool'}, + 'next_platform_update_domain': {'key': 'nextPlatformUpdateDomain', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(RecoveryWalkResponse, self).__init__(**kwargs) + self.walk_performed = None + self.next_platform_update_domain = None + + +class RequestRateByIntervalInput(LogAnalyticsInputBase): + """Api request input for LogAnalytics getRequestRateByInterval Api. + + All required parameters must be populated in order to send to Azure. + + :param blob_container_sas_uri: Required. SAS Uri of the logging blob container to which + LogAnalytics Api writes output logs to. + :type blob_container_sas_uri: str + :param from_time: Required. From time of the query. + :type from_time: ~datetime.datetime + :param to_time: Required. To time of the query. + :type to_time: ~datetime.datetime + :param group_by_throttle_policy: Group query result by Throttle Policy applied. + :type group_by_throttle_policy: bool + :param group_by_operation_name: Group query result by Operation Name. + :type group_by_operation_name: bool + :param group_by_resource_name: Group query result by Resource Name. + :type group_by_resource_name: bool + :param group_by_client_application_id: Group query result by Client Application ID. + :type group_by_client_application_id: bool + :param group_by_user_agent: Group query result by User Agent. + :type group_by_user_agent: bool + :param interval_length: Required. Interval value in minutes used to create LogAnalytics call + rate logs. Possible values include: "ThreeMins", "FiveMins", "ThirtyMins", "SixtyMins". + :type interval_length: str or ~azure.mgmt.compute.v2021_03_01.models.IntervalInMins + """ + + _validation = { + 'blob_container_sas_uri': {'required': True}, + 'from_time': {'required': True}, + 'to_time': {'required': True}, + 'interval_length': {'required': True}, + } + + _attribute_map = { + 'blob_container_sas_uri': {'key': 'blobContainerSasUri', 'type': 'str'}, + 'from_time': {'key': 'fromTime', 'type': 'iso-8601'}, + 'to_time': {'key': 'toTime', 'type': 'iso-8601'}, + 'group_by_throttle_policy': {'key': 'groupByThrottlePolicy', 'type': 'bool'}, + 'group_by_operation_name': {'key': 'groupByOperationName', 'type': 'bool'}, + 'group_by_resource_name': {'key': 'groupByResourceName', 'type': 'bool'}, + 'group_by_client_application_id': {'key': 'groupByClientApplicationId', 'type': 'bool'}, + 'group_by_user_agent': {'key': 'groupByUserAgent', 'type': 'bool'}, + 'interval_length': {'key': 'intervalLength', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RequestRateByIntervalInput, self).__init__(**kwargs) + self.interval_length = kwargs['interval_length'] + + +class ResourceInstanceViewStatus(msrest.serialization.Model): + """Instance view status. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: The status code. + :vartype code: str + :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. + :vartype message: str + :ivar time: The time of the status. + :vartype time: ~datetime.datetime + :param level: The level code. Possible values include: "Info", "Warning", "Error". + :type level: str or ~azure.mgmt.compute.v2021_03_01.models.StatusLevelTypes + """ + + _validation = { + 'code': {'readonly': True}, + 'display_status': {'readonly': True}, + 'message': {'readonly': True}, + 'time': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'display_status': {'key': 'displayStatus', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'time': {'key': 'time', 'type': 'iso-8601'}, + 'level': {'key': 'level', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ResourceInstanceViewStatus, self).__init__(**kwargs) + self.code = None + self.display_status = None + self.message = None + self.time = None + self.level = kwargs.get('level', None) + + +class RestorePoint(ProxyResource): + """Restore Point details. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar source_metadata: Gets the details of the VM captured at the time of the restore point + creation. + :vartype source_metadata: ~azure.mgmt.compute.v2021_03_01.models.RestorePointSourceMetadata + :ivar provisioning_state: Gets the provisioning state of the restore point. + :vartype provisioning_state: str + :ivar consistency_mode: Gets the consistency mode for the restore point. Please refer to + https://aka.ms/RestorePoints for more details. Possible values include: "CrashConsistent", + "FileSystemConsistent", "ApplicationConsistent". + :vartype consistency_mode: str or ~azure.mgmt.compute.v2021_03_01.models.ConsistencyModeTypes + :ivar provisioning_details: Gets the provisioning details set by the server during Create + restore point operation. + :vartype provisioning_details: + ~azure.mgmt.compute.v2021_03_01.models.RestorePointProvisioningDetails + :param 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. + :type exclude_disks: list[~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'source_metadata': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'consistency_mode': {'readonly': True}, + 'provisioning_details': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'source_metadata': {'key': 'sourceMetadata', 'type': 'RestorePointSourceMetadata'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'consistency_mode': {'key': 'consistencyMode', 'type': 'str'}, + 'provisioning_details': {'key': 'provisioningDetails', 'type': 'RestorePointProvisioningDetails'}, + 'exclude_disks': {'key': 'excludeDisks', 'type': '[ApiEntityReference]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorePoint, self).__init__(**kwargs) + self.source_metadata = None + self.provisioning_state = None + self.consistency_mode = None + self.provisioning_details = None + self.exclude_disks = kwargs.get('exclude_disks', None) + + +class RestorePointCollection(Resource): + """Create or update Restore Point collection parameters. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param source: The properties of the source resource that this restore point collection is + created from. + :type source: ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.RestorePoint] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'restore_point_collection_id': {'readonly': True}, + 'restore_points': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'RestorePointCollectionSourceProperties'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'restore_point_collection_id': {'key': 'properties.restorePointCollectionId', 'type': 'str'}, + 'restore_points': {'key': 'properties.restorePoints', 'type': '[RestorePoint]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorePointCollection, self).__init__(**kwargs) + self.source = kwargs.get('source', None) + self.provisioning_state = None + self.restore_point_collection_id = None + self.restore_points = None + + +class RestorePointCollectionListResult(msrest.serialization.Model): + """The List restore point collection operation response. + + :param value: Gets the list of restore point collections. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.RestorePointCollection] + :param next_link: The uri to fetch the next page of RestorePointCollections. Call ListNext() + with this to fetch the next page of RestorePointCollections. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RestorePointCollection]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorePointCollectionListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) + + +class RestorePointCollectionSourceProperties(msrest.serialization.Model): + """The properties of the source resource that this restore point collection is created from. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar location: Location of the source resource used to create this restore point collection. + :vartype location: str + :param id: Resource Id of the source resource used to create this restore point collection. + :type id: str + """ + + _validation = { + 'location': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorePointCollectionSourceProperties, self).__init__(**kwargs) + self.location = None + self.id = kwargs.get('id', None) + + +class RestorePointCollectionUpdate(UpdateResource): + """Update Restore Point collection parameters. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param source: The properties of the source resource that this restore point collection is + created from. + :type source: ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.RestorePoint] + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'restore_point_collection_id': {'readonly': True}, + 'restore_points': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'RestorePointCollectionSourceProperties'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'restore_point_collection_id': {'key': 'properties.restorePointCollectionId', 'type': 'str'}, + 'restore_points': {'key': 'properties.restorePoints', 'type': '[RestorePoint]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorePointCollectionUpdate, self).__init__(**kwargs) + self.source = kwargs.get('source', None) + self.provisioning_state = None + self.restore_point_collection_id = None + self.restore_points = None + + +class RestorePointProvisioningDetails(msrest.serialization.Model): + """Restore Point Provisioning details. + + :param creation_time: Gets the creation time of the restore point. + :type creation_time: ~datetime.datetime + :param total_used_size_in_bytes: Gets the total size of the data in all the disks which are + part of the restore point. + :type total_used_size_in_bytes: long + :param status_code: Gets the status of the Create restore point operation. + :type status_code: int + :param status_message: Gets the status message of the Create restore point operation. + :type status_message: str + """ + + _attribute_map = { + 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, + 'total_used_size_in_bytes': {'key': 'totalUsedSizeInBytes', 'type': 'long'}, + 'status_code': {'key': 'statusCode', 'type': 'int'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorePointProvisioningDetails, self).__init__(**kwargs) + self.creation_time = kwargs.get('creation_time', None) + self.total_used_size_in_bytes = kwargs.get('total_used_size_in_bytes', None) + self.status_code = kwargs.get('status_code', None) + self.status_message = kwargs.get('status_message', None) + + +class RestorePointSourceMetadata(msrest.serialization.Model): + """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. + + :param hardware_profile: Gets the hardware profile. + :type hardware_profile: ~azure.mgmt.compute.v2021_03_01.models.HardwareProfile + :param storage_profile: Gets the storage profile. + :type storage_profile: + ~azure.mgmt.compute.v2021_03_01.models.RestorePointSourceVMStorageProfile + :param os_profile: Gets the OS profile. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.OSProfile + :param diagnostics_profile: Gets the diagnostics profile. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param license_type: Gets the license type, which is for bring your own license scenario. + :type license_type: str + :param vm_id: Gets the virtual machine unique id. + :type vm_id: str + :param security_profile: Gets the security profile. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + """ + + _attribute_map = { + 'hardware_profile': {'key': 'hardwareProfile', 'type': 'HardwareProfile'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'RestorePointSourceVMStorageProfile'}, + 'os_profile': {'key': 'osProfile', 'type': 'OSProfile'}, + 'diagnostics_profile': {'key': 'diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'license_type': {'key': 'licenseType', 'type': 'str'}, + 'vm_id': {'key': 'vmId', 'type': 'str'}, + 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorePointSourceMetadata, self).__init__(**kwargs) + self.hardware_profile = kwargs.get('hardware_profile', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.os_profile = kwargs.get('os_profile', None) + self.diagnostics_profile = kwargs.get('diagnostics_profile', None) + self.license_type = kwargs.get('license_type', None) + self.vm_id = kwargs.get('vm_id', None) + self.security_profile = kwargs.get('security_profile', None) + + +class RestorePointSourceVMDataDisk(msrest.serialization.Model): + """Describes a data disk. + + :param lun: Gets the logical unit number. + :type lun: int + :param name: Gets the disk name. + :type name: str + :param caching: Gets the caching type. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param 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. + :type disk_size_gb: int + :param managed_disk: Gets the managed disk details. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.ManagedDiskParameters + :param disk_restore_point: Gets the disk restore point Id. + :type disk_restore_point: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + """ + + _attribute_map = { + 'lun': {'key': 'lun', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'}, + 'disk_restore_point': {'key': 'diskRestorePoint', 'type': 'ApiEntityReference'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorePointSourceVMDataDisk, self).__init__(**kwargs) + self.lun = kwargs.get('lun', None) + self.name = kwargs.get('name', None) + self.caching = kwargs.get('caching', None) + self.disk_size_gb = kwargs.get('disk_size_gb', None) + self.managed_disk = kwargs.get('managed_disk', None) + self.disk_restore_point = kwargs.get('disk_restore_point', None) + + +class RestorePointSourceVMOSDisk(msrest.serialization.Model): + """Describes an Operating System disk. + + :param os_type: Gets the Operating System type. Possible values include: "Windows", "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemType + :param encryption_settings: Gets the disk encryption settings. + :type encryption_settings: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSettings + :param name: Gets the disk name. + :type name: str + :param caching: Gets the caching type. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param disk_size_gb: Gets the disk size in GB. + :type disk_size_gb: int + :param managed_disk: Gets the managed disk details. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.ManagedDiskParameters + :param disk_restore_point: Gets the disk restore point Id. + :type disk_restore_point: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + """ + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'encryption_settings': {'key': 'encryptionSettings', 'type': 'DiskEncryptionSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'}, + 'disk_restore_point': {'key': 'diskRestorePoint', 'type': 'ApiEntityReference'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorePointSourceVMOSDisk, self).__init__(**kwargs) + self.os_type = kwargs.get('os_type', None) + self.encryption_settings = kwargs.get('encryption_settings', None) + self.name = kwargs.get('name', None) + self.caching = kwargs.get('caching', None) + self.disk_size_gb = kwargs.get('disk_size_gb', None) + self.managed_disk = kwargs.get('managed_disk', None) + self.disk_restore_point = kwargs.get('disk_restore_point', None) + + +class RestorePointSourceVMStorageProfile(msrest.serialization.Model): + """Describes the storage profile. + + :param os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. + :type os_disk: ~azure.mgmt.compute.v2021_03_01.models.RestorePointSourceVMOSDisk + :param data_disks: Gets the data disks of the VM captured at the time of the restore point + creation. + :type data_disks: list[~azure.mgmt.compute.v2021_03_01.models.RestorePointSourceVMDataDisk] + """ + + _attribute_map = { + 'os_disk': {'key': 'osDisk', 'type': 'RestorePointSourceVMOSDisk'}, + 'data_disks': {'key': 'dataDisks', 'type': '[RestorePointSourceVMDataDisk]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorePointSourceVMStorageProfile, self).__init__(**kwargs) + self.os_disk = kwargs.get('os_disk', None) + self.data_disks = kwargs.get('data_disks', None) + + +class RetrieveBootDiagnosticsDataResult(msrest.serialization.Model): + """The SAS URIs of the console screenshot and serial log blobs. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar console_screenshot_blob_uri: The console screenshot blob URI. + :vartype console_screenshot_blob_uri: str + :ivar serial_console_log_blob_uri: The serial console log blob URI. + :vartype serial_console_log_blob_uri: str + """ + + _validation = { + 'console_screenshot_blob_uri': {'readonly': True}, + 'serial_console_log_blob_uri': {'readonly': True}, + } + + _attribute_map = { + 'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'}, + 'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RetrieveBootDiagnosticsDataResult, self).__init__(**kwargs) + self.console_screenshot_blob_uri = None + self.serial_console_log_blob_uri = None + + +class RoleInstance(msrest.serialization.Model): + """RoleInstance. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource Name. + :vartype name: str + :ivar type: Resource Type. + :vartype type: str + :ivar location: Resource Location. + :vartype location: str + :ivar tags: A set of tags. Resource tags. + :vartype tags: dict[str, str] + :param sku: + :type sku: ~azure.mgmt.compute.v2021_03_01.models.InstanceSku + :param properties: + :type properties: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'InstanceSku'}, + 'properties': {'key': 'properties', 'type': 'RoleInstanceProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(RoleInstance, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = None + self.tags = None + self.sku = kwargs.get('sku', None) + self.properties = kwargs.get('properties', None) + + +class RoleInstanceListResult(msrest.serialization.Model): + """RoleInstanceListResult. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.RoleInstance] + :param next_link: + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RoleInstance]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RoleInstanceListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class RoleInstanceNetworkProfile(msrest.serialization.Model): + """Describes the network profile for the role instance. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar network_interfaces: Specifies the list of resource Ids for the network interfaces + associated with the role instance. + :vartype network_interfaces: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + """ + + _validation = { + 'network_interfaces': {'readonly': True}, + } + + _attribute_map = { + 'network_interfaces': {'key': 'networkInterfaces', 'type': '[SubResource]'}, + } + + def __init__( + self, + **kwargs + ): + super(RoleInstanceNetworkProfile, self).__init__(**kwargs) + self.network_interfaces = None + + +class RoleInstanceProperties(msrest.serialization.Model): + """RoleInstanceProperties. + + :param network_profile: Describes the network profile for the role instance. + :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceNetworkProfile + :param instance_view: The instance view of the role instance. + :type instance_view: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceView + """ + + _attribute_map = { + 'network_profile': {'key': 'networkProfile', 'type': 'RoleInstanceNetworkProfile'}, + 'instance_view': {'key': 'instanceView', 'type': 'RoleInstanceView'}, + } + + def __init__( + self, + **kwargs + ): + super(RoleInstanceProperties, self).__init__(**kwargs) + self.network_profile = kwargs.get('network_profile', None) + self.instance_view = kwargs.get('instance_view', None) + + +class RoleInstances(msrest.serialization.Model): + """Specifies a list of role instances from the cloud service. + + All required parameters must be populated in order to send to Azure. + + :param role_instances: Required. List of cloud service role instance names. Value of '*' will + signify all role instances of the cloud service. + :type role_instances: list[str] + """ + + _validation = { + 'role_instances': {'required': True}, + } + + _attribute_map = { + 'role_instances': {'key': 'roleInstances', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(RoleInstances, self).__init__(**kwargs) + self.role_instances = kwargs['role_instances'] + + +class RoleInstanceView(msrest.serialization.Model): + """The instance view of the role instance. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar platform_update_domain: The Update Domain. + :vartype platform_update_domain: int + :ivar platform_fault_domain: The Fault Domain. + :vartype platform_fault_domain: int + :ivar private_id: Specifies a unique identifier generated internally for the cloud service + associated with this role instance. :code:`
    `:code:`
    ` NOTE: If you are using Azure + Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + :vartype private_id: str + :ivar statuses: + :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.ResourceInstanceViewStatus] + """ + + _validation = { + 'platform_update_domain': {'readonly': True}, + 'platform_fault_domain': {'readonly': True}, + 'private_id': {'readonly': True}, + 'statuses': {'readonly': True}, + } + + _attribute_map = { + 'platform_update_domain': {'key': 'platformUpdateDomain', 'type': 'int'}, + 'platform_fault_domain': {'key': 'platformFaultDomain', 'type': 'int'}, + 'private_id': {'key': 'privateId', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[ResourceInstanceViewStatus]'}, + } + + def __init__( + self, + **kwargs + ): + super(RoleInstanceView, self).__init__(**kwargs) + self.platform_update_domain = None + self.platform_fault_domain = None + self.private_id = None + self.statuses = None + + +class RollbackStatusInfo(msrest.serialization.Model): + """Information about rollback on failed VM instances after a OS Upgrade operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar successfully_rolledback_instance_count: The number of instances which have been + successfully rolled back. + :vartype successfully_rolledback_instance_count: int + :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.v2021_03_01.models.ApiError + """ + + _validation = { + 'successfully_rolledback_instance_count': {'readonly': True}, + 'failed_rolledback_instance_count': {'readonly': True}, + 'rollback_error': {'readonly': True}, + } + + _attribute_map = { + 'successfully_rolledback_instance_count': {'key': 'successfullyRolledbackInstanceCount', 'type': 'int'}, + 'failed_rolledback_instance_count': {'key': 'failedRolledbackInstanceCount', 'type': 'int'}, + 'rollback_error': {'key': 'rollbackError', 'type': 'ApiError'}, + } + + def __init__( + self, + **kwargs + ): + super(RollbackStatusInfo, self).__init__(**kwargs) + self.successfully_rolledback_instance_count = None + self.failed_rolledback_instance_count = None + self.rollback_error = None + + +class RollingUpgradePolicy(msrest.serialization.Model): + """The configuration parameters used while performing a rolling upgrade. + + :param max_batch_instance_percent: The maximum percent of total virtual machine instances that + will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, + unhealthy instances in previous or future batches can cause the percentage of instances in a + batch to decrease to ensure higher reliability. The default value for this parameter is 20%. + :type max_batch_instance_percent: int + :param max_unhealthy_instance_percent: The maximum percentage of the total virtual machine + instances in the scale set that can be simultaneously unhealthy, either as a result of being + upgraded, or by being found in an unhealthy state by the virtual machine health checks before + the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The + default value for this parameter is 20%. + :type max_unhealthy_instance_percent: int + :param max_unhealthy_upgraded_instance_percent: The maximum percentage of upgraded virtual + machine instances that can be found to be in an unhealthy state. This check will happen after + each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The + default value for this parameter is 20%. + :type max_unhealthy_upgraded_instance_percent: int + :param pause_time_between_batches: The wait time between completing the update for all virtual + machines in one batch and starting the next batch. The time duration should be specified in ISO + 8601 format. The default value is 0 seconds (PT0S). + :type pause_time_between_batches: str + :param enable_cross_zone_upgrade: Allow VMSS to ignore AZ boundaries when constructing upgrade + batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the + batch size. + :type enable_cross_zone_upgrade: bool + :param prioritize_unhealthy_instances: Upgrade all unhealthy instances in a scale set before + any healthy instances. + :type prioritize_unhealthy_instances: bool + """ + + _validation = { + 'max_batch_instance_percent': {'maximum': 100, 'minimum': 5}, + 'max_unhealthy_instance_percent': {'maximum': 100, 'minimum': 5}, + 'max_unhealthy_upgraded_instance_percent': {'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_batch_instance_percent': {'key': 'maxBatchInstancePercent', 'type': 'int'}, + 'max_unhealthy_instance_percent': {'key': 'maxUnhealthyInstancePercent', 'type': 'int'}, + 'max_unhealthy_upgraded_instance_percent': {'key': 'maxUnhealthyUpgradedInstancePercent', 'type': 'int'}, + 'pause_time_between_batches': {'key': 'pauseTimeBetweenBatches', 'type': 'str'}, + 'enable_cross_zone_upgrade': {'key': 'enableCrossZoneUpgrade', 'type': 'bool'}, + 'prioritize_unhealthy_instances': {'key': 'prioritizeUnhealthyInstances', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(RollingUpgradePolicy, self).__init__(**kwargs) + self.max_batch_instance_percent = kwargs.get('max_batch_instance_percent', None) + self.max_unhealthy_instance_percent = kwargs.get('max_unhealthy_instance_percent', None) + self.max_unhealthy_upgraded_instance_percent = kwargs.get('max_unhealthy_upgraded_instance_percent', None) + self.pause_time_between_batches = kwargs.get('pause_time_between_batches', None) + self.enable_cross_zone_upgrade = kwargs.get('enable_cross_zone_upgrade', None) + self.prioritize_unhealthy_instances = kwargs.get('prioritize_unhealthy_instances', None) + + +class RollingUpgradeProgressInfo(msrest.serialization.Model): + """Information about the number of virtual machine instances in each upgrade state. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar successful_instance_count: The number of instances that have been successfully upgraded. + :vartype successful_instance_count: int + :ivar failed_instance_count: The number of instances that have failed to be upgraded + successfully. + :vartype failed_instance_count: int + :ivar in_progress_instance_count: The number of instances that are currently being upgraded. + :vartype in_progress_instance_count: int + :ivar pending_instance_count: The number of instances that have not yet begun to be upgraded. + :vartype pending_instance_count: int + """ + + _validation = { + 'successful_instance_count': {'readonly': True}, + 'failed_instance_count': {'readonly': True}, + 'in_progress_instance_count': {'readonly': True}, + 'pending_instance_count': {'readonly': True}, + } + + _attribute_map = { + 'successful_instance_count': {'key': 'successfulInstanceCount', 'type': 'int'}, + 'failed_instance_count': {'key': 'failedInstanceCount', 'type': 'int'}, + 'in_progress_instance_count': {'key': 'inProgressInstanceCount', 'type': 'int'}, + 'pending_instance_count': {'key': 'pendingInstanceCount', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(RollingUpgradeProgressInfo, self).__init__(**kwargs) + self.successful_instance_count = None + self.failed_instance_count = None + self.in_progress_instance_count = None + self.pending_instance_count = None + + +class RollingUpgradeRunningStatus(msrest.serialization.Model): + """Information about the current running state of the overall upgrade. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: Code indicating the current status of the upgrade. Possible values include: + "RollingForward", "Cancelled", "Completed", "Faulted". + :vartype code: str or ~azure.mgmt.compute.v2021_03_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. Possible values include: + "Start", "Cancel". + :vartype last_action: str or ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradeActionType + :ivar last_action_time: Last action time of the upgrade. + :vartype last_action_time: ~datetime.datetime + """ + + _validation = { + 'code': {'readonly': True}, + 'start_time': {'readonly': True}, + 'last_action': {'readonly': True}, + 'last_action_time': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'last_action': {'key': 'lastAction', 'type': 'str'}, + 'last_action_time': {'key': 'lastActionTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(RollingUpgradeRunningStatus, self).__init__(**kwargs) + self.code = None + self.start_time = None + self.last_action = None + self.last_action_time = None + + +class RollingUpgradeStatusInfo(Resource): + """The status of the latest virtual machine scale set rolling upgrade. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :ivar policy: The rolling upgrade policies applied for this upgrade. + :vartype policy: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradePolicy + :ivar running_status: Information about the current running state of the overall upgrade. + :vartype running_status: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradeRunningStatus + :ivar progress: Information about the number of virtual machine instances in each upgrade + state. + :vartype progress: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradeProgressInfo + :ivar error: Error details for this upgrade, if there are any. + :vartype error: ~azure.mgmt.compute.v2021_03_01.models.ApiError + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'policy': {'readonly': True}, + 'running_status': {'readonly': True}, + 'progress': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'policy': {'key': 'properties.policy', 'type': 'RollingUpgradePolicy'}, + 'running_status': {'key': 'properties.runningStatus', 'type': 'RollingUpgradeRunningStatus'}, + 'progress': {'key': 'properties.progress', 'type': 'RollingUpgradeProgressInfo'}, + 'error': {'key': 'properties.error', 'type': 'ApiError'}, + } + + def __init__( + self, + **kwargs + ): + super(RollingUpgradeStatusInfo, self).__init__(**kwargs) + self.policy = None + self.running_status = None + self.progress = None + self.error = None + + +class RunCommandDocumentBase(msrest.serialization.Model): + """Describes the properties of a Run Command metadata. + + All required parameters must be populated in order to send to Azure. + + :param schema: Required. The VM run command schema. + :type schema: str + :param id: Required. The VM run command id. + :type id: str + :param os_type: Required. The Operating System type. Possible values include: "Windows", + "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + :param label: Required. The VM run command label. + :type label: str + :param description: Required. The VM run command description. + :type description: str + """ + + _validation = { + 'schema': {'required': True}, + 'id': {'required': True}, + 'os_type': {'required': True}, + 'label': {'required': True}, + 'description': {'required': True}, + } + + _attribute_map = { + 'schema': {'key': '$schema', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RunCommandDocumentBase, self).__init__(**kwargs) + self.schema = kwargs['schema'] + self.id = kwargs['id'] + self.os_type = kwargs['os_type'] + self.label = kwargs['label'] + self.description = kwargs['description'] + + +class RunCommandDocument(RunCommandDocumentBase): + """Describes the properties of a Run Command. + + All required parameters must be populated in order to send to Azure. + + :param schema: Required. The VM run command schema. + :type schema: str + :param id: Required. The VM run command id. + :type id: str + :param os_type: Required. The Operating System type. Possible values include: "Windows", + "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + :param label: Required. The VM run command label. + :type label: str + :param description: Required. The VM run command description. + :type description: str + :param script: Required. The script to be executed. + :type script: list[str] + :param parameters: The parameters used by the script. + :type parameters: list[~azure.mgmt.compute.v2021_03_01.models.RunCommandParameterDefinition] + """ + + _validation = { + 'schema': {'required': True}, + 'id': {'required': True}, + 'os_type': {'required': True}, + 'label': {'required': True}, + 'description': {'required': True}, + 'script': {'required': True}, + } + + _attribute_map = { + 'schema': {'key': '$schema', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'script': {'key': 'script', 'type': '[str]'}, + 'parameters': {'key': 'parameters', 'type': '[RunCommandParameterDefinition]'}, + } + + def __init__( + self, + **kwargs + ): + super(RunCommandDocument, self).__init__(**kwargs) + self.script = kwargs['script'] + self.parameters = kwargs.get('parameters', None) + + +class RunCommandInput(msrest.serialization.Model): + """Capture Virtual Machine parameters. + + All required parameters must be populated in order to send to Azure. + + :param command_id: Required. The run command id. + :type command_id: str + :param script: Optional. The script to be executed. When this value is given, the given script + will override the default script of the command. + :type script: list[str] + :param parameters: The run command parameters. + :type parameters: list[~azure.mgmt.compute.v2021_03_01.models.RunCommandInputParameter] + """ + + _validation = { + 'command_id': {'required': True}, + } + + _attribute_map = { + 'command_id': {'key': 'commandId', 'type': 'str'}, + 'script': {'key': 'script', 'type': '[str]'}, + 'parameters': {'key': 'parameters', 'type': '[RunCommandInputParameter]'}, + } + + def __init__( + self, + **kwargs + ): + super(RunCommandInput, self).__init__(**kwargs) + self.command_id = kwargs['command_id'] + self.script = kwargs.get('script', None) + self.parameters = kwargs.get('parameters', None) + + +class RunCommandInputParameter(msrest.serialization.Model): + """Describes the properties of a run command parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The run command parameter name. + :type name: str + :param value: Required. The run command parameter value. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RunCommandInputParameter, self).__init__(**kwargs) + self.name = kwargs['name'] + self.value = kwargs['value'] + + +class RunCommandListResult(msrest.serialization.Model): + """The List Virtual Machine operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of virtual machine run commands. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.RunCommandDocumentBase] + :param next_link: The uri to fetch the next page of run commands. Call ListNext() with this to + fetch the next page of run commands. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RunCommandDocumentBase]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RunCommandListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class RunCommandParameterDefinition(msrest.serialization.Model): + """Describes the properties of a run command parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The run command parameter name. + :type name: str + :param type: Required. The run command parameter type. + :type type: str + :param default_value: The run command parameter default value. + :type default_value: str + :param required: The run command parameter required. + :type required: bool + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(RunCommandParameterDefinition, self).__init__(**kwargs) + self.name = kwargs['name'] + self.type = kwargs['type'] + self.default_value = kwargs.get('default_value', None) + self.required = kwargs.get('required', False) + + +class RunCommandResult(msrest.serialization.Model): + """RunCommandResult. + + :param value: Run command operation response. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + **kwargs + ): + super(RunCommandResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class ScaleInPolicy(msrest.serialization.Model): + """Describes a scale-in policy for a virtual machine scale set. + + :param rules: The rules to be followed when scaling-in a virtual machine scale set. + :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **Default** When a + virtual machine scale set is scaled in, the scale set will first be balanced across zones if it + is a zonal scale set. Then, it will be balanced across Fault Domains as far as possible. Within + each Fault Domain, the virtual machines chosen for removal will be the newest ones that are not + protected from scale-in. :code:`
    `:code:`
    ` **OldestVM** When a virtual machine scale set + is being scaled-in, the oldest virtual machines that are not protected from scale-in will be + chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced + across zones. Within each zone, the oldest virtual machines that are not protected will be + chosen for removal. :code:`
    `:code:`
    ` **NewestVM** When a virtual machine scale set is + being scaled-in, the newest virtual machines that are not protected from scale-in will be + chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced + across zones. Within each zone, the newest virtual machines that are not protected will be + chosen for removal. :code:`
    `:code:`
    `. + :type rules: list[str or + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetScaleInRules] + """ + + _attribute_map = { + 'rules': {'key': 'rules', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(ScaleInPolicy, self).__init__(**kwargs) + self.rules = kwargs.get('rules', None) + + +class ScheduledEventsProfile(msrest.serialization.Model): + """ScheduledEventsProfile. + + :param terminate_notification_profile: Specifies Terminate Scheduled Event related + configurations. + :type terminate_notification_profile: + ~azure.mgmt.compute.v2021_03_01.models.TerminateNotificationProfile + """ + + _attribute_map = { + 'terminate_notification_profile': {'key': 'terminateNotificationProfile', 'type': 'TerminateNotificationProfile'}, + } + + def __init__( + self, + **kwargs + ): + super(ScheduledEventsProfile, self).__init__(**kwargs) + self.terminate_notification_profile = kwargs.get('terminate_notification_profile', None) + + +class SecurityProfile(msrest.serialization.Model): + """Specifies the Security profile settings for the virtual machine or virtual machine scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param uefi_settings: Specifies the security settings like secure boot and vTPM used while + creating the virtual machine. :code:`
    `:code:`
    `Minimum api-version: 2020-12-01. + :type uefi_settings: ~azure.mgmt.compute.v2021_03_01.models.UefiSettings + :param 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. + :code:`
    `:code:`
    ` Default: The Encryption at host will be disabled unless this property + is set to true for the resource. + :type encryption_at_host: bool + :ivar security_type: Specifies the SecurityType of the virtual machine. It is set as + TrustedLaunch to enable UefiSettings. :code:`
    `:code:`
    ` Default: UefiSettings will not + be enabled unless this property is set as TrustedLaunch. Default value: "TrustedLaunch". + :vartype security_type: str + """ + + _validation = { + 'security_type': {'constant': True}, + } + + _attribute_map = { + 'uefi_settings': {'key': 'uefiSettings', 'type': 'UefiSettings'}, + 'encryption_at_host': {'key': 'encryptionAtHost', 'type': 'bool'}, + 'security_type': {'key': 'securityType', 'type': 'str'}, + } + + security_type = "TrustedLaunch" + + def __init__( + self, + **kwargs + ): + super(SecurityProfile, self).__init__(**kwargs) + self.uefi_settings = kwargs.get('uefi_settings', None) + self.encryption_at_host = kwargs.get('encryption_at_host', None) + + +class Sku(msrest.serialization.Model): + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + + :param name: The sku name. + :type name: str + :param tier: Specifies the tier of virtual machines in a scale set.:code:`
    `:code:`
    ` + Possible Values::code:`
    `:code:`
    ` **Standard**\ :code:`
    `:code:`
    ` + **Basic**. + :type tier: str + :param capacity: Specifies the number of virtual machines in the scale set. + :type capacity: long + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'long'}, + } + + def __init__( + self, + **kwargs + ): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.capacity = kwargs.get('capacity', None) + + +class SshConfiguration(msrest.serialization.Model): + """SSH configuration for Linux based VMs running on Azure. + + :param public_keys: The list of SSH public keys used to authenticate with linux based VMs. + :type public_keys: list[~azure.mgmt.compute.v2021_03_01.models.SshPublicKey] + """ + + _attribute_map = { + 'public_keys': {'key': 'publicKeys', 'type': '[SshPublicKey]'}, + } + + def __init__( + self, + **kwargs + ): + super(SshConfiguration, self).__init__(**kwargs) + self.public_keys = kwargs.get('public_keys', None) + + +class SshPublicKey(msrest.serialization.Model): + """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + + :param path: Specifies the full path on the created VM where ssh public key is stored. If the + file already exists, the specified key is appended to the file. Example: + /home/user/.ssh/authorized_keys. + :type path: str + :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The + key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating + ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in + Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). + :type key_data: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'key_data': {'key': 'keyData', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SshPublicKey, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.key_data = kwargs.get('key_data', None) + + +class SshPublicKeyGenerateKeyPairResult(msrest.serialization.Model): + """Response from generation of an SSH key pair. + + All required parameters must be populated in order to send to Azure. + + :param private_key: Required. Private key portion of the key pair used to authenticate to a + virtual machine through ssh. The private key is returned in RFC3447 format and should be + treated as a secret. + :type private_key: str + :param public_key: Required. Public key portion of the key pair used to authenticate to a + virtual machine through ssh. The public key is in ssh-rsa format. + :type public_key: str + :param id: Required. The ARM resource id in the form of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName}. + :type id: str + """ + + _validation = { + 'private_key': {'required': True}, + 'public_key': {'required': True}, + 'id': {'required': True}, + } + + _attribute_map = { + 'private_key': {'key': 'privateKey', 'type': 'str'}, + 'public_key': {'key': 'publicKey', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SshPublicKeyGenerateKeyPairResult, self).__init__(**kwargs) + self.private_key = kwargs['private_key'] + self.public_key = kwargs['public_key'] + self.id = kwargs['id'] + + +class SshPublicKeyResource(Resource): + """Specifies information about the SSH public key. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param public_key: SSH public key used to authenticate to a virtual machine through ssh. If + this property is not initially provided when the resource is created, the publicKey property + will be populated when generateKeyPair is called. If the public key is provided upon resource + creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. + :type public_key: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'public_key': {'key': 'properties.publicKey', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SshPublicKeyResource, self).__init__(**kwargs) + self.public_key = kwargs.get('public_key', None) + + +class SshPublicKeysGroupListResult(msrest.serialization.Model): + """The list SSH public keys operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of SSH public keys. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyResource] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[SshPublicKeyResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SshPublicKeysGroupListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class SshPublicKeyUpdateResource(UpdateResource): + """Specifies information about the SSH public key. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param public_key: SSH public key used to authenticate to a virtual machine through ssh. If + this property is not initially provided when the resource is created, the publicKey property + will be populated when generateKeyPair is called. If the public key is provided upon resource + creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. + :type public_key: str + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'public_key': {'key': 'properties.publicKey', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SshPublicKeyUpdateResource, self).__init__(**kwargs) + self.public_key = kwargs.get('public_key', None) + + +class StatusCodeCount(msrest.serialization.Model): + """StatusCodeCount. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: The instance view status code. + :vartype code: str + :ivar count: Number of instances having this status code. + :vartype count: int + """ + + _validation = { + 'code': {'readonly': True}, + 'count': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(StatusCodeCount, self).__init__(**kwargs) + self.code = None + self.count = None + + +class StorageProfile(msrest.serialization.Model): + """Specifies the storage settings for the virtual machine disks. + + :param image_reference: Specifies information about the image to use. You can specify + 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. + :type image_reference: ~azure.mgmt.compute.v2021_03_01.models.ImageReference + :param os_disk: Specifies information about the operating system disk used by the virtual + machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs + for Azure virtual machines + `_. + :type os_disk: ~azure.mgmt.compute.v2021_03_01.models.OSDisk + :param 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 + `_. + :type data_disks: list[~azure.mgmt.compute.v2021_03_01.models.DataDisk] + """ + + _attribute_map = { + 'image_reference': {'key': 'imageReference', 'type': 'ImageReference'}, + 'os_disk': {'key': 'osDisk', 'type': 'OSDisk'}, + 'data_disks': {'key': 'dataDisks', 'type': '[DataDisk]'}, + } + + def __init__( + self, + **kwargs + ): + super(StorageProfile, self).__init__(**kwargs) + self.image_reference = kwargs.get('image_reference', None) + self.os_disk = kwargs.get('os_disk', None) + self.data_disks = kwargs.get('data_disks', None) + + +class SubResourceReadOnly(msrest.serialization.Model): + """SubResourceReadOnly. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SubResourceReadOnly, self).__init__(**kwargs) + self.id = None + + +class SubResourceWithColocationStatus(SubResource): + """SubResourceWithColocationStatus. + + :param id: Resource Id. + :type id: str + :param colocation_status: Describes colocation status of a resource in the Proximity Placement + Group. + :type colocation_status: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'colocation_status': {'key': 'colocationStatus', 'type': 'InstanceViewStatus'}, + } + + def __init__( + self, + **kwargs + ): + super(SubResourceWithColocationStatus, self).__init__(**kwargs) + self.colocation_status = kwargs.get('colocation_status', None) + + +class TerminateNotificationProfile(msrest.serialization.Model): + """TerminateNotificationProfile. + + :param not_before_timeout: Configurable length of time a Virtual Machine being deleted will + have to potentially approve the Terminate Scheduled Event before the event is auto approved + (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 + minutes (PT5M). + :type not_before_timeout: str + :param enable: Specifies whether the Terminate Scheduled event is enabled or disabled. + :type enable: bool + """ + + _attribute_map = { + 'not_before_timeout': {'key': 'notBeforeTimeout', 'type': 'str'}, + 'enable': {'key': 'enable', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(TerminateNotificationProfile, self).__init__(**kwargs) + self.not_before_timeout = kwargs.get('not_before_timeout', None) + self.enable = kwargs.get('enable', None) + + +class ThrottledRequestsInput(LogAnalyticsInputBase): + """Api request input for LogAnalytics getThrottledRequests Api. + + All required parameters must be populated in order to send to Azure. + + :param blob_container_sas_uri: Required. SAS Uri of the logging blob container to which + LogAnalytics Api writes output logs to. + :type blob_container_sas_uri: str + :param from_time: Required. From time of the query. + :type from_time: ~datetime.datetime + :param to_time: Required. To time of the query. + :type to_time: ~datetime.datetime + :param group_by_throttle_policy: Group query result by Throttle Policy applied. + :type group_by_throttle_policy: bool + :param group_by_operation_name: Group query result by Operation Name. + :type group_by_operation_name: bool + :param group_by_resource_name: Group query result by Resource Name. + :type group_by_resource_name: bool + :param group_by_client_application_id: Group query result by Client Application ID. + :type group_by_client_application_id: bool + :param group_by_user_agent: Group query result by User Agent. + :type group_by_user_agent: bool + """ + + _validation = { + 'blob_container_sas_uri': {'required': True}, + 'from_time': {'required': True}, + 'to_time': {'required': True}, + } + + _attribute_map = { + 'blob_container_sas_uri': {'key': 'blobContainerSasUri', 'type': 'str'}, + 'from_time': {'key': 'fromTime', 'type': 'iso-8601'}, + 'to_time': {'key': 'toTime', 'type': 'iso-8601'}, + 'group_by_throttle_policy': {'key': 'groupByThrottlePolicy', 'type': 'bool'}, + 'group_by_operation_name': {'key': 'groupByOperationName', 'type': 'bool'}, + 'group_by_resource_name': {'key': 'groupByResourceName', 'type': 'bool'}, + 'group_by_client_application_id': {'key': 'groupByClientApplicationId', 'type': 'bool'}, + 'group_by_user_agent': {'key': 'groupByUserAgent', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(ThrottledRequestsInput, self).__init__(**kwargs) + + +class UefiSettings(msrest.serialization.Model): + """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
    `:code:`
    `Minimum api-version: 2020-12-01. + + :param secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual + machine. :code:`
    `:code:`
    `Minimum api-version: 2020-12-01. + :type secure_boot_enabled: bool + :param v_tpm_enabled: Specifies whether vTPM should be enabled on the virtual machine. + :code:`
    `:code:`
    `Minimum api-version: 2020-12-01. + :type v_tpm_enabled: bool + """ + + _attribute_map = { + 'secure_boot_enabled': {'key': 'secureBootEnabled', 'type': 'bool'}, + 'v_tpm_enabled': {'key': 'vTpmEnabled', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(UefiSettings, self).__init__(**kwargs) + self.secure_boot_enabled = kwargs.get('secure_boot_enabled', None) + self.v_tpm_enabled = kwargs.get('v_tpm_enabled', None) + + +class UpdateDomain(msrest.serialization.Model): + """Defines an update domain for the cloud service. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource Name. + :vartype name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UpdateDomain, self).__init__(**kwargs) + self.id = None + self.name = None + + +class UpdateDomainListResult(msrest.serialization.Model): + """UpdateDomainListResult. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.UpdateDomain] + :param next_link: + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[UpdateDomain]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UpdateDomainListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class UpgradeOperationHistoricalStatusInfo(msrest.serialization.Model): + """Virtual Machine Scale Set OS Upgrade History operation response. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar properties: Information about the properties of the upgrade operation. + :vartype properties: + ~azure.mgmt.compute.v2021_03_01.models.UpgradeOperationHistoricalStatusInfoProperties + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + """ + + _validation = { + 'properties': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'UpgradeOperationHistoricalStatusInfoProperties'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UpgradeOperationHistoricalStatusInfo, self).__init__(**kwargs) + self.properties = None + self.type = None + self.location = None + + +class UpgradeOperationHistoricalStatusInfoProperties(msrest.serialization.Model): + """Describes each OS upgrade on the Virtual Machine Scale Set. + + 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.v2021_03_01.models.UpgradeOperationHistoryStatus + :ivar progress: Counts of the VMs in each state. + :vartype progress: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradeProgressInfo + :ivar error: Error Details for this upgrade if there are any. + :vartype error: ~azure.mgmt.compute.v2021_03_01.models.ApiError + :ivar started_by: Invoker of the Upgrade Operation. Possible values include: "Unknown", "User", + "Platform". + :vartype started_by: str or ~azure.mgmt.compute.v2021_03_01.models.UpgradeOperationInvoker + :ivar target_image_reference: Image Reference details. + :vartype target_image_reference: ~azure.mgmt.compute.v2021_03_01.models.ImageReference + :ivar rollback_info: Information about OS rollback if performed. + :vartype rollback_info: ~azure.mgmt.compute.v2021_03_01.models.RollbackStatusInfo + """ + + _validation = { + 'running_status': {'readonly': True}, + 'progress': {'readonly': True}, + 'error': {'readonly': True}, + 'started_by': {'readonly': True}, + 'target_image_reference': {'readonly': True}, + 'rollback_info': {'readonly': True}, + } + + _attribute_map = { + 'running_status': {'key': 'runningStatus', 'type': 'UpgradeOperationHistoryStatus'}, + 'progress': {'key': 'progress', 'type': 'RollingUpgradeProgressInfo'}, + 'error': {'key': 'error', 'type': 'ApiError'}, + 'started_by': {'key': 'startedBy', 'type': 'str'}, + 'target_image_reference': {'key': 'targetImageReference', 'type': 'ImageReference'}, + 'rollback_info': {'key': 'rollbackInfo', 'type': 'RollbackStatusInfo'}, + } + + def __init__( + self, + **kwargs + ): + super(UpgradeOperationHistoricalStatusInfoProperties, self).__init__(**kwargs) + self.running_status = None + self.progress = None + self.error = None + self.started_by = None + self.target_image_reference = None + self.rollback_info = None + + +class UpgradeOperationHistoryStatus(msrest.serialization.Model): + """Information about the current running state of the overall upgrade. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: Code indicating the current status of the upgrade. Possible values include: + "RollingForward", "Cancelled", "Completed", "Faulted". + :vartype code: str or ~azure.mgmt.compute.v2021_03_01.models.UpgradeState + :ivar start_time: Start time of the upgrade. + :vartype start_time: ~datetime.datetime + :ivar end_time: End time of the upgrade. + :vartype end_time: ~datetime.datetime + """ + + _validation = { + 'code': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(UpgradeOperationHistoryStatus, self).__init__(**kwargs) + self.code = None + self.start_time = None + self.end_time = None + + +class UpgradePolicy(msrest.serialization.Model): + """Describes an upgrade policy - automatic, manual, or rolling. + + :param mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
    `:code:`
    ` Possible values are::code:`
    `:code:`
    ` **Manual** - You control + the application of updates to virtual machines in the scale set. You do this by using the + manualUpgrade action.:code:`
    `:code:`
    ` **Automatic** - All virtual machines in the + scale set are automatically updated at the same time. Possible values include: "Automatic", + "Manual", "Rolling". + :type mode: str or ~azure.mgmt.compute.v2021_03_01.models.UpgradeMode + :param rolling_upgrade_policy: The configuration parameters used while performing a rolling + upgrade. + :type rolling_upgrade_policy: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradePolicy + :param automatic_os_upgrade_policy: Configuration parameters used for performing automatic OS + Upgrade. + :type automatic_os_upgrade_policy: + ~azure.mgmt.compute.v2021_03_01.models.AutomaticOSUpgradePolicy + """ + + _attribute_map = { + 'mode': {'key': 'mode', 'type': 'str'}, + 'rolling_upgrade_policy': {'key': 'rollingUpgradePolicy', 'type': 'RollingUpgradePolicy'}, + 'automatic_os_upgrade_policy': {'key': 'automaticOSUpgradePolicy', 'type': 'AutomaticOSUpgradePolicy'}, + } + + def __init__( + self, + **kwargs + ): + super(UpgradePolicy, self).__init__(**kwargs) + self.mode = kwargs.get('mode', None) + self.rolling_upgrade_policy = kwargs.get('rolling_upgrade_policy', None) + self.automatic_os_upgrade_policy = kwargs.get('automatic_os_upgrade_policy', None) + + +class Usage(msrest.serialization.Model): + """Describes Compute Resource Usage. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar unit: Required. An enum describing the unit of usage measurement. Default value: "Count". + :vartype unit: str + :param current_value: Required. The current usage of the resource. + :type current_value: int + :param limit: Required. The maximum permitted usage of the resource. + :type limit: long + :param name: Required. The name of the type of usage. + :type name: ~azure.mgmt.compute.v2021_03_01.models.UsageName + """ + + _validation = { + 'unit': {'required': True, 'constant': True}, + 'current_value': {'required': True}, + 'limit': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'unit': {'key': 'unit', 'type': 'str'}, + 'current_value': {'key': 'currentValue', 'type': 'int'}, + 'limit': {'key': 'limit', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'UsageName'}, + } + + unit = "Count" + + def __init__( + self, + **kwargs + ): + super(Usage, self).__init__(**kwargs) + self.current_value = kwargs['current_value'] + self.limit = kwargs['limit'] + self.name = kwargs['name'] + + +class UsageName(msrest.serialization.Model): + """The Usage Names. + + :param value: The name of the resource. + :type value: str + :param localized_value: The localized name of the resource. + :type localized_value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UsageName, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.localized_value = kwargs.get('localized_value', None) + + +class UserAssignedIdentitiesValue(msrest.serialization.Model): + """UserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class VaultCertificate(msrest.serialization.Model): + """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + + :param 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 + certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. + :type certificate_url: str + :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual + Machine to which the certificate should be added. The specified certificate store is implicitly + in the LocalMachine account. :code:`
    `:code:`
    `For Linux VMs, the certificate file is + placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt + for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of + these files are .pem formatted. + :type certificate_store: str + """ + + _attribute_map = { + 'certificate_url': {'key': 'certificateUrl', 'type': 'str'}, + 'certificate_store': {'key': 'certificateStore', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VaultCertificate, self).__init__(**kwargs) + self.certificate_url = kwargs.get('certificate_url', None) + self.certificate_store = kwargs.get('certificate_store', None) + + +class VaultSecretGroup(msrest.serialization.Model): + """Describes a set of certificates which are all in the same Key Vault. + + :param source_vault: The relative URL of the Key Vault containing all of the certificates in + VaultCertificates. + :type source_vault: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param vault_certificates: The list of key vault references in SourceVault which contain + certificates. + :type vault_certificates: list[~azure.mgmt.compute.v2021_03_01.models.VaultCertificate] + """ + + _attribute_map = { + 'source_vault': {'key': 'sourceVault', 'type': 'SubResource'}, + 'vault_certificates': {'key': 'vaultCertificates', 'type': '[VaultCertificate]'}, + } + + def __init__( + self, + **kwargs + ): + super(VaultSecretGroup, self).__init__(**kwargs) + self.source_vault = kwargs.get('source_vault', None) + self.vault_certificates = kwargs.get('vault_certificates', None) + + +class VirtualHardDisk(msrest.serialization.Model): + """Describes the uri of a disk. + + :param uri: Specifies the virtual hard disk's uri. + :type uri: str + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualHardDisk, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + + +class VirtualMachine(Resource): + """Describes a Virtual Machine. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param 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**. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.Plan + :ivar resources: The virtual machine child extension resources. + :vartype resources: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension] + :param identity: The identity of the virtual machine, if configured. + :type identity: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineIdentity + :param zones: The virtual machine zones. + :type zones: list[str] + :param extended_location: The extended location of the Virtual Machine. + :type extended_location: ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocation + :param hardware_profile: Specifies the hardware settings for the virtual machine. + :type hardware_profile: ~azure.mgmt.compute.v2021_03_01.models.HardwareProfile + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: ~azure.mgmt.compute.v2021_03_01.models.StorageProfile + :param additional_capabilities: Specifies additional capabilities enabled or disabled on the + virtual machine. + :type additional_capabilities: ~azure.mgmt.compute.v2021_03_01.models.AdditionalCapabilities + :param os_profile: Specifies the operating system settings used while creating the virtual + machine. Some of the settings cannot be changed once VM is provisioned. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.OSProfile + :param network_profile: Specifies the network interfaces of the virtual machine. + :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.NetworkProfile + :param security_profile: Specifies the Security related profile settings for the virtual + machine. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + :param diagnostics_profile: Specifies the boot diagnostic settings state. + :code:`
    `:code:`
    `Minimum api-version: 2015-06-15. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param 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 + sets, see `Availability sets overview + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation + time. The availability set to which the 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. + :code:`
    `:code:`
    `This property cannot exist along with a non-null + properties.virtualMachineScaleSet reference. + :type availability_set: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param 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. :code:`
    `:code:`
    `This property cannot exist along with a + non-null properties.availabilitySet reference. :code:`
    `:code:`
    `Minimum api‐version: + 2019‐03‐01. + :type virtual_machine_scale_set: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param proximity_placement_group: Specifies information about the proximity placement group + that the virtual machine should be assigned to. :code:`
    `:code:`
    `Minimum api-version: + 2018-04-01. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param priority: Specifies the priority for the virtual machine. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. Possible values include: "Regular", + "Low", "Spot". + :type priority: str or ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePriorityTypes + :param eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and + Azure Spot scale set. :code:`
    `:code:`
    `For Azure Spot virtual machines, both + 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. + :code:`
    `:code:`
    `For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported + and the minimum api-version is 2017-10-30-preview. Possible values include: "Deallocate", + "Delete". + :type eviction_policy: str or + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineEvictionPolicyTypes + :param billing_profile: Specifies the billing related details of a Azure Spot virtual machine. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + :type billing_profile: ~azure.mgmt.compute.v2021_03_01.models.BillingProfile + :param host: Specifies information about the dedicated host that the virtual machine resides + in. :code:`
    `:code:`
    `Minimum api-version: 2018-10-01. + :type host: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param host_group: Specifies information about the dedicated host group that the virtual + machine resides in. :code:`
    `:code:`
    `Minimum api-version: 2020-06-01. + :code:`
    `:code:`
    `NOTE: User cannot specify both host and hostGroup properties. + :type host_group: ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.VirtualMachineInstanceView + :param 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 + :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: + :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) + :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server + `_ + :code:`
    `:code:`
    ` `Azure Hybrid Use Benefit for Linux Server + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type license_type: str + :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and + stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. + :vartype vm_id: str + :param 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). :code:`
    `:code:`
    ` Minimum + api-version: 2020-06-01. + :type extensions_time_budget: str + :param platform_fault_domain: Specifies the scale set logical fault domain into which the + Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned + to a fault domain that best maintains balance across available fault + domains.:code:`
    `:code:`
  • `This is applicable only if the 'virtualMachineScaleSet' + property of this Virtual Machine is set.:code:`
  • `The Virtual Machine Scale Set that is + referenced, must have 'platformFaultDomainCount' > 1.:code:`
  • `This property cannot be + updated once the Virtual Machine is created.:code:`
  • `Fault domain assignment can be viewed + in the Virtual Machine Instance View.:code:`
    `:code:`
    `Minimum api‐version: 2020‐12‐01. + :type platform_fault_domain: int + :param scheduled_events_profile: Specifies Scheduled Event related configurations. + :type scheduled_events_profile: ~azure.mgmt.compute.v2021_03_01.models.ScheduledEventsProfile + :param 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. + :type user_data: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'resources': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, + 'vm_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'}, + 'identity': {'key': 'identity', 'type': 'VirtualMachineIdentity'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'}, + 'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'security_profile': {'key': 'properties.securityProfile', 'type': 'SecurityProfile'}, + 'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'}, + 'virtual_machine_scale_set': {'key': 'properties.virtualMachineScaleSet', 'type': 'SubResource'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + 'priority': {'key': 'properties.priority', 'type': 'str'}, + 'eviction_policy': {'key': 'properties.evictionPolicy', 'type': 'str'}, + 'billing_profile': {'key': 'properties.billingProfile', 'type': 'BillingProfile'}, + 'host': {'key': 'properties.host', 'type': 'SubResource'}, + 'host_group': {'key': 'properties.hostGroup', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'}, + 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'vm_id': {'key': 'properties.vmId', 'type': 'str'}, + 'extensions_time_budget': {'key': 'properties.extensionsTimeBudget', 'type': 'str'}, + 'platform_fault_domain': {'key': 'properties.platformFaultDomain', 'type': 'int'}, + 'scheduled_events_profile': {'key': 'properties.scheduledEventsProfile', 'type': 'ScheduledEventsProfile'}, + 'user_data': {'key': 'properties.userData', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachine, self).__init__(**kwargs) + self.plan = kwargs.get('plan', None) + self.resources = None + self.identity = kwargs.get('identity', None) + self.zones = kwargs.get('zones', None) + self.extended_location = kwargs.get('extended_location', None) + self.hardware_profile = kwargs.get('hardware_profile', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.additional_capabilities = kwargs.get('additional_capabilities', None) + self.os_profile = kwargs.get('os_profile', None) + self.network_profile = kwargs.get('network_profile', None) + self.security_profile = kwargs.get('security_profile', None) + self.diagnostics_profile = kwargs.get('diagnostics_profile', None) + self.availability_set = kwargs.get('availability_set', None) + self.virtual_machine_scale_set = kwargs.get('virtual_machine_scale_set', None) + self.proximity_placement_group = kwargs.get('proximity_placement_group', None) + self.priority = kwargs.get('priority', None) + self.eviction_policy = kwargs.get('eviction_policy', None) + self.billing_profile = kwargs.get('billing_profile', None) + self.host = kwargs.get('host', None) + self.host_group = kwargs.get('host_group', None) + self.provisioning_state = None + self.instance_view = None + self.license_type = kwargs.get('license_type', None) + self.vm_id = None + self.extensions_time_budget = kwargs.get('extensions_time_budget', None) + self.platform_fault_domain = kwargs.get('platform_fault_domain', None) + self.scheduled_events_profile = kwargs.get('scheduled_events_profile', None) + self.user_data = kwargs.get('user_data', None) + + +class VirtualMachineAgentInstanceView(msrest.serialization.Model): + """The instance view of the VM Agent running on the virtual machine. + + :param vm_agent_version: The VM Agent full version. + :type vm_agent_version: str + :param extension_handlers: The virtual machine extension handler instance view. + :type extension_handlers: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionHandlerInstanceView] + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _attribute_map = { + 'vm_agent_version': {'key': 'vmAgentVersion', 'type': 'str'}, + 'extension_handlers': {'key': 'extensionHandlers', 'type': '[VirtualMachineExtensionHandlerInstanceView]'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineAgentInstanceView, self).__init__(**kwargs) + self.vm_agent_version = kwargs.get('vm_agent_version', None) + self.extension_handlers = kwargs.get('extension_handlers', None) + self.statuses = kwargs.get('statuses', None) + + +class VirtualMachineAssessPatchesResult(msrest.serialization.Model): + """Describes the properties of an AssessPatches result. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", + or "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.compute.v2021_03_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 + :ivar reboot_pending: The overall reboot status of the VM. It will be true when partially + installed patches require a reboot to complete installation but the reboot has not yet + occurred. + :vartype reboot_pending: bool + :ivar critical_and_security_patch_count: The number of critical or security patches that have + been detected as available and not yet installed. + :vartype critical_and_security_patch_count: int + :ivar other_patch_count: The number of all available patches excluding critical and security. + :vartype other_patch_count: int + :ivar start_date_time: The UTC timestamp when the operation began. + :vartype start_date_time: ~datetime.datetime + :ivar available_patches: The list of patches that have been detected as available for + installation. + :vartype available_patches: + list[~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.ApiError + """ + + _validation = { + 'status': {'readonly': True}, + 'assessment_activity_id': {'readonly': True}, + 'reboot_pending': {'readonly': True}, + 'critical_and_security_patch_count': {'readonly': True}, + 'other_patch_count': {'readonly': True}, + 'start_date_time': {'readonly': True}, + 'available_patches': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'assessment_activity_id': {'key': 'assessmentActivityId', 'type': 'str'}, + 'reboot_pending': {'key': 'rebootPending', 'type': 'bool'}, + 'critical_and_security_patch_count': {'key': 'criticalAndSecurityPatchCount', 'type': 'int'}, + 'other_patch_count': {'key': 'otherPatchCount', 'type': 'int'}, + 'start_date_time': {'key': 'startDateTime', 'type': 'iso-8601'}, + 'available_patches': {'key': 'availablePatches', 'type': '[VirtualMachineSoftwarePatchProperties]'}, + 'error': {'key': 'error', 'type': 'ApiError'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineAssessPatchesResult, self).__init__(**kwargs) + self.status = None + self.assessment_activity_id = None + self.reboot_pending = None + self.critical_and_security_patch_count = None + self.other_patch_count = None + self.start_date_time = None + self.available_patches = None + self.error = None + + +class VirtualMachineCaptureParameters(msrest.serialization.Model): + """Capture Virtual Machine parameters. + + All required parameters must be populated in order to send to Azure. + + :param vhd_prefix: Required. The captured virtual hard disk's name prefix. + :type vhd_prefix: str + :param destination_container_name: Required. The destination container name. + :type destination_container_name: str + :param overwrite_vhds: Required. Specifies whether to overwrite the destination virtual hard + disk, in case of conflict. + :type overwrite_vhds: bool + """ + + _validation = { + 'vhd_prefix': {'required': True}, + 'destination_container_name': {'required': True}, + 'overwrite_vhds': {'required': True}, + } + + _attribute_map = { + 'vhd_prefix': {'key': 'vhdPrefix', 'type': 'str'}, + 'destination_container_name': {'key': 'destinationContainerName', 'type': 'str'}, + 'overwrite_vhds': {'key': 'overwriteVhds', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineCaptureParameters, self).__init__(**kwargs) + self.vhd_prefix = kwargs['vhd_prefix'] + self.destination_container_name = kwargs['destination_container_name'] + self.overwrite_vhds = kwargs['overwrite_vhds'] + + +class VirtualMachineCaptureResult(SubResource): + """Output of virtual machine capture operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: Resource Id. + :type id: str + :ivar schema: the schema of the captured virtual machine. + :vartype schema: str + :ivar content_version: the version of the content. + :vartype content_version: str + :ivar parameters: parameters of the captured virtual machine. + :vartype parameters: any + :ivar resources: a list of resource items of the captured virtual machine. + :vartype resources: list[any] + """ + + _validation = { + 'schema': {'readonly': True}, + 'content_version': {'readonly': True}, + 'parameters': {'readonly': True}, + 'resources': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'schema': {'key': '$schema', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'resources': {'key': 'resources', 'type': '[object]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineCaptureResult, self).__init__(**kwargs) + self.schema = None + self.content_version = None + self.parameters = None + self.resources = None + + +class VirtualMachineExtension(Resource): + """Describes a Virtual Machine Extension. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param force_update_tag: How the extension handler should be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_type: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type_properties_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param instance_view: The virtual machine extension instance view. + :type instance_view: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionInstanceView + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineExtension, self).__init__(**kwargs) + self.force_update_tag = kwargs.get('force_update_tag', None) + self.publisher = kwargs.get('publisher', None) + self.type_properties_type = kwargs.get('type_properties_type', None) + self.type_handler_version = kwargs.get('type_handler_version', None) + self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) + self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None) + self.settings = kwargs.get('settings', None) + self.protected_settings = kwargs.get('protected_settings', None) + self.provisioning_state = None + self.instance_view = kwargs.get('instance_view', None) + + +class VirtualMachineExtensionHandlerInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine extension handler. + + :param type: Specifies the type of the extension; an example is "CustomScriptExtension". + :type type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param status: The extension handler status. + :type status: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'InstanceViewStatus'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineExtensionHandlerInstanceView, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.type_handler_version = kwargs.get('type_handler_version', None) + self.status = kwargs.get('status', None) + + +class VirtualMachineExtensionImage(Resource): + """Describes a Virtual Machine Extension Image. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param operating_system: The operating system this extension supports. + :type operating_system: str + :param compute_role: The type of role (IaaS or PaaS) this extension supports. + :type compute_role: str + :param handler_schema: The schema defined by publisher, where extension consumers should + provide settings in a matching schema. + :type handler_schema: str + :param vm_scale_set_enabled: Whether the extension can be used on xRP VMScaleSets. By default + existing extensions are usable on scalesets, but there might be cases where a publisher wants + to explicitly indicate the extension is only enabled for CRP VMs but not VMSS. + :type vm_scale_set_enabled: bool + :param supports_multiple_extensions: Whether the handler can support multiple extensions. + :type supports_multiple_extensions: bool + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'operating_system': {'key': 'properties.operatingSystem', 'type': 'str'}, + 'compute_role': {'key': 'properties.computeRole', 'type': 'str'}, + 'handler_schema': {'key': 'properties.handlerSchema', 'type': 'str'}, + 'vm_scale_set_enabled': {'key': 'properties.vmScaleSetEnabled', 'type': 'bool'}, + 'supports_multiple_extensions': {'key': 'properties.supportsMultipleExtensions', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineExtensionImage, self).__init__(**kwargs) + self.operating_system = kwargs.get('operating_system', None) + self.compute_role = kwargs.get('compute_role', None) + self.handler_schema = kwargs.get('handler_schema', None) + self.vm_scale_set_enabled = kwargs.get('vm_scale_set_enabled', None) + self.supports_multiple_extensions = kwargs.get('supports_multiple_extensions', None) + + +class VirtualMachineExtensionInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine extension. + + :param name: The virtual machine extension name. + :type name: str + :param type: Specifies the type of the extension; an example is "CustomScriptExtension". + :type type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param substatuses: The resource status information. + :type substatuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'}, + 'substatuses': {'key': 'substatuses', 'type': '[InstanceViewStatus]'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineExtensionInstanceView, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = kwargs.get('type', None) + self.type_handler_version = kwargs.get('type_handler_version', None) + self.substatuses = kwargs.get('substatuses', None) + self.statuses = kwargs.get('statuses', None) + + +class VirtualMachineExtensionsListResult(msrest.serialization.Model): + """The List Extension operation response. + + :param value: The list of extensions. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachineExtension]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineExtensionsListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class VirtualMachineExtensionUpdate(UpdateResource): + """Describes a Virtual Machine Extension. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param force_update_tag: How the extension handler should be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type: Specifies the type of the extension; an example is "CustomScriptExtension". + :type type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineExtensionUpdate, self).__init__(**kwargs) + self.force_update_tag = kwargs.get('force_update_tag', None) + self.publisher = kwargs.get('publisher', None) + self.type = kwargs.get('type', None) + self.type_handler_version = kwargs.get('type_handler_version', None) + self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) + self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None) + self.settings = kwargs.get('settings', None) + self.protected_settings = kwargs.get('protected_settings', None) + + +class VirtualMachineHealthStatus(msrest.serialization.Model): + """The health status of the VM. + + 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.v2021_03_01.models.InstanceViewStatus + """ + + _validation = { + 'status': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'InstanceViewStatus'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineHealthStatus, self).__init__(**kwargs) + self.status = None + + +class VirtualMachineIdentity(msrest.serialization.Model): + """Identity for the virtual machine. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal id of virtual machine identity. This property will only be + provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the virtual machine. This property will only be + provided for a system assigned identity. + :vartype tenant_id: str + :param type: The type of identity used for the virtual machine. The type 'SystemAssigned, + 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. Possible + values include: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None". + :type type: str or ~azure.mgmt.compute.v2021_03_01.models.ResourceIdentityType + :param 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}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.compute.v2021_03_01.models.UserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentitiesValue}'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) + + +class VirtualMachineImageResource(SubResource): + """Virtual machine image resource information. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource Id. + :type id: str + :param name: Required. The name of the resource. + :type name: str + :param location: Required. The supported Azure location of the resource. + :type location: str + :param tags: A set of tags. Specifies the tags that are assigned to the virtual machine. For + more information about using tags, see `Using tags to organize your Azure resources + `_. + :type tags: dict[str, str] + :param extended_location: The extended location of the Virtual Machine. + :type extended_location: ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocation + """ + + _validation = { + 'name': {'required': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineImageResource, self).__init__(**kwargs) + self.name = kwargs['name'] + self.location = kwargs['location'] + self.tags = kwargs.get('tags', None) + self.extended_location = kwargs.get('extended_location', None) + + +class VirtualMachineImage(VirtualMachineImageResource): + """Describes a Virtual Machine Image. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource Id. + :type id: str + :param name: Required. The name of the resource. + :type name: str + :param location: Required. The supported Azure location of the resource. + :type location: str + :param tags: A set of tags. Specifies the tags that are assigned to the virtual machine. For + more information about using tags, see `Using tags to organize your Azure resources + `_. + :type tags: dict[str, str] + :param extended_location: The extended location of the Virtual Machine. + :type extended_location: ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocation + :param plan: Used for establishing the purchase context of any 3rd Party artifact through + MarketPlace. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.PurchasePlan + :param os_disk_image: Contains the os disk image information. + :type os_disk_image: ~azure.mgmt.compute.v2021_03_01.models.OSDiskImage + :param data_disk_images: + :type data_disk_images: list[~azure.mgmt.compute.v2021_03_01.models.DataDiskImage] + :param automatic_os_upgrade_properties: Describes automatic OS upgrade properties on the image. + :type automatic_os_upgrade_properties: + ~azure.mgmt.compute.v2021_03_01.models.AutomaticOSUpgradeProperties + :param hyper_v_generation: Specifies the HyperVGeneration Type. Possible values include: "V1", + "V2". + :type hyper_v_generation: str or ~azure.mgmt.compute.v2021_03_01.models.HyperVGenerationTypes + :param disallowed: Specifies disallowed configuration for the VirtualMachine created from the + image. + :type disallowed: ~azure.mgmt.compute.v2021_03_01.models.DisallowedConfiguration + :param features: + :type features: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageFeature] + """ + + _validation = { + 'name': {'required': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'plan': {'key': 'properties.plan', 'type': 'PurchasePlan'}, + 'os_disk_image': {'key': 'properties.osDiskImage', 'type': 'OSDiskImage'}, + 'data_disk_images': {'key': 'properties.dataDiskImages', 'type': '[DataDiskImage]'}, + 'automatic_os_upgrade_properties': {'key': 'properties.automaticOSUpgradeProperties', 'type': 'AutomaticOSUpgradeProperties'}, + 'hyper_v_generation': {'key': 'properties.hyperVGeneration', 'type': 'str'}, + 'disallowed': {'key': 'properties.disallowed', 'type': 'DisallowedConfiguration'}, + 'features': {'key': 'properties.features', 'type': '[VirtualMachineImageFeature]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineImage, self).__init__(**kwargs) + self.plan = kwargs.get('plan', None) + self.os_disk_image = kwargs.get('os_disk_image', None) + self.data_disk_images = kwargs.get('data_disk_images', None) + self.automatic_os_upgrade_properties = kwargs.get('automatic_os_upgrade_properties', None) + self.hyper_v_generation = kwargs.get('hyper_v_generation', None) + self.disallowed = kwargs.get('disallowed', None) + self.features = kwargs.get('features', None) + + +class VirtualMachineImageFeature(msrest.serialization.Model): + """Specifies additional capabilities supported by the image. + + :param name: The name of the feature. + :type name: str + :param value: The corresponding value for the feature. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineImageFeature, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) + + +class VirtualMachineInstallPatchesParameters(msrest.serialization.Model): + """Input for InstallPatches as directly received by the API. + + All required parameters must be populated in order to send to Azure. + + :param maximum_duration: Required. Specifies the maximum amount of time that the operation will + run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). + :type maximum_duration: str + :param reboot_setting: Required. Defines when it is acceptable to reboot a VM during a software + update operation. Possible values include: "IfRequired", "Never", "Always". + :type reboot_setting: str or ~azure.mgmt.compute.v2021_03_01.models.VMGuestPatchRebootSetting + :param windows_parameters: Input for InstallPatches on a Windows VM, as directly received by + the API. + :type windows_parameters: ~azure.mgmt.compute.v2021_03_01.models.WindowsParameters + :param linux_parameters: Input for InstallPatches on a Linux VM, as directly received by the + API. + :type linux_parameters: ~azure.mgmt.compute.v2021_03_01.models.LinuxParameters + """ + + _validation = { + 'maximum_duration': {'required': True}, + 'reboot_setting': {'required': True}, + } + + _attribute_map = { + 'maximum_duration': {'key': 'maximumDuration', 'type': 'str'}, + 'reboot_setting': {'key': 'rebootSetting', 'type': 'str'}, + 'windows_parameters': {'key': 'windowsParameters', 'type': 'WindowsParameters'}, + 'linux_parameters': {'key': 'linuxParameters', 'type': 'LinuxParameters'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineInstallPatchesParameters, self).__init__(**kwargs) + self.maximum_duration = kwargs['maximum_duration'] + self.reboot_setting = kwargs['reboot_setting'] + self.windows_parameters = kwargs.get('windows_parameters', None) + self.linux_parameters = kwargs.get('linux_parameters', None) + + +class VirtualMachineInstallPatchesResult(msrest.serialization.Model): + """The result summary of an installation operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Failed", "Succeeded", "Unknown" or + "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.compute.v2021_03_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. Possible + values include: "Unknown", "NotNeeded", "Required", "Started", "Failed", "Completed". + :vartype reboot_status: str or ~azure.mgmt.compute.v2021_03_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 + :ivar excluded_patch_count: The number of patches that were not installed due to the user + blocking their installation. + :vartype excluded_patch_count: int + :ivar not_selected_patch_count: The number of patches that were detected as available for + install, but did not meet the operation's criteria. + :vartype not_selected_patch_count: int + :ivar pending_patch_count: The number of patches that were identified as meeting the + installation criteria, but were not able to be installed. Typically this happens when + maintenanceWindowExceeded == true. + :vartype pending_patch_count: int + :ivar installed_patch_count: The number of patches successfully installed. + :vartype installed_patch_count: int + :ivar failed_patch_count: The number of patches that could not be installed due to some issue. + 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.v2021_03_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.v2021_03_01.models.ApiError + """ + + _validation = { + 'status': {'readonly': True}, + 'installation_activity_id': {'readonly': True}, + 'reboot_status': {'readonly': True}, + 'maintenance_window_exceeded': {'readonly': True}, + 'excluded_patch_count': {'readonly': True}, + 'not_selected_patch_count': {'readonly': True}, + 'pending_patch_count': {'readonly': True}, + 'installed_patch_count': {'readonly': True}, + 'failed_patch_count': {'readonly': True}, + 'patches': {'readonly': True}, + 'start_date_time': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'installation_activity_id': {'key': 'installationActivityId', 'type': 'str'}, + 'reboot_status': {'key': 'rebootStatus', 'type': 'str'}, + 'maintenance_window_exceeded': {'key': 'maintenanceWindowExceeded', 'type': 'bool'}, + 'excluded_patch_count': {'key': 'excludedPatchCount', 'type': 'int'}, + 'not_selected_patch_count': {'key': 'notSelectedPatchCount', 'type': 'int'}, + 'pending_patch_count': {'key': 'pendingPatchCount', 'type': 'int'}, + 'installed_patch_count': {'key': 'installedPatchCount', 'type': 'int'}, + 'failed_patch_count': {'key': 'failedPatchCount', 'type': 'int'}, + 'patches': {'key': 'patches', 'type': '[PatchInstallationDetail]'}, + 'start_date_time': {'key': 'startDateTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'ApiError'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineInstallPatchesResult, self).__init__(**kwargs) + self.status = None + self.installation_activity_id = None + self.reboot_status = None + self.maintenance_window_exceeded = None + self.excluded_patch_count = None + self.not_selected_patch_count = None + self.pending_patch_count = None + self.installed_patch_count = None + self.failed_patch_count = None + self.patches = None + self.start_date_time = None + self.error = None + + +class VirtualMachineInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param platform_update_domain: Specifies the update domain of the virtual machine. + :type platform_update_domain: int + :param platform_fault_domain: Specifies the fault domain of the virtual machine. + :type platform_fault_domain: int + :param computer_name: The computer name assigned to the virtual machine. + :type computer_name: str + :param os_name: The Operating System running on the virtual machine. + :type os_name: str + :param os_version: The version of Operating System running on the virtual machine. + :type os_version: str + :param hyper_v_generation: Specifies the HyperVGeneration Type associated with a resource. + Possible values include: "V1", "V2". + :type hyper_v_generation: str or ~azure.mgmt.compute.v2021_03_01.models.HyperVGenerationType + :param rdp_thumb_print: The Remote desktop certificate thumbprint. + :type rdp_thumb_print: str + :param vm_agent: The VM Agent running on the virtual machine. + :type vm_agent: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineAgentInstanceView + :param maintenance_redeploy_status: The Maintenance Operation status on the virtual machine. + :type maintenance_redeploy_status: + ~azure.mgmt.compute.v2021_03_01.models.MaintenanceRedeployStatus + :param disks: The virtual machine disk information. + :type disks: list[~azure.mgmt.compute.v2021_03_01.models.DiskInstanceView] + :param extensions: The extensions information. + :type extensions: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionInstanceView] + :ivar vm_health: The health status for the VM. + :vartype vm_health: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineHealthStatus + :param boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view + Console Output and Screenshot to diagnose VM status. :code:`
    `:code:`
    ` You can easily + view the output of your console log. :code:`
    `:code:`
    ` Azure also enables you to see a + screenshot of the VM from the hypervisor. + :type boot_diagnostics: ~azure.mgmt.compute.v2021_03_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. :code:`
    `:code:`
    `Minimum api-version: + 2020-06-01. + :vartype assigned_host: str + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + :param patch_status: [Preview Feature] The status of virtual machine patch operations. + :type patch_status: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePatchStatus + """ + + _validation = { + 'vm_health': {'readonly': True}, + 'assigned_host': {'readonly': True}, + } + + _attribute_map = { + 'platform_update_domain': {'key': 'platformUpdateDomain', 'type': 'int'}, + 'platform_fault_domain': {'key': 'platformFaultDomain', 'type': 'int'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'os_name': {'key': 'osName', 'type': 'str'}, + 'os_version': {'key': 'osVersion', 'type': 'str'}, + 'hyper_v_generation': {'key': 'hyperVGeneration', 'type': 'str'}, + 'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'}, + 'vm_agent': {'key': 'vmAgent', 'type': 'VirtualMachineAgentInstanceView'}, + 'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'}, + 'disks': {'key': 'disks', 'type': '[DiskInstanceView]'}, + 'extensions': {'key': 'extensions', 'type': '[VirtualMachineExtensionInstanceView]'}, + 'vm_health': {'key': 'vmHealth', 'type': 'VirtualMachineHealthStatus'}, + 'boot_diagnostics': {'key': 'bootDiagnostics', 'type': 'BootDiagnosticsInstanceView'}, + 'assigned_host': {'key': 'assignedHost', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + 'patch_status': {'key': 'patchStatus', 'type': 'VirtualMachinePatchStatus'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineInstanceView, self).__init__(**kwargs) + self.platform_update_domain = kwargs.get('platform_update_domain', None) + self.platform_fault_domain = kwargs.get('platform_fault_domain', None) + self.computer_name = kwargs.get('computer_name', None) + self.os_name = kwargs.get('os_name', None) + self.os_version = kwargs.get('os_version', None) + self.hyper_v_generation = kwargs.get('hyper_v_generation', None) + self.rdp_thumb_print = kwargs.get('rdp_thumb_print', None) + self.vm_agent = kwargs.get('vm_agent', None) + self.maintenance_redeploy_status = kwargs.get('maintenance_redeploy_status', None) + self.disks = kwargs.get('disks', None) + self.extensions = kwargs.get('extensions', None) + self.vm_health = None + self.boot_diagnostics = kwargs.get('boot_diagnostics', None) + self.assigned_host = None + self.statuses = kwargs.get('statuses', None) + self.patch_status = kwargs.get('patch_status', None) + + +class VirtualMachineIpTag(msrest.serialization.Model): + """Contains the IP tag associated with the public IP address. + + :param ip_tag_type: IP tag type. Example: FirstPartyUsage. + :type ip_tag_type: str + :param tag: IP tag associated with the public IP. Example: SQL, Storage etc. + :type tag: str + """ + + _attribute_map = { + 'ip_tag_type': {'key': 'ipTagType', 'type': 'str'}, + 'tag': {'key': 'tag', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineIpTag, self).__init__(**kwargs) + self.ip_tag_type = kwargs.get('ip_tag_type', None) + self.tag = kwargs.get('tag', None) + + +class VirtualMachineListResult(msrest.serialization.Model): + """The List Virtual Machine operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of virtual machines. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachine] + :param next_link: The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch + the next page of Virtual Machines. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachine]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class VirtualMachineNetworkInterfaceConfiguration(msrest.serialization.Model): + """Describes a virtual machine network interface configurations. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The network interface configuration name. + :type name: str + :param primary: Specifies the primary network interface in case the virtual machine has more + than 1 network interface. + :type primary: bool + :param delete_option: Specify what happens to the network interface when the VM is deleted. + Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions + :param enable_accelerated_networking: Specifies whether the network interface is accelerated + networking-enabled. + :type enable_accelerated_networking: bool + :param enable_fpga: Specifies whether the network interface is FPGA networking-enabled. + :type enable_fpga: bool + :param enable_ip_forwarding: Whether IP forwarding enabled on this NIC. + :type enable_ip_forwarding: bool + :param network_security_group: The network security group. + :type network_security_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param dns_settings: The dns settings to be applied on the network interfaces. + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration + :param ip_configurations: Specifies the IP configurations of the network interface. + :type ip_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineNetworkInterfaceIPConfiguration] + :param dscp_configuration: + :type dscp_configuration: ~azure.mgmt.compute.v2021_03_01.models.SubResource + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, + 'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'}, + 'enable_fpga': {'key': 'properties.enableFpga', 'type': 'bool'}, + 'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'SubResource'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineNetworkInterfaceDnsSettingsConfiguration'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[VirtualMachineNetworkInterfaceIPConfiguration]'}, + 'dscp_configuration': {'key': 'properties.dscpConfiguration', 'type': 'SubResource'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineNetworkInterfaceConfiguration, self).__init__(**kwargs) + self.name = kwargs['name'] + self.primary = kwargs.get('primary', None) + self.delete_option = kwargs.get('delete_option', None) + self.enable_accelerated_networking = kwargs.get('enable_accelerated_networking', None) + self.enable_fpga = kwargs.get('enable_fpga', None) + self.enable_ip_forwarding = kwargs.get('enable_ip_forwarding', None) + self.network_security_group = kwargs.get('network_security_group', None) + self.dns_settings = kwargs.get('dns_settings', None) + self.ip_configurations = kwargs.get('ip_configurations', None) + self.dscp_configuration = kwargs.get('dscp_configuration', None) + + +class VirtualMachineNetworkInterfaceDnsSettingsConfiguration(msrest.serialization.Model): + """Describes a virtual machines network configuration's DNS settings. + + :param dns_servers: List of DNS servers IP addresses. + :type dns_servers: list[str] + """ + + _attribute_map = { + 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineNetworkInterfaceDnsSettingsConfiguration, self).__init__(**kwargs) + self.dns_servers = kwargs.get('dns_servers', None) + + +class VirtualMachineNetworkInterfaceIPConfiguration(msrest.serialization.Model): + """Describes a virtual machine network profile's IP configuration. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The IP configuration name. + :type name: str + :param subnet: Specifies the identifier of the subnet. + :type subnet: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param primary: Specifies the primary network interface in case the virtual machine has more + than 1 network interface. + :type primary: bool + :param public_ip_address_configuration: The publicIPAddressConfiguration. + :type public_ip_address_configuration: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePublicIPAddressConfiguration + :param 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'. Possible values include: "IPv4", "IPv6". + :type private_ip_address_version: str or ~azure.mgmt.compute.v2021_03_01.models.IPVersions + :param application_security_groups: Specifies an array of references to application security + group. + :type application_security_groups: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param 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. + :type application_gateway_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param 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]. + :type load_balancer_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'public_ip_address_configuration': {'key': 'properties.publicIPAddressConfiguration', 'type': 'VirtualMachinePublicIPAddressConfiguration'}, + 'private_ip_address_version': {'key': 'properties.privateIPAddressVersion', 'type': 'str'}, + 'application_security_groups': {'key': 'properties.applicationSecurityGroups', 'type': '[SubResource]'}, + 'application_gateway_backend_address_pools': {'key': 'properties.applicationGatewayBackendAddressPools', 'type': '[SubResource]'}, + 'load_balancer_backend_address_pools': {'key': 'properties.loadBalancerBackendAddressPools', 'type': '[SubResource]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineNetworkInterfaceIPConfiguration, self).__init__(**kwargs) + self.name = kwargs['name'] + self.subnet = kwargs.get('subnet', None) + self.primary = kwargs.get('primary', None) + self.public_ip_address_configuration = kwargs.get('public_ip_address_configuration', None) + self.private_ip_address_version = kwargs.get('private_ip_address_version', None) + self.application_security_groups = kwargs.get('application_security_groups', None) + self.application_gateway_backend_address_pools = kwargs.get('application_gateway_backend_address_pools', None) + self.load_balancer_backend_address_pools = kwargs.get('load_balancer_backend_address_pools', None) + + +class VirtualMachinePatchStatus(msrest.serialization.Model): + """The status of virtual machine patch operations. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param available_patch_summary: The available patch summary of the latest assessment operation + for the virtual machine. + :type available_patch_summary: ~azure.mgmt.compute.v2021_03_01.models.AvailablePatchSummary + :param last_patch_installation_summary: The installation summary of the latest installation + operation for the virtual machine. + :type last_patch_installation_summary: + ~azure.mgmt.compute.v2021_03_01.models.LastPatchInstallationSummary + :ivar configuration_statuses: The enablement status of the specified patchMode. + :vartype configuration_statuses: + list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _validation = { + 'configuration_statuses': {'readonly': True}, + } + + _attribute_map = { + 'available_patch_summary': {'key': 'availablePatchSummary', 'type': 'AvailablePatchSummary'}, + 'last_patch_installation_summary': {'key': 'lastPatchInstallationSummary', 'type': 'LastPatchInstallationSummary'}, + 'configuration_statuses': {'key': 'configurationStatuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachinePatchStatus, self).__init__(**kwargs) + self.available_patch_summary = kwargs.get('available_patch_summary', None) + self.last_patch_installation_summary = kwargs.get('last_patch_installation_summary', None) + self.configuration_statuses = None + + +class VirtualMachinePublicIPAddressConfiguration(msrest.serialization.Model): + """Describes a virtual machines IP Configuration's PublicIPAddress configuration. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The publicIP address configuration name. + :type name: str + :param sku: Describes the public IP Sku. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.PublicIPAddressSku + :param idle_timeout_in_minutes: The idle timeout of the public IP address. + :type idle_timeout_in_minutes: int + :param delete_option: Specify what happens to the public IP address when the VM is deleted. + Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions + :param dns_settings: The dns settings to be applied on the publicIP addresses . + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePublicIPAddressDnsSettingsConfiguration + :param ip_tags: The list of IP tags associated with the public IP address. + :type ip_tags: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineIpTag] + :param public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. + :type public_ip_prefix: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param 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'. Possible values include: "IPv4", "IPv6". + :type public_ip_address_version: str or ~azure.mgmt.compute.v2021_03_01.models.IPVersions + :param public_ip_allocation_method: Specify the public IP allocation type. Possible values + include: "Dynamic", "Static". + :type public_ip_allocation_method: str or + ~azure.mgmt.compute.v2021_03_01.models.PublicIPAllocationMethod + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'PublicIPAddressSku'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachinePublicIPAddressDnsSettingsConfiguration'}, + 'ip_tags': {'key': 'properties.ipTags', 'type': '[VirtualMachineIpTag]'}, + 'public_ip_prefix': {'key': 'properties.publicIPPrefix', 'type': 'SubResource'}, + 'public_ip_address_version': {'key': 'properties.publicIPAddressVersion', 'type': 'str'}, + 'public_ip_allocation_method': {'key': 'properties.publicIPAllocationMethod', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachinePublicIPAddressConfiguration, self).__init__(**kwargs) + self.name = kwargs['name'] + self.sku = kwargs.get('sku', None) + self.idle_timeout_in_minutes = kwargs.get('idle_timeout_in_minutes', None) + self.delete_option = kwargs.get('delete_option', None) + self.dns_settings = kwargs.get('dns_settings', None) + self.ip_tags = kwargs.get('ip_tags', None) + self.public_ip_prefix = kwargs.get('public_ip_prefix', None) + self.public_ip_address_version = kwargs.get('public_ip_address_version', None) + self.public_ip_allocation_method = kwargs.get('public_ip_allocation_method', None) + + +class VirtualMachinePublicIPAddressDnsSettingsConfiguration(msrest.serialization.Model): + """Describes a virtual machines network configuration's DNS settings. + + All required parameters must be populated in order to send to Azure. + + :param domain_name_label: Required. The Domain name label prefix of the PublicIPAddress + resources that will be created. The generated name label is the concatenation of the domain + name label and vm network profile unique ID. + :type domain_name_label: str + """ + + _validation = { + 'domain_name_label': {'required': True}, + } + + _attribute_map = { + 'domain_name_label': {'key': 'domainNameLabel', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachinePublicIPAddressDnsSettingsConfiguration, self).__init__(**kwargs) + self.domain_name_label = kwargs['domain_name_label'] + + +class VirtualMachineReimageParameters(msrest.serialization.Model): + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + + :param temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp + disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. + :type temp_disk: bool + """ + + _attribute_map = { + 'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineReimageParameters, self).__init__(**kwargs) + self.temp_disk = kwargs.get('temp_disk', None) + + +class VirtualMachineRunCommand(Resource): + """Describes a Virtual Machine run command. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param source: The source of the run command script. + :type source: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandScriptSource + :param parameters: The parameters used by the script. + :type parameters: list[~azure.mgmt.compute.v2021_03_01.models.RunCommandInputParameter] + :param protected_parameters: The parameters used by the script. + :type protected_parameters: + list[~azure.mgmt.compute.v2021_03_01.models.RunCommandInputParameter] + :param async_execution: Optional. If set to true, provisioning will complete as soon as the + script starts and will not wait for script to complete. + :type async_execution: bool + :param run_as_user: Specifies the user account on the VM when executing the run command. + :type run_as_user: str + :param run_as_password: Specifies the user account password on the VM when executing the run + command. + :type run_as_password: str + :param timeout_in_seconds: The timeout in seconds to execute the run command. + :type timeout_in_seconds: int + :param output_blob_uri: Specifies the Azure storage blob where script output stream will be + uploaded. + :type output_blob_uri: str + :param error_blob_uri: Specifies the Azure storage blob where script error stream will be + uploaded. + :type error_blob_uri: str + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :ivar instance_view: The virtual machine run command instance view. + :vartype instance_view: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandInstanceView + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'VirtualMachineRunCommandScriptSource'}, + 'parameters': {'key': 'properties.parameters', 'type': '[RunCommandInputParameter]'}, + 'protected_parameters': {'key': 'properties.protectedParameters', 'type': '[RunCommandInputParameter]'}, + 'async_execution': {'key': 'properties.asyncExecution', 'type': 'bool'}, + 'run_as_user': {'key': 'properties.runAsUser', 'type': 'str'}, + 'run_as_password': {'key': 'properties.runAsPassword', 'type': 'str'}, + 'timeout_in_seconds': {'key': 'properties.timeoutInSeconds', 'type': 'int'}, + 'output_blob_uri': {'key': 'properties.outputBlobUri', 'type': 'str'}, + 'error_blob_uri': {'key': 'properties.errorBlobUri', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineRunCommandInstanceView'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineRunCommand, self).__init__(**kwargs) + self.source = kwargs.get('source', None) + self.parameters = kwargs.get('parameters', None) + self.protected_parameters = kwargs.get('protected_parameters', None) + self.async_execution = kwargs.get('async_execution', False) + self.run_as_user = kwargs.get('run_as_user', None) + self.run_as_password = kwargs.get('run_as_password', None) + self.timeout_in_seconds = kwargs.get('timeout_in_seconds', None) + self.output_blob_uri = kwargs.get('output_blob_uri', None) + self.error_blob_uri = kwargs.get('error_blob_uri', None) + self.provisioning_state = None + self.instance_view = None + + +class VirtualMachineRunCommandInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine run command. + + :param execution_state: Script execution status. Possible values include: "Unknown", "Pending", + "Running", "Failed", "Succeeded", "TimedOut", "Canceled". + :type execution_state: str or ~azure.mgmt.compute.v2021_03_01.models.ExecutionState + :param execution_message: Communicate script configuration errors or execution messages. + :type execution_message: str + :param exit_code: Exit code returned from script execution. + :type exit_code: int + :param output: Script output stream. + :type output: str + :param error: Script error stream. + :type error: str + :param start_time: Script start time. + :type start_time: ~datetime.datetime + :param end_time: Script end time. + :type end_time: ~datetime.datetime + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _attribute_map = { + 'execution_state': {'key': 'executionState', 'type': 'str'}, + 'execution_message': {'key': 'executionMessage', 'type': 'str'}, + 'exit_code': {'key': 'exitCode', 'type': 'int'}, + 'output': {'key': 'output', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineRunCommandInstanceView, self).__init__(**kwargs) + self.execution_state = kwargs.get('execution_state', None) + self.execution_message = kwargs.get('execution_message', None) + self.exit_code = kwargs.get('exit_code', None) + self.output = kwargs.get('output', None) + self.error = kwargs.get('error', None) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.statuses = kwargs.get('statuses', None) + + +class VirtualMachineRunCommandScriptSource(msrest.serialization.Model): + """Describes the script sources for run command. + + :param script: Specifies the script content to be executed on the VM. + :type script: str + :param script_uri: Specifies the script download location. + :type script_uri: str + :param command_id: Specifies a commandId of predefined built-in script. + :type command_id: str + """ + + _attribute_map = { + 'script': {'key': 'script', 'type': 'str'}, + 'script_uri': {'key': 'scriptUri', 'type': 'str'}, + 'command_id': {'key': 'commandId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineRunCommandScriptSource, self).__init__(**kwargs) + self.script = kwargs.get('script', None) + self.script_uri = kwargs.get('script_uri', None) + self.command_id = kwargs.get('command_id', None) + + +class VirtualMachineRunCommandsListResult(msrest.serialization.Model): + """The List run command operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of run commands. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand] + :param next_link: The uri to fetch the next page of run commands. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachineRunCommand]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineRunCommandsListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class VirtualMachineRunCommandUpdate(UpdateResource): + """Describes a Virtual Machine run command. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param source: The source of the run command script. + :type source: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandScriptSource + :param parameters: The parameters used by the script. + :type parameters: list[~azure.mgmt.compute.v2021_03_01.models.RunCommandInputParameter] + :param protected_parameters: The parameters used by the script. + :type protected_parameters: + list[~azure.mgmt.compute.v2021_03_01.models.RunCommandInputParameter] + :param async_execution: Optional. If set to true, provisioning will complete as soon as the + script starts and will not wait for script to complete. + :type async_execution: bool + :param run_as_user: Specifies the user account on the VM when executing the run command. + :type run_as_user: str + :param run_as_password: Specifies the user account password on the VM when executing the run + command. + :type run_as_password: str + :param timeout_in_seconds: The timeout in seconds to execute the run command. + :type timeout_in_seconds: int + :param output_blob_uri: Specifies the Azure storage blob where script output stream will be + uploaded. + :type output_blob_uri: str + :param error_blob_uri: Specifies the Azure storage blob where script error stream will be + uploaded. + :type error_blob_uri: str + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :ivar instance_view: The virtual machine run command instance view. + :vartype instance_view: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandInstanceView + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'VirtualMachineRunCommandScriptSource'}, + 'parameters': {'key': 'properties.parameters', 'type': '[RunCommandInputParameter]'}, + 'protected_parameters': {'key': 'properties.protectedParameters', 'type': '[RunCommandInputParameter]'}, + 'async_execution': {'key': 'properties.asyncExecution', 'type': 'bool'}, + 'run_as_user': {'key': 'properties.runAsUser', 'type': 'str'}, + 'run_as_password': {'key': 'properties.runAsPassword', 'type': 'str'}, + 'timeout_in_seconds': {'key': 'properties.timeoutInSeconds', 'type': 'int'}, + 'output_blob_uri': {'key': 'properties.outputBlobUri', 'type': 'str'}, + 'error_blob_uri': {'key': 'properties.errorBlobUri', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineRunCommandInstanceView'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineRunCommandUpdate, self).__init__(**kwargs) + self.source = kwargs.get('source', None) + self.parameters = kwargs.get('parameters', None) + self.protected_parameters = kwargs.get('protected_parameters', None) + self.async_execution = kwargs.get('async_execution', False) + self.run_as_user = kwargs.get('run_as_user', None) + self.run_as_password = kwargs.get('run_as_password', None) + self.timeout_in_seconds = kwargs.get('timeout_in_seconds', None) + self.output_blob_uri = kwargs.get('output_blob_uri', None) + self.error_blob_uri = kwargs.get('error_blob_uri', None) + self.provisioning_state = None + self.instance_view = None + + +class VirtualMachineScaleSet(Resource): + """Describes a Virtual Machine Scale Set. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param sku: The virtual machine scale set sku. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param 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**. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.Plan + :param identity: The identity of the virtual machine scale set, if configured. + :type identity: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetIdentity + :param zones: The virtual machine scale set zones. NOTE: Availability zones can only be set + when you create the scale set. + :type zones: list[str] + :param extended_location: The extended location of the Virtual Machine Scale Set. + :type extended_location: ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocation + :param upgrade_policy: The upgrade policy. + :type upgrade_policy: ~azure.mgmt.compute.v2021_03_01.models.UpgradePolicy + :param automatic_repairs_policy: Policy for automatic repairs. + :type automatic_repairs_policy: ~azure.mgmt.compute.v2021_03_01.models.AutomaticRepairsPolicy + :param virtual_machine_profile: The virtual machine profile. + :type virtual_machine_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMProfile + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param overprovision: Specifies whether the Virtual Machine Scale Set should be + overprovisioned. + :type overprovision: bool + :param do_not_run_extensions_on_overprovisioned_v_ms: When Overprovision is enabled, extensions + are launched only on the requested number of VMs which are finally kept. This property will + hence ensure that the extensions do not run on the extra overprovisioned VMs. + :type do_not_run_extensions_on_overprovisioned_v_ms: bool + :ivar unique_id: Specifies the ID which uniquely identifies a Virtual Machine Scale Set. + :vartype unique_id: str + :param single_placement_group: When true this limits the scale set to a single placement group, + of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to + false. However, if singlePlacementGroup is false, it may not be modified to true. + :type single_placement_group: bool + :param zone_balance: Whether to force strictly even Virtual Machine distribution cross x-zones + in case there is zone outage. + :type zone_balance: bool + :param platform_fault_domain_count: Fault Domain count for each placement group. + :type platform_fault_domain_count: int + :param 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. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param host_group: Specifies information about the dedicated host group that the virtual + machine scale set resides in. :code:`
    `:code:`
    `Minimum api-version: 2020-06-01. + :type host_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param 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. + :type additional_capabilities: ~azure.mgmt.compute.v2021_03_01.models.AdditionalCapabilities + :param scale_in_policy: Specifies the scale-in policy that decides which virtual machines are + chosen for removal when a Virtual Machine Scale Set is scaled-in. + :type scale_in_policy: ~azure.mgmt.compute.v2021_03_01.models.ScaleInPolicy + :param orchestration_mode: Specifies the orchestration mode for the virtual machine scale set. + Possible values include: "Uniform", "Flexible". + :type orchestration_mode: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationMode + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'unique_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'UpgradePolicy'}, + 'automatic_repairs_policy': {'key': 'properties.automaticRepairsPolicy', 'type': 'AutomaticRepairsPolicy'}, + 'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetVMProfile'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'overprovision': {'key': 'properties.overprovision', 'type': 'bool'}, + 'do_not_run_extensions_on_overprovisioned_v_ms': {'key': 'properties.doNotRunExtensionsOnOverprovisionedVMs', 'type': 'bool'}, + 'unique_id': {'key': 'properties.uniqueId', 'type': 'str'}, + 'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'}, + 'zone_balance': {'key': 'properties.zoneBalance', 'type': 'bool'}, + 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + 'host_group': {'key': 'properties.hostGroup', 'type': 'SubResource'}, + 'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'}, + 'scale_in_policy': {'key': 'properties.scaleInPolicy', 'type': 'ScaleInPolicy'}, + 'orchestration_mode': {'key': 'properties.orchestrationMode', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSet, self).__init__(**kwargs) + self.sku = kwargs.get('sku', None) + self.plan = kwargs.get('plan', None) + self.identity = kwargs.get('identity', None) + self.zones = kwargs.get('zones', None) + self.extended_location = kwargs.get('extended_location', None) + self.upgrade_policy = kwargs.get('upgrade_policy', None) + self.automatic_repairs_policy = kwargs.get('automatic_repairs_policy', None) + self.virtual_machine_profile = kwargs.get('virtual_machine_profile', None) + self.provisioning_state = None + self.overprovision = kwargs.get('overprovision', None) + self.do_not_run_extensions_on_overprovisioned_v_ms = kwargs.get('do_not_run_extensions_on_overprovisioned_v_ms', None) + self.unique_id = None + self.single_placement_group = kwargs.get('single_placement_group', None) + self.zone_balance = kwargs.get('zone_balance', None) + self.platform_fault_domain_count = kwargs.get('platform_fault_domain_count', None) + self.proximity_placement_group = kwargs.get('proximity_placement_group', None) + self.host_group = kwargs.get('host_group', None) + self.additional_capabilities = kwargs.get('additional_capabilities', None) + self.scale_in_policy = kwargs.get('scale_in_policy', None) + self.orchestration_mode = kwargs.get('orchestration_mode', None) + + +class VirtualMachineScaleSetDataDisk(msrest.serialization.Model): + """Describes a virtual machine scale set data disk. + + All required parameters must be populated in order to send to Azure. + + :param name: The disk name. + :type name: str + :param lun: Required. 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. + :type lun: int + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or + disabled on the disk. + :type write_accelerator_enabled: bool + :param create_option: Required. The create option. Possible values include: "FromImage", + "Empty", "Attach". + :type create_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskCreateOptionTypes + :param 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:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param managed_disk: The managed disk parameters. + :type managed_disk: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetManagedDiskParameters + :param 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. + :type disk_iops_read_write: long + :param disk_m_bps_read_write: Specifies the bandwidth in MB per second 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. + :type disk_m_bps_read_write: long + """ + + _validation = { + 'lun': {'required': True}, + 'create_option': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'lun': {'key': 'lun', 'type': 'int'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'}, + 'create_option': {'key': 'createOption', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'}, + 'disk_iops_read_write': {'key': 'diskIOPSReadWrite', 'type': 'long'}, + 'disk_m_bps_read_write': {'key': 'diskMBpsReadWrite', 'type': 'long'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetDataDisk, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.lun = kwargs['lun'] + self.caching = kwargs.get('caching', None) + self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None) + self.create_option = kwargs['create_option'] + self.disk_size_gb = kwargs.get('disk_size_gb', None) + self.managed_disk = kwargs.get('managed_disk', None) + self.disk_iops_read_write = kwargs.get('disk_iops_read_write', None) + self.disk_m_bps_read_write = kwargs.get('disk_m_bps_read_write', None) + + +class VirtualMachineScaleSetExtension(SubResourceReadOnly): + """Describes a Virtual Machine Scale Set Extension. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :param name: The name of the extension. + :type name: str + :ivar type: Resource type. + :vartype type: str + :param force_update_tag: If a value is provided and is different from the previous value, the + extension handler will be forced to update even if the extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_type: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type_properties_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param provision_after_extensions: Collection of extension names after which this extension + needs to be provisioned. + :type provision_after_extensions: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetExtension, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.type = None + self.force_update_tag = kwargs.get('force_update_tag', None) + self.publisher = kwargs.get('publisher', None) + self.type_properties_type = kwargs.get('type_properties_type', None) + self.type_handler_version = kwargs.get('type_handler_version', None) + self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) + self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None) + self.settings = kwargs.get('settings', None) + self.protected_settings = kwargs.get('protected_settings', None) + self.provisioning_state = None + self.provision_after_extensions = kwargs.get('provision_after_extensions', None) + + +class VirtualMachineScaleSetExtensionListResult(msrest.serialization.Model): + """The List VM scale set extension operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of VM scale set extensions. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSetExtension]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetExtensionListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class VirtualMachineScaleSetExtensionProfile(msrest.serialization.Model): + """Describes a virtual machine scale set extension profile. + + :param extensions: The virtual machine scale set child extension resources. + :type extensions: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension] + :param 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). :code:`
    `:code:`
    ` Minimum + api-version: 2020-06-01. + :type extensions_time_budget: str + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[VirtualMachineScaleSetExtension]'}, + 'extensions_time_budget': {'key': 'extensionsTimeBudget', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetExtensionProfile, self).__init__(**kwargs) + self.extensions = kwargs.get('extensions', None) + self.extensions_time_budget = kwargs.get('extensions_time_budget', None) + + +class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): + """Describes a Virtual Machine Scale Set Extension. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: The name of the extension. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param force_update_tag: If a value is provided and is different from the previous value, the + extension handler will be forced to update even if the extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_type: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type_properties_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param provision_after_extensions: Collection of extension names after which this extension + needs to be provisioned. + :type provision_after_extensions: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetExtensionUpdate, self).__init__(**kwargs) + self.name = None + self.type = None + self.force_update_tag = kwargs.get('force_update_tag', None) + self.publisher = kwargs.get('publisher', None) + self.type_properties_type = kwargs.get('type_properties_type', None) + self.type_handler_version = kwargs.get('type_handler_version', None) + self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) + self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None) + self.settings = kwargs.get('settings', None) + self.protected_settings = kwargs.get('protected_settings', None) + self.provisioning_state = None + self.provision_after_extensions = kwargs.get('provision_after_extensions', None) + + +class VirtualMachineScaleSetIdentity(msrest.serialization.Model): + """Identity for the virtual machine scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal id of virtual machine scale set identity. This property will + only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the virtual machine scale set. This property + will only be provided for a system assigned identity. + :vartype tenant_id: str + :param type: 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 identities. The type 'None' will remove any identities from the virtual machine scale + set. Possible values include: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", + "None". + :type type: str or ~azure.mgmt.compute.v2021_03_01.models.ResourceIdentityType + :param 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}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue}'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) + + +class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(msrest.serialization.Model): + """VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class VirtualMachineScaleSetInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar virtual_machine: The instance view status summary for the virtual machine scale set. + :vartype virtual_machine: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetInstanceViewStatusesSummary + :ivar extensions: The extensions information. + :vartype extensions: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtensionsSummary] + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + :ivar orchestration_services: The orchestration services information. + :vartype orchestration_services: + list[~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceSummary] + """ + + _validation = { + 'virtual_machine': {'readonly': True}, + 'extensions': {'readonly': True}, + 'orchestration_services': {'readonly': True}, + } + + _attribute_map = { + 'virtual_machine': {'key': 'virtualMachine', 'type': 'VirtualMachineScaleSetInstanceViewStatusesSummary'}, + 'extensions': {'key': 'extensions', 'type': '[VirtualMachineScaleSetVMExtensionsSummary]'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + 'orchestration_services': {'key': 'orchestrationServices', 'type': '[OrchestrationServiceSummary]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetInstanceView, self).__init__(**kwargs) + self.virtual_machine = None + self.extensions = None + self.statuses = kwargs.get('statuses', None) + self.orchestration_services = None + + +class VirtualMachineScaleSetInstanceViewStatusesSummary(msrest.serialization.Model): + """Instance view statuses summary for virtual machines of a virtual machine scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar statuses_summary: The extensions information. + :vartype statuses_summary: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineStatusCodeCount] + """ + + _validation = { + 'statuses_summary': {'readonly': True}, + } + + _attribute_map = { + 'statuses_summary': {'key': 'statusesSummary', 'type': '[VirtualMachineStatusCodeCount]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetInstanceViewStatusesSummary, self).__init__(**kwargs) + self.statuses_summary = None + + +class VirtualMachineScaleSetIPConfiguration(SubResource): + """Describes a virtual machine scale set network profile's IP configuration. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource Id. + :type id: str + :param name: Required. The IP configuration name. + :type name: str + :param subnet: Specifies the identifier of the subnet. + :type subnet: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + :param primary: Specifies the primary network interface in case the virtual machine has more + than 1 network interface. + :type primary: bool + :param public_ip_address_configuration: The publicIPAddressConfiguration. + :type public_ip_address_configuration: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetPublicIPAddressConfiguration + :param 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'. Possible values include: "IPv4", "IPv6". + :type private_ip_address_version: str or ~azure.mgmt.compute.v2021_03_01.models.IPVersion + :param 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. + :type application_gateway_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param application_security_groups: Specifies an array of references to application security + group. + :type application_security_groups: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param 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. + :type load_balancer_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param 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. + :type load_balancer_inbound_nat_pools: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'ApiEntityReference'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'public_ip_address_configuration': {'key': 'properties.publicIPAddressConfiguration', 'type': 'VirtualMachineScaleSetPublicIPAddressConfiguration'}, + 'private_ip_address_version': {'key': 'properties.privateIPAddressVersion', 'type': 'str'}, + 'application_gateway_backend_address_pools': {'key': 'properties.applicationGatewayBackendAddressPools', 'type': '[SubResource]'}, + 'application_security_groups': {'key': 'properties.applicationSecurityGroups', 'type': '[SubResource]'}, + 'load_balancer_backend_address_pools': {'key': 'properties.loadBalancerBackendAddressPools', 'type': '[SubResource]'}, + 'load_balancer_inbound_nat_pools': {'key': 'properties.loadBalancerInboundNatPools', 'type': '[SubResource]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetIPConfiguration, self).__init__(**kwargs) + self.name = kwargs['name'] + self.subnet = kwargs.get('subnet', None) + self.primary = kwargs.get('primary', None) + self.public_ip_address_configuration = kwargs.get('public_ip_address_configuration', None) + self.private_ip_address_version = kwargs.get('private_ip_address_version', None) + self.application_gateway_backend_address_pools = kwargs.get('application_gateway_backend_address_pools', None) + self.application_security_groups = kwargs.get('application_security_groups', None) + self.load_balancer_backend_address_pools = kwargs.get('load_balancer_backend_address_pools', None) + self.load_balancer_inbound_nat_pools = kwargs.get('load_balancer_inbound_nat_pools', None) + + +class VirtualMachineScaleSetIpTag(msrest.serialization.Model): + """Contains the IP tag associated with the public IP address. + + :param ip_tag_type: IP tag type. Example: FirstPartyUsage. + :type ip_tag_type: str + :param tag: IP tag associated with the public IP. Example: SQL, Storage etc. + :type tag: str + """ + + _attribute_map = { + 'ip_tag_type': {'key': 'ipTagType', 'type': 'str'}, + 'tag': {'key': 'tag', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetIpTag, self).__init__(**kwargs) + self.ip_tag_type = kwargs.get('ip_tag_type', None) + self.tag = kwargs.get('tag', None) + + +class VirtualMachineScaleSetListOSUpgradeHistory(msrest.serialization.Model): + """List of Virtual Machine Scale Set OS Upgrade History operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of OS upgrades performed on the virtual machine scale set. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.UpgradeOperationHistoricalStatusInfo] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[UpgradeOperationHistoricalStatusInfo]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetListOSUpgradeHistory, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class VirtualMachineScaleSetListResult(msrest.serialization.Model): + """The List Virtual Machine operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of virtual machine scale sets. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSet]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class VirtualMachineScaleSetListSkusResult(msrest.serialization.Model): + """The Virtual Machine Scale Set List Skus operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of skus available for the virtual machine scale set. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetSku] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSetSku]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetListSkusResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class VirtualMachineScaleSetListWithLinkResult(msrest.serialization.Model): + """The List Virtual Machine operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of virtual machine scale sets. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSet]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetListWithLinkResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class VirtualMachineScaleSetManagedDiskParameters(msrest.serialization.Model): + """Describes the parameters of a ScaleSet managed disk. + + :param storage_account_type: Specifies the storage account type for the managed disk. NOTE: + UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values + include: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", + "StandardSSD_ZRS". + :type storage_account_type: str or ~azure.mgmt.compute.v2021_03_01.models.StorageAccountTypes + :param disk_encryption_set: Specifies the customer managed disk encryption set resource id for + the managed disk. + :type disk_encryption_set: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSetParameters + """ + + _attribute_map = { + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_encryption_set': {'key': 'diskEncryptionSet', 'type': 'DiskEncryptionSetParameters'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetManagedDiskParameters, self).__init__(**kwargs) + self.storage_account_type = kwargs.get('storage_account_type', None) + self.disk_encryption_set = kwargs.get('disk_encryption_set', None) + + +class VirtualMachineScaleSetNetworkConfiguration(SubResource): + """Describes a virtual machine scale set network profile's network configurations. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource Id. + :type id: str + :param name: Required. The network configuration name. + :type name: str + :param primary: Specifies the primary network interface in case the virtual machine has more + than 1 network interface. + :type primary: bool + :param enable_accelerated_networking: Specifies whether the network interface is accelerated + networking-enabled. + :type enable_accelerated_networking: bool + :param enable_fpga: Specifies whether the network interface is FPGA networking-enabled. + :type enable_fpga: bool + :param network_security_group: The network security group. + :type network_security_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param dns_settings: The dns settings to be applied on the network interfaces. + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings + :param ip_configurations: Specifies the IP configurations of the network interface. + :type ip_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetIPConfiguration] + :param enable_ip_forwarding: Whether IP forwarding enabled on this NIC. + :type enable_ip_forwarding: bool + :param delete_option: Specify what happens to the network interface when the VM is deleted. + Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'}, + 'enable_fpga': {'key': 'properties.enableFpga', 'type': 'bool'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'SubResource'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineScaleSetNetworkConfigurationDnsSettings'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[VirtualMachineScaleSetIPConfiguration]'}, + 'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetNetworkConfiguration, self).__init__(**kwargs) + self.name = kwargs['name'] + self.primary = kwargs.get('primary', None) + self.enable_accelerated_networking = kwargs.get('enable_accelerated_networking', None) + self.enable_fpga = kwargs.get('enable_fpga', None) + self.network_security_group = kwargs.get('network_security_group', None) + self.dns_settings = kwargs.get('dns_settings', None) + self.ip_configurations = kwargs.get('ip_configurations', None) + self.enable_ip_forwarding = kwargs.get('enable_ip_forwarding', None) + self.delete_option = kwargs.get('delete_option', None) + + +class VirtualMachineScaleSetNetworkConfigurationDnsSettings(msrest.serialization.Model): + """Describes a virtual machines scale sets network configuration's DNS settings. + + :param dns_servers: List of DNS servers IP addresses. + :type dns_servers: list[str] + """ + + _attribute_map = { + 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetNetworkConfigurationDnsSettings, self).__init__(**kwargs) + self.dns_servers = kwargs.get('dns_servers', None) + + +class VirtualMachineScaleSetNetworkProfile(msrest.serialization.Model): + """Describes a virtual machine scale set network profile. + + :param 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}'. + :type health_probe: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + :param network_interface_configurations: The list of network configurations. + :type network_interface_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetNetworkConfiguration] + :param 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'. Possible values include: "2020-11-01". + :type network_api_version: str or ~azure.mgmt.compute.v2021_03_01.models.NetworkApiVersion + """ + + _attribute_map = { + 'health_probe': {'key': 'healthProbe', 'type': 'ApiEntityReference'}, + 'network_interface_configurations': {'key': 'networkInterfaceConfigurations', 'type': '[VirtualMachineScaleSetNetworkConfiguration]'}, + 'network_api_version': {'key': 'networkApiVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetNetworkProfile, self).__init__(**kwargs) + self.health_probe = kwargs.get('health_probe', None) + self.network_interface_configurations = kwargs.get('network_interface_configurations', None) + self.network_api_version = kwargs.get('network_api_version', None) + + +class VirtualMachineScaleSetOSDisk(msrest.serialization.Model): + """Describes a virtual machine scale set operating system disk. + + All required parameters must be populated in order to send to Azure. + + :param name: The disk name. + :type name: str + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or + disabled on the disk. + :type write_accelerator_enabled: bool + :param create_option: Required. Specifies how the virtual machines in the scale set should be + created.:code:`
    `:code:`
    ` The only allowed value is: **FromImage** \u2013 This value is + used when you are using an image to create the virtual machine. If you are using a platform + image, you also use the imageReference element described above. If you are using a marketplace + image, you also use the plan element previously described. Possible values include: + "FromImage", "Empty", "Attach". + :type create_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskCreateOptionTypes + :param diff_disk_settings: Specifies the ephemeral disk Settings for the operating system disk + used by the virtual machine scale set. + :type diff_disk_settings: ~azure.mgmt.compute.v2021_03_01.models.DiffDiskSettings + :param disk_size_gb: Specifies the size of the operating system disk in gigabytes. This element + can be used to overwrite the size of the disk in a virtual machine image. + :code:`
    `:code:`
    ` This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param 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. :code:`
    `:code:`
    ` Possible + values are: :code:`
    `:code:`
    ` **Windows** :code:`
    `:code:`
    ` **Linux**. Possible + values include: "Windows", "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + :param image: Specifies information about the unmanaged user image to base the scale set on. + :type image: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param vhd_containers: Specifies the container urls that are used to store operating system + disks for the scale set. + :type vhd_containers: list[str] + :param managed_disk: The managed disk parameters. + :type managed_disk: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetManagedDiskParameters + """ + + _validation = { + 'create_option': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'}, + 'create_option': {'key': 'createOption', 'type': 'str'}, + 'diff_disk_settings': {'key': 'diffDiskSettings', 'type': 'DiffDiskSettings'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'VirtualHardDisk'}, + 'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetOSDisk, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.caching = kwargs.get('caching', None) + self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None) + self.create_option = kwargs['create_option'] + self.diff_disk_settings = kwargs.get('diff_disk_settings', None) + self.disk_size_gb = kwargs.get('disk_size_gb', None) + self.os_type = kwargs.get('os_type', None) + self.image = kwargs.get('image', None) + self.vhd_containers = kwargs.get('vhd_containers', None) + self.managed_disk = kwargs.get('managed_disk', None) + + +class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): + """Describes a virtual machine scale set OS profile. + + :param computer_name_prefix: Specifies the computer name prefix for all of the virtual machines + in the scale set. Computer name prefixes must be 1 to 15 characters long. + :type computer_name_prefix: str + :param admin_username: Specifies the name of the administrator account. + :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." + :code:`
    `:code:`
    ` **Disallowed values:** "administrator", "admin", "user", "user1", + "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", + "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", + "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". + :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` + **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 + characters. + :type admin_username: str + :param admin_password: Specifies the password of the administrator account. + :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` + **Minimum-length (Linux):** 6 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 123 + characters :code:`
    `:code:`
    ` **Max-length (Linux):** 72 characters + :code:`
    `:code:`
    ` **Complexity requirements:** 3 out of 4 conditions below need to be + fulfilled :code:`
    ` Has lower characters :code:`
    `Has upper characters :code:`
    ` Has a + digit :code:`
    ` Has a special character (Regex match [\W_]) :code:`
    `:code:`
    ` + **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", + "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For + resetting the password, see `How to reset the Remote Desktop service or its login password in a + Windows VM `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. + :type admin_password: str + :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded + string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum + length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for + your VM, see `Using cloud-init to customize a Linux VM during creation + `_. + :type custom_data: str + :param windows_configuration: Specifies Windows operating system settings on the virtual + machine. + :type windows_configuration: ~azure.mgmt.compute.v2021_03_01.models.WindowsConfiguration + :param linux_configuration: Specifies the Linux operating system settings on the virtual + machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_. + :type linux_configuration: ~azure.mgmt.compute.v2021_03_01.models.LinuxConfiguration + :param secrets: Specifies set of certificates that should be installed onto the virtual + machines in the scale set. + :type secrets: list[~azure.mgmt.compute.v2021_03_01.models.VaultSecretGroup] + """ + + _attribute_map = { + 'computer_name_prefix': {'key': 'computerNamePrefix', 'type': 'str'}, + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'admin_password': {'key': 'adminPassword', 'type': 'str'}, + 'custom_data': {'key': 'customData', 'type': 'str'}, + 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'WindowsConfiguration'}, + 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'LinuxConfiguration'}, + 'secrets': {'key': 'secrets', 'type': '[VaultSecretGroup]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetOSProfile, self).__init__(**kwargs) + self.computer_name_prefix = kwargs.get('computer_name_prefix', None) + self.admin_username = kwargs.get('admin_username', None) + self.admin_password = kwargs.get('admin_password', None) + self.custom_data = kwargs.get('custom_data', None) + self.windows_configuration = kwargs.get('windows_configuration', None) + self.linux_configuration = kwargs.get('linux_configuration', None) + self.secrets = kwargs.get('secrets', None) + + +class VirtualMachineScaleSetPublicIPAddressConfiguration(msrest.serialization.Model): + """Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The publicIP address configuration name. + :type name: str + :param sku: Describes the public IP Sku. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.PublicIPAddressSku + :param idle_timeout_in_minutes: The idle timeout of the public IP address. + :type idle_timeout_in_minutes: int + :param dns_settings: The dns settings to be applied on the publicIP addresses . + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + :param ip_tags: The list of IP tags associated with the public IP address. + :type ip_tags: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetIpTag] + :param public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. + :type public_ip_prefix: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param 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'. Possible values include: "IPv4", "IPv6". + :type public_ip_address_version: str or ~azure.mgmt.compute.v2021_03_01.models.IPVersion + :param delete_option: Specify what happens to the public IP when the VM is deleted. Possible + values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'PublicIPAddressSku'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings'}, + 'ip_tags': {'key': 'properties.ipTags', 'type': '[VirtualMachineScaleSetIpTag]'}, + 'public_ip_prefix': {'key': 'properties.publicIPPrefix', 'type': 'SubResource'}, + 'public_ip_address_version': {'key': 'properties.publicIPAddressVersion', 'type': 'str'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetPublicIPAddressConfiguration, self).__init__(**kwargs) + self.name = kwargs['name'] + self.sku = kwargs.get('sku', None) + self.idle_timeout_in_minutes = kwargs.get('idle_timeout_in_minutes', None) + self.dns_settings = kwargs.get('dns_settings', None) + self.ip_tags = kwargs.get('ip_tags', None) + self.public_ip_prefix = kwargs.get('public_ip_prefix', None) + self.public_ip_address_version = kwargs.get('public_ip_address_version', None) + self.delete_option = kwargs.get('delete_option', None) + + +class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(msrest.serialization.Model): + """Describes a virtual machines scale sets network configuration's DNS settings. + + All required parameters must be populated in order to send to Azure. + + :param domain_name_label: Required. The Domain name label.The concatenation of the domain name + label and vm index will be the domain name labels of the PublicIPAddress resources that will be + created. + :type domain_name_label: str + """ + + _validation = { + 'domain_name_label': {'required': True}, + } + + _attribute_map = { + 'domain_name_label': {'key': 'domainNameLabel', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, self).__init__(**kwargs) + self.domain_name_label = kwargs['domain_name_label'] + + +class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters): + """Describes a Virtual Machine Scale Set VM Reimage Parameters. + + :param temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp + disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. + :type temp_disk: bool + """ + + _attribute_map = { + 'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetVMReimageParameters, self).__init__(**kwargs) + + +class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimageParameters): + """Describes a Virtual Machine Scale Set VM Reimage Parameters. + + :param temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp + disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. + :type temp_disk: bool + :param instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine + scale set instance ids will result in the operation being performed on all virtual machines in + the virtual machine scale set. + :type instance_ids: list[str] + """ + + _attribute_map = { + 'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, + 'instance_ids': {'key': 'instanceIds', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetReimageParameters, self).__init__(**kwargs) + self.instance_ids = kwargs.get('instance_ids', None) + + +class VirtualMachineScaleSetSku(msrest.serialization.Model): + """Describes an available virtual machine scale set sku. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar resource_type: The type of resource the sku applies to. + :vartype resource_type: str + :ivar sku: The Sku. + :vartype sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :ivar capacity: Specifies the number of virtual machines in the scale set. + :vartype capacity: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetSkuCapacity + """ + + _validation = { + 'resource_type': {'readonly': True}, + 'sku': {'readonly': True}, + 'capacity': {'readonly': True}, + } + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'capacity': {'key': 'capacity', 'type': 'VirtualMachineScaleSetSkuCapacity'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetSku, self).__init__(**kwargs) + self.resource_type = None + self.sku = None + self.capacity = None + + +class VirtualMachineScaleSetSkuCapacity(msrest.serialization.Model): + """Describes scaling information of a sku. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar minimum: The minimum capacity. + :vartype minimum: long + :ivar maximum: The maximum capacity that can be set. + :vartype maximum: long + :ivar default_capacity: The default capacity. + :vartype default_capacity: long + :ivar scale_type: The scale type applicable to the sku. Possible values include: "Automatic", + "None". + :vartype scale_type: str or + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetSkuScaleType + """ + + _validation = { + 'minimum': {'readonly': True}, + 'maximum': {'readonly': True}, + 'default_capacity': {'readonly': True}, + 'scale_type': {'readonly': True}, + } + + _attribute_map = { + 'minimum': {'key': 'minimum', 'type': 'long'}, + 'maximum': {'key': 'maximum', 'type': 'long'}, + 'default_capacity': {'key': 'defaultCapacity', 'type': 'long'}, + 'scale_type': {'key': 'scaleType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetSkuCapacity, self).__init__(**kwargs) + self.minimum = None + self.maximum = None + self.default_capacity = None + self.scale_type = None + + +class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): + """Describes a virtual machine scale set storage profile. + + :param image_reference: Specifies information about the image to use. You can specify + 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. + :type image_reference: ~azure.mgmt.compute.v2021_03_01.models.ImageReference + :param os_disk: Specifies information about the operating system disk used by the virtual + machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see + `About disks and VHDs for Azure virtual machines + `_. + :type os_disk: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetOSDisk + :param data_disks: Specifies the parameters that are used to add data disks to the virtual + machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see + `About disks and VHDs for Azure virtual machines + `_. + :type data_disks: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetDataDisk] + """ + + _attribute_map = { + 'image_reference': {'key': 'imageReference', 'type': 'ImageReference'}, + 'os_disk': {'key': 'osDisk', 'type': 'VirtualMachineScaleSetOSDisk'}, + 'data_disks': {'key': 'dataDisks', 'type': '[VirtualMachineScaleSetDataDisk]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetStorageProfile, self).__init__(**kwargs) + self.image_reference = kwargs.get('image_reference', None) + self.os_disk = kwargs.get('os_disk', None) + self.data_disks = kwargs.get('data_disks', None) + + +class VirtualMachineScaleSetUpdate(UpdateResource): + """Describes a Virtual Machine Scale Set. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param sku: The virtual machine scale set sku. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param plan: The purchase plan when deploying a virtual machine scale set from VM Marketplace + images. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.Plan + :param identity: The identity of the virtual machine scale set, if configured. + :type identity: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetIdentity + :param upgrade_policy: The upgrade policy. + :type upgrade_policy: ~azure.mgmt.compute.v2021_03_01.models.UpgradePolicy + :param automatic_repairs_policy: Policy for automatic repairs. + :type automatic_repairs_policy: ~azure.mgmt.compute.v2021_03_01.models.AutomaticRepairsPolicy + :param virtual_machine_profile: The virtual machine profile. + :type virtual_machine_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateVMProfile + :param overprovision: Specifies whether the Virtual Machine Scale Set should be + overprovisioned. + :type overprovision: bool + :param do_not_run_extensions_on_overprovisioned_v_ms: When Overprovision is enabled, extensions + are launched only on the requested number of VMs which are finally kept. This property will + hence ensure that the extensions do not run on the extra overprovisioned VMs. + :type do_not_run_extensions_on_overprovisioned_v_ms: bool + :param single_placement_group: When true this limits the scale set to a single placement group, + of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to + false. However, if singlePlacementGroup is false, it may not be modified to true. + :type single_placement_group: bool + :param 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. + :type additional_capabilities: ~azure.mgmt.compute.v2021_03_01.models.AdditionalCapabilities + :param scale_in_policy: Specifies the scale-in policy that decides which virtual machines are + chosen for removal when a Virtual Machine Scale Set is scaled-in. + :type scale_in_policy: ~azure.mgmt.compute.v2021_03_01.models.ScaleInPolicy + :param 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. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'}, + 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'UpgradePolicy'}, + 'automatic_repairs_policy': {'key': 'properties.automaticRepairsPolicy', 'type': 'AutomaticRepairsPolicy'}, + 'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetUpdateVMProfile'}, + 'overprovision': {'key': 'properties.overprovision', 'type': 'bool'}, + 'do_not_run_extensions_on_overprovisioned_v_ms': {'key': 'properties.doNotRunExtensionsOnOverprovisionedVMs', 'type': 'bool'}, + 'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'}, + 'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'}, + 'scale_in_policy': {'key': 'properties.scaleInPolicy', 'type': 'ScaleInPolicy'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetUpdate, self).__init__(**kwargs) + self.sku = kwargs.get('sku', None) + self.plan = kwargs.get('plan', None) + self.identity = kwargs.get('identity', None) + self.upgrade_policy = kwargs.get('upgrade_policy', None) + self.automatic_repairs_policy = kwargs.get('automatic_repairs_policy', None) + self.virtual_machine_profile = kwargs.get('virtual_machine_profile', None) + self.overprovision = kwargs.get('overprovision', None) + self.do_not_run_extensions_on_overprovisioned_v_ms = kwargs.get('do_not_run_extensions_on_overprovisioned_v_ms', None) + self.single_placement_group = kwargs.get('single_placement_group', None) + self.additional_capabilities = kwargs.get('additional_capabilities', None) + self.scale_in_policy = kwargs.get('scale_in_policy', None) + self.proximity_placement_group = kwargs.get('proximity_placement_group', None) + + +class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. + + :param id: Resource Id. + :type id: str + :param name: The IP configuration name. + :type name: str + :param subnet: The subnet. + :type subnet: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + :param primary: Specifies the primary IP Configuration in case the network interface has more + than one IP Configuration. + :type primary: bool + :param public_ip_address_configuration: The publicIPAddressConfiguration. + :type public_ip_address_configuration: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdatePublicIPAddressConfiguration + :param 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'. Possible values include: "IPv4", "IPv6". + :type private_ip_address_version: str or ~azure.mgmt.compute.v2021_03_01.models.IPVersion + :param application_gateway_backend_address_pools: The application gateway backend address + pools. + :type application_gateway_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param application_security_groups: Specifies an array of references to application security + group. + :type application_security_groups: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param load_balancer_backend_address_pools: The load balancer backend address pools. + :type load_balancer_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param load_balancer_inbound_nat_pools: The load balancer inbound nat pools. + :type load_balancer_inbound_nat_pools: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'ApiEntityReference'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'public_ip_address_configuration': {'key': 'properties.publicIPAddressConfiguration', 'type': 'VirtualMachineScaleSetUpdatePublicIPAddressConfiguration'}, + 'private_ip_address_version': {'key': 'properties.privateIPAddressVersion', 'type': 'str'}, + 'application_gateway_backend_address_pools': {'key': 'properties.applicationGatewayBackendAddressPools', 'type': '[SubResource]'}, + 'application_security_groups': {'key': 'properties.applicationSecurityGroups', 'type': '[SubResource]'}, + 'load_balancer_backend_address_pools': {'key': 'properties.loadBalancerBackendAddressPools', 'type': '[SubResource]'}, + 'load_balancer_inbound_nat_pools': {'key': 'properties.loadBalancerInboundNatPools', 'type': '[SubResource]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetUpdateIPConfiguration, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.subnet = kwargs.get('subnet', None) + self.primary = kwargs.get('primary', None) + self.public_ip_address_configuration = kwargs.get('public_ip_address_configuration', None) + self.private_ip_address_version = kwargs.get('private_ip_address_version', None) + self.application_gateway_backend_address_pools = kwargs.get('application_gateway_backend_address_pools', None) + self.application_security_groups = kwargs.get('application_security_groups', None) + self.load_balancer_backend_address_pools = kwargs.get('load_balancer_backend_address_pools', None) + self.load_balancer_inbound_nat_pools = kwargs.get('load_balancer_inbound_nat_pools', None) + + +class VirtualMachineScaleSetUpdateNetworkConfiguration(SubResource): + """Describes a virtual machine scale set network profile's network configurations. + + :param id: Resource Id. + :type id: str + :param name: The network configuration name. + :type name: str + :param primary: Whether this is a primary NIC on a virtual machine. + :type primary: bool + :param enable_accelerated_networking: Specifies whether the network interface is accelerated + networking-enabled. + :type enable_accelerated_networking: bool + :param enable_fpga: Specifies whether the network interface is FPGA networking-enabled. + :type enable_fpga: bool + :param network_security_group: The network security group. + :type network_security_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param dns_settings: The dns settings to be applied on the network interfaces. + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings + :param ip_configurations: The virtual machine scale set IP Configuration. + :type ip_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateIPConfiguration] + :param enable_ip_forwarding: Whether IP forwarding enabled on this NIC. + :type enable_ip_forwarding: bool + :param delete_option: Specify what happens to the network interface when the VM is deleted. + Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'}, + 'enable_fpga': {'key': 'properties.enableFpga', 'type': 'bool'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'SubResource'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineScaleSetNetworkConfigurationDnsSettings'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[VirtualMachineScaleSetUpdateIPConfiguration]'}, + 'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetUpdateNetworkConfiguration, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.primary = kwargs.get('primary', None) + self.enable_accelerated_networking = kwargs.get('enable_accelerated_networking', None) + self.enable_fpga = kwargs.get('enable_fpga', None) + self.network_security_group = kwargs.get('network_security_group', None) + self.dns_settings = kwargs.get('dns_settings', None) + self.ip_configurations = kwargs.get('ip_configurations', None) + self.enable_ip_forwarding = kwargs.get('enable_ip_forwarding', None) + self.delete_option = kwargs.get('delete_option', None) + + +class VirtualMachineScaleSetUpdateNetworkProfile(msrest.serialization.Model): + """Describes a virtual machine scale set network profile. + + :param 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}'. + :type health_probe: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + :param network_interface_configurations: The list of network configurations. + :type network_interface_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateNetworkConfiguration] + :param 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'. Possible values include: "2020-11-01". + :type network_api_version: str or ~azure.mgmt.compute.v2021_03_01.models.NetworkApiVersion + """ + + _attribute_map = { + 'health_probe': {'key': 'healthProbe', 'type': 'ApiEntityReference'}, + 'network_interface_configurations': {'key': 'networkInterfaceConfigurations', 'type': '[VirtualMachineScaleSetUpdateNetworkConfiguration]'}, + 'network_api_version': {'key': 'networkApiVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetUpdateNetworkProfile, self).__init__(**kwargs) + self.health_probe = kwargs.get('health_probe', None) + self.network_interface_configurations = kwargs.get('network_interface_configurations', None) + self.network_api_version = kwargs.get('network_api_version', None) + + +class VirtualMachineScaleSetUpdateOSDisk(msrest.serialization.Model): + """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + + :param caching: The caching type. Possible values include: "None", "ReadOnly", "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or + disabled on the disk. + :type write_accelerator_enabled: bool + :param disk_size_gb: Specifies the size of the operating system disk in gigabytes. This element + can be used to overwrite the size of the disk in a virtual machine image. + :code:`
    `:code:`
    ` This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param 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. + :type image: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param vhd_containers: The list of virtual hard disk container uris. + :type vhd_containers: list[str] + :param managed_disk: The managed disk parameters. + :type managed_disk: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetManagedDiskParameters + """ + + _attribute_map = { + 'caching': {'key': 'caching', 'type': 'str'}, + 'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'image': {'key': 'image', 'type': 'VirtualHardDisk'}, + 'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetUpdateOSDisk, self).__init__(**kwargs) + self.caching = kwargs.get('caching', None) + self.write_accelerator_enabled = kwargs.get('write_accelerator_enabled', None) + self.disk_size_gb = kwargs.get('disk_size_gb', None) + self.image = kwargs.get('image', None) + self.vhd_containers = kwargs.get('vhd_containers', None) + self.managed_disk = kwargs.get('managed_disk', None) + + +class VirtualMachineScaleSetUpdateOSProfile(msrest.serialization.Model): + """Describes a virtual machine scale set OS profile. + + :param custom_data: A base-64 encoded string of custom data. + :type custom_data: str + :param windows_configuration: The Windows Configuration of the OS profile. + :type windows_configuration: ~azure.mgmt.compute.v2021_03_01.models.WindowsConfiguration + :param linux_configuration: The Linux Configuration of the OS profile. + :type linux_configuration: ~azure.mgmt.compute.v2021_03_01.models.LinuxConfiguration + :param secrets: The List of certificates for addition to the VM. + :type secrets: list[~azure.mgmt.compute.v2021_03_01.models.VaultSecretGroup] + """ + + _attribute_map = { + 'custom_data': {'key': 'customData', 'type': 'str'}, + 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'WindowsConfiguration'}, + 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'LinuxConfiguration'}, + 'secrets': {'key': 'secrets', 'type': '[VaultSecretGroup]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetUpdateOSProfile, self).__init__(**kwargs) + self.custom_data = kwargs.get('custom_data', None) + self.windows_configuration = kwargs.get('windows_configuration', None) + self.linux_configuration = kwargs.get('linux_configuration', None) + self.secrets = kwargs.get('secrets', None) + + +class VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(msrest.serialization.Model): + """Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. + + :param name: The publicIP address configuration name. + :type name: str + :param idle_timeout_in_minutes: The idle timeout of the public IP address. + :type idle_timeout_in_minutes: int + :param dns_settings: The dns settings to be applied on the publicIP addresses . + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + :param delete_option: Specify what happens to the public IP when the VM is deleted. Possible + values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.idle_timeout_in_minutes = kwargs.get('idle_timeout_in_minutes', None) + self.dns_settings = kwargs.get('dns_settings', None) + self.delete_option = kwargs.get('delete_option', None) + + +class VirtualMachineScaleSetUpdateStorageProfile(msrest.serialization.Model): + """Describes a virtual machine scale set storage profile. + + :param image_reference: The image reference. + :type image_reference: ~azure.mgmt.compute.v2021_03_01.models.ImageReference + :param os_disk: The OS disk. + :type os_disk: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateOSDisk + :param data_disks: The data disks. + :type data_disks: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetDataDisk] + """ + + _attribute_map = { + 'image_reference': {'key': 'imageReference', 'type': 'ImageReference'}, + 'os_disk': {'key': 'osDisk', 'type': 'VirtualMachineScaleSetUpdateOSDisk'}, + 'data_disks': {'key': 'dataDisks', 'type': '[VirtualMachineScaleSetDataDisk]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetUpdateStorageProfile, self).__init__(**kwargs) + self.image_reference = kwargs.get('image_reference', None) + self.os_disk = kwargs.get('os_disk', None) + self.data_disks = kwargs.get('data_disks', None) + + +class VirtualMachineScaleSetUpdateVMProfile(msrest.serialization.Model): + """Describes a virtual machine scale set virtual machine profile. + + :param os_profile: The virtual machine scale set OS profile. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateOSProfile + :param storage_profile: The virtual machine scale set storage profile. + :type storage_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateStorageProfile + :param network_profile: The virtual machine scale set network profile. + :type network_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateNetworkProfile + :param security_profile: The virtual machine scale set Security profile. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + :param diagnostics_profile: The virtual machine scale set diagnostics profile. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param extension_profile: The virtual machine scale set extension profile. + :type extension_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtensionProfile + :param license_type: The license type, which is for bring your own license scenario. + :type license_type: str + :param billing_profile: Specifies the billing related details of a Azure Spot VMSS. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + :type billing_profile: ~azure.mgmt.compute.v2021_03_01.models.BillingProfile + :param scheduled_events_profile: Specifies Scheduled Event related configurations. + :type scheduled_events_profile: ~azure.mgmt.compute.v2021_03_01.models.ScheduledEventsProfile + :param 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. + :type user_data: str + """ + + _attribute_map = { + 'os_profile': {'key': 'osProfile', 'type': 'VirtualMachineScaleSetUpdateOSProfile'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'VirtualMachineScaleSetUpdateStorageProfile'}, + 'network_profile': {'key': 'networkProfile', 'type': 'VirtualMachineScaleSetUpdateNetworkProfile'}, + 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, + 'diagnostics_profile': {'key': 'diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'extension_profile': {'key': 'extensionProfile', 'type': 'VirtualMachineScaleSetExtensionProfile'}, + 'license_type': {'key': 'licenseType', 'type': 'str'}, + 'billing_profile': {'key': 'billingProfile', 'type': 'BillingProfile'}, + 'scheduled_events_profile': {'key': 'scheduledEventsProfile', 'type': 'ScheduledEventsProfile'}, + 'user_data': {'key': 'userData', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetUpdateVMProfile, self).__init__(**kwargs) + self.os_profile = kwargs.get('os_profile', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.network_profile = kwargs.get('network_profile', None) + self.security_profile = kwargs.get('security_profile', None) + self.diagnostics_profile = kwargs.get('diagnostics_profile', None) + self.extension_profile = kwargs.get('extension_profile', None) + self.license_type = kwargs.get('license_type', None) + self.billing_profile = kwargs.get('billing_profile', None) + self.scheduled_events_profile = kwargs.get('scheduled_events_profile', None) + self.user_data = kwargs.get('user_data', None) + + +class VirtualMachineScaleSetVM(Resource): + """Describes a virtual machine scale set virtual machine. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :ivar instance_id: The virtual machine instance ID. + :vartype instance_id: str + :ivar sku: The virtual machine SKU. + :vartype sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param 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**. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.Plan + :ivar resources: The virtual machine child extension resources. + :vartype resources: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension] + :ivar zones: The virtual machine zones. + :vartype zones: list[str] + :ivar latest_model_applied: Specifies whether the latest model has been applied to the virtual + machine. + :vartype latest_model_applied: bool + :ivar vm_id: Azure VM unique ID. + :vartype vm_id: str + :ivar instance_view: The virtual machine instance view. + :vartype instance_view: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceView + :param hardware_profile: Specifies the hardware settings for the virtual machine. + :type hardware_profile: ~azure.mgmt.compute.v2021_03_01.models.HardwareProfile + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: ~azure.mgmt.compute.v2021_03_01.models.StorageProfile + :param 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. + :type additional_capabilities: ~azure.mgmt.compute.v2021_03_01.models.AdditionalCapabilities + :param os_profile: Specifies the operating system settings for the virtual machine. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.OSProfile + :param security_profile: Specifies the Security related profile settings for the virtual + machine. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + :param network_profile: Specifies the network interfaces of the virtual machine. + :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.NetworkProfile + :param network_profile_configuration: Specifies the network profile configuration of the + virtual machine. + :type network_profile_configuration: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMNetworkProfileConfiguration + :param diagnostics_profile: Specifies the boot diagnostic settings state. + :code:`
    `:code:`
    `Minimum api-version: 2015-06-15. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param 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 + sets, see `Availability sets overview + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. + :type availability_set: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param 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 + :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: + :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) + :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server + `_ + :code:`
    `:code:`
    ` `Azure Hybrid Use Benefit for Linux Server + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type license_type: str + :ivar model_definition_applied: Specifies whether the model applied to the virtual machine is + the model of the virtual machine scale set or the customized model for the virtual machine. + :vartype model_definition_applied: str + :param protection_policy: Specifies the protection policy of the virtual machine. + :type protection_policy: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMProtectionPolicy + :param 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. + :type user_data: str """ _validation = { - 'family': {'readonly': True}, - 'family_label': {'readonly': True}, - 'version': {'readonly': True}, - 'label': {'readonly': True}, - 'is_default': {'readonly': True}, - 'is_active': {'readonly': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'instance_id': {'readonly': True}, + 'sku': {'readonly': True}, + 'resources': {'readonly': True}, + 'zones': {'readonly': True}, + 'latest_model_applied': {'readonly': True}, + 'vm_id': {'readonly': True}, + 'instance_view': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'model_definition_applied': {'readonly': True}, } _attribute_map = { - 'family': {'key': 'family', 'type': 'str'}, - 'family_label': {'key': 'familyLabel', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'instance_id': {'key': 'instanceId', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'latest_model_applied': {'key': 'properties.latestModelApplied', 'type': 'bool'}, + 'vm_id': {'key': 'properties.vmId', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'}, + 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'}, + 'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'}, + 'security_profile': {'key': 'properties.securityProfile', 'type': 'SecurityProfile'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'network_profile_configuration': {'key': 'properties.networkProfileConfiguration', 'type': 'VirtualMachineScaleSetVMNetworkProfileConfiguration'}, + 'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'model_definition_applied': {'key': 'properties.modelDefinitionApplied', 'type': 'str'}, + 'protection_policy': {'key': 'properties.protectionPolicy', 'type': 'VirtualMachineScaleSetVMProtectionPolicy'}, + 'user_data': {'key': 'properties.userData', 'type': 'str'}, } def __init__( self, **kwargs ): - super(OSVersionProperties, self).__init__(**kwargs) - self.family = None - self.family_label = None - self.version = None - self.label = None - self.is_default = None - self.is_active = None + super(VirtualMachineScaleSetVM, self).__init__(**kwargs) + self.instance_id = None + self.sku = None + self.plan = kwargs.get('plan', None) + self.resources = None + self.zones = None + self.latest_model_applied = None + self.vm_id = None + self.instance_view = None + self.hardware_profile = kwargs.get('hardware_profile', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.additional_capabilities = kwargs.get('additional_capabilities', None) + self.os_profile = kwargs.get('os_profile', None) + self.security_profile = kwargs.get('security_profile', None) + self.network_profile = kwargs.get('network_profile', None) + self.network_profile_configuration = kwargs.get('network_profile_configuration', None) + self.diagnostics_profile = kwargs.get('diagnostics_profile', None) + self.availability_set = kwargs.get('availability_set', None) + self.provisioning_state = None + self.license_type = kwargs.get('license_type', None) + self.model_definition_applied = None + self.protection_policy = kwargs.get('protection_policy', None) + self.user_data = kwargs.get('user_data', None) -class OSVersionPropertiesBase(msrest.serialization.Model): - """Configuration view of an OS version. +class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): + """Describes a VMSS VM Extension. Variables are only populated by the server, and will be ignored when sending a request. - :ivar version: The OS version. - :vartype version: str - :ivar label: The OS version label. - :vartype label: str - :ivar is_default: Specifies whether this is the default OS version for its family. - :vartype is_default: bool - :ivar is_active: Specifies whether this OS version is active. - :vartype is_active: bool + :ivar id: Resource Id. + :vartype id: str + :ivar name: The name of the extension. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param force_update_tag: How the extension handler should be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_type: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type_properties_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param instance_view: The virtual machine extension instance view. + :type instance_view: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionInstanceView """ _validation = { - 'version': {'readonly': True}, - 'label': {'readonly': True}, - 'is_default': {'readonly': True}, - 'is_active': {'readonly': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetVMExtension, self).__init__(**kwargs) + self.name = None + self.type = None + self.force_update_tag = kwargs.get('force_update_tag', None) + self.publisher = kwargs.get('publisher', None) + self.type_properties_type = kwargs.get('type_properties_type', None) + self.type_handler_version = kwargs.get('type_handler_version', None) + self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) + self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None) + self.settings = kwargs.get('settings', None) + self.protected_settings = kwargs.get('protected_settings', None) + self.provisioning_state = None + self.instance_view = kwargs.get('instance_view', None) + + +class VirtualMachineScaleSetVMExtensionsListResult(msrest.serialization.Model): + """The List VMSS VM Extension operation response. + + :param value: The list of VMSS VM extensions. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtension] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSetVMExtension]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetVMExtensionsListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class VirtualMachineScaleSetVMExtensionsSummary(msrest.serialization.Model): + """Extensions summary for virtual machines of a virtual machine scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The extension name. + :vartype name: str + :ivar statuses_summary: The extensions information. + :vartype statuses_summary: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineStatusCodeCount] + """ + + _validation = { + 'name': {'readonly': True}, + 'statuses_summary': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'statuses_summary': {'key': 'statusesSummary', 'type': '[VirtualMachineStatusCodeCount]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetVMExtensionsSummary, self).__init__(**kwargs) + self.name = None + self.statuses_summary = None + + +class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): + """Describes a VMSS VM Extension. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: The name of the extension. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param force_update_tag: How the extension handler should be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_type: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type_properties_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetVMExtensionUpdate, self).__init__(**kwargs) + self.name = None + self.type = None + self.force_update_tag = kwargs.get('force_update_tag', None) + self.publisher = kwargs.get('publisher', None) + self.type_properties_type = kwargs.get('type_properties_type', None) + self.type_handler_version = kwargs.get('type_handler_version', None) + self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) + self.enable_automatic_upgrade = kwargs.get('enable_automatic_upgrade', None) + self.settings = kwargs.get('settings', None) + self.protected_settings = kwargs.get('protected_settings', None) + + +class VirtualMachineScaleSetVMInstanceIDs(msrest.serialization.Model): + """Specifies a list of virtual machine instance IDs from the VM scale set. + + :param instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine + scale set instance ids will result in the operation being performed on all virtual machines in + the virtual machine scale set. + :type instance_ids: list[str] + """ + + _attribute_map = { + 'instance_ids': {'key': 'instanceIds', 'type': '[str]'}, } def __init__( self, **kwargs ): - super(OSVersionPropertiesBase, self).__init__(**kwargs) - self.version = None - self.label = None - self.is_default = None - self.is_active = None + super(VirtualMachineScaleSetVMInstanceIDs, self).__init__(**kwargs) + self.instance_ids = kwargs.get('instance_ids', None) -class ResourceInstanceViewStatus(msrest.serialization.Model): - """Instance view status. +class VirtualMachineScaleSetVMInstanceRequiredIDs(msrest.serialization.Model): + """Specifies a list of virtual machine instance IDs from the VM scale set. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar code: The status code. - :vartype code: str - :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. - :vartype message: str - :ivar time: The time of the status. - :vartype time: ~datetime.datetime - :param level: The level code. Possible values include: "Info", "Warning", "Error". - :type level: str or ~azure.mgmt.compute.v2021_03_01.models.StatusLevelTypes + :param instance_ids: Required. The virtual machine scale set instance ids. + :type instance_ids: list[str] """ _validation = { - 'code': {'readonly': True}, - 'display_status': {'readonly': True}, - 'message': {'readonly': True}, - 'time': {'readonly': True}, + 'instance_ids': {'required': True}, } _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'display_status': {'key': 'displayStatus', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'time': {'key': 'time', 'type': 'iso-8601'}, - 'level': {'key': 'level', 'type': 'str'}, + 'instance_ids': {'key': 'instanceIds', 'type': '[str]'}, } def __init__( self, **kwargs ): - super(ResourceInstanceViewStatus, self).__init__(**kwargs) - self.code = None - self.display_status = None - self.message = None - self.time = None - self.level = kwargs.get('level', None) + super(VirtualMachineScaleSetVMInstanceRequiredIDs, self).__init__(**kwargs) + self.instance_ids = kwargs['instance_ids'] -class RoleInstance(msrest.serialization.Model): - """RoleInstance. +class VirtualMachineScaleSetVMInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine scale set VM. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar type: Resource Type. - :vartype type: str - :ivar location: Resource Location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :param sku: - :type sku: ~azure.mgmt.compute.v2021_03_01.models.InstanceSku - :param properties: - :type properties: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceProperties + :param platform_update_domain: The Update Domain count. + :type platform_update_domain: int + :param platform_fault_domain: The Fault Domain count. + :type platform_fault_domain: int + :param rdp_thumb_print: The Remote desktop certificate thumbprint. + :type rdp_thumb_print: str + :param vm_agent: The VM Agent running on the virtual machine. + :type vm_agent: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineAgentInstanceView + :param maintenance_redeploy_status: The Maintenance Operation status on the virtual machine. + :type maintenance_redeploy_status: + ~azure.mgmt.compute.v2021_03_01.models.MaintenanceRedeployStatus + :param disks: The disks information. + :type disks: list[~azure.mgmt.compute.v2021_03_01.models.DiskInstanceView] + :param extensions: The extensions information. + :type extensions: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionInstanceView] + :ivar vm_health: The health status for the VM. + :vartype vm_health: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineHealthStatus + :param boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view + Console Output and Screenshot to diagnose VM status. :code:`
    `:code:`
    ` You can easily + view the output of your console log. :code:`
    `:code:`
    ` Azure also enables you to see a + screenshot of the VM from the hypervisor. + :type boot_diagnostics: ~azure.mgmt.compute.v2021_03_01.models.BootDiagnosticsInstanceView + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_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. :code:`
    `:code:`
    `Minimum api-version: + 2020-06-01. + :vartype assigned_host: str + :param placement_group_id: The placement group in which the VM is running. If the VM is + deallocated it will not have a placementGroupId. + :type placement_group_id: str """ _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, + 'vm_health': {'readonly': True}, + 'assigned_host': {'readonly': True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'InstanceSku'}, - 'properties': {'key': 'properties', 'type': 'RoleInstanceProperties'}, + 'platform_update_domain': {'key': 'platformUpdateDomain', 'type': 'int'}, + 'platform_fault_domain': {'key': 'platformFaultDomain', 'type': 'int'}, + 'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'}, + 'vm_agent': {'key': 'vmAgent', 'type': 'VirtualMachineAgentInstanceView'}, + 'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'}, + 'disks': {'key': 'disks', 'type': '[DiskInstanceView]'}, + 'extensions': {'key': 'extensions', 'type': '[VirtualMachineExtensionInstanceView]'}, + 'vm_health': {'key': 'vmHealth', 'type': 'VirtualMachineHealthStatus'}, + 'boot_diagnostics': {'key': 'bootDiagnostics', 'type': 'BootDiagnosticsInstanceView'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + 'assigned_host': {'key': 'assignedHost', 'type': 'str'}, + 'placement_group_id': {'key': 'placementGroupId', 'type': 'str'}, } def __init__( self, **kwargs ): - super(RoleInstance, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = None - self.tags = None - self.sku = kwargs.get('sku', None) - self.properties = kwargs.get('properties', None) + super(VirtualMachineScaleSetVMInstanceView, self).__init__(**kwargs) + self.platform_update_domain = kwargs.get('platform_update_domain', None) + self.platform_fault_domain = kwargs.get('platform_fault_domain', None) + self.rdp_thumb_print = kwargs.get('rdp_thumb_print', None) + self.vm_agent = kwargs.get('vm_agent', None) + self.maintenance_redeploy_status = kwargs.get('maintenance_redeploy_status', None) + self.disks = kwargs.get('disks', None) + self.extensions = kwargs.get('extensions', None) + self.vm_health = None + self.boot_diagnostics = kwargs.get('boot_diagnostics', None) + self.statuses = kwargs.get('statuses', None) + self.assigned_host = None + self.placement_group_id = kwargs.get('placement_group_id', None) -class RoleInstanceListResult(msrest.serialization.Model): - """RoleInstanceListResult. +class VirtualMachineScaleSetVMListResult(msrest.serialization.Model): + """The List Virtual Machine Scale Set VMs operation response. All required parameters must be populated in order to send to Azure. - :param value: Required. - :type value: list[~azure.mgmt.compute.v2021_03_01.models.RoleInstance] - :param next_link: + :param value: Required. The list of virtual machine scale sets VMs. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVM] + :param 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. :type next_link: str """ @@ -1297,7 +10462,7 @@ class RoleInstanceListResult(msrest.serialization.Model): } _attribute_map = { - 'value': {'key': 'value', 'type': '[RoleInstance]'}, + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSetVM]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } @@ -1305,136 +10470,294 @@ def __init__( self, **kwargs ): - super(RoleInstanceListResult, self).__init__(**kwargs) + super(VirtualMachineScaleSetVMListResult, self).__init__(**kwargs) self.value = kwargs['value'] self.next_link = kwargs.get('next_link', None) -class RoleInstanceNetworkProfile(msrest.serialization.Model): - """Describes the network profile for the role instance. +class VirtualMachineScaleSetVMNetworkProfileConfiguration(msrest.serialization.Model): + """Describes a virtual machine scale set VM network profile. - Variables are only populated by the server, and will be ignored when sending a request. + :param network_interface_configurations: The list of network configurations. + :type network_interface_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetNetworkConfiguration] + """ - :ivar network_interfaces: Specifies the list of resource Ids for the network interfaces - associated with the role instance. - :vartype network_interfaces: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + _attribute_map = { + 'network_interface_configurations': {'key': 'networkInterfaceConfigurations', 'type': '[VirtualMachineScaleSetNetworkConfiguration]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetVMNetworkProfileConfiguration, self).__init__(**kwargs) + self.network_interface_configurations = kwargs.get('network_interface_configurations', None) + + +class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): + """Describes a virtual machine scale set virtual machine profile. + + :param os_profile: Specifies the operating system settings for the virtual machines in the + scale set. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetOSProfile + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetStorageProfile + :param network_profile: Specifies properties of the network interfaces of the virtual machines + in the scale set. + :type network_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetNetworkProfile + :param security_profile: Specifies the Security related profile settings for the virtual + machines in the scale set. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + :param diagnostics_profile: Specifies the boot diagnostic settings state. + :code:`
    `:code:`
    `Minimum api-version: 2015-06-15. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param extension_profile: Specifies a collection of settings for extensions installed on + virtual machines in the scale set. + :type extension_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtensionProfile + :param 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 + :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: + :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) + :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server + `_ + :code:`
    `:code:`
    ` `Azure Hybrid Use Benefit for Linux Server + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type license_type: str + :param priority: Specifies the priority for the virtual machines in the scale set. + :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: + "Regular", "Low", "Spot". + :type priority: str or ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePriorityTypes + :param eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and + Azure Spot scale set. :code:`
    `:code:`
    `For Azure Spot virtual machines, both + 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. + :code:`
    `:code:`
    `For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported + and the minimum api-version is 2017-10-30-preview. Possible values include: "Deallocate", + "Delete". + :type eviction_policy: str or + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineEvictionPolicyTypes + :param billing_profile: Specifies the billing related details of a Azure Spot VMSS. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + :type billing_profile: ~azure.mgmt.compute.v2021_03_01.models.BillingProfile + :param scheduled_events_profile: Specifies Scheduled Event related configurations. + :type scheduled_events_profile: ~azure.mgmt.compute.v2021_03_01.models.ScheduledEventsProfile + :param 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. :code:`
    `:code:`
    `Minimum + api-version: 2021-03-01. + :type user_data: str """ - _validation = { - 'network_interfaces': {'readonly': True}, + _attribute_map = { + 'os_profile': {'key': 'osProfile', 'type': 'VirtualMachineScaleSetOSProfile'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'VirtualMachineScaleSetStorageProfile'}, + 'network_profile': {'key': 'networkProfile', 'type': 'VirtualMachineScaleSetNetworkProfile'}, + 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, + 'diagnostics_profile': {'key': 'diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'extension_profile': {'key': 'extensionProfile', 'type': 'VirtualMachineScaleSetExtensionProfile'}, + 'license_type': {'key': 'licenseType', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'str'}, + 'eviction_policy': {'key': 'evictionPolicy', 'type': 'str'}, + 'billing_profile': {'key': 'billingProfile', 'type': 'BillingProfile'}, + 'scheduled_events_profile': {'key': 'scheduledEventsProfile', 'type': 'ScheduledEventsProfile'}, + 'user_data': {'key': 'userData', 'type': 'str'}, } + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetVMProfile, self).__init__(**kwargs) + self.os_profile = kwargs.get('os_profile', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.network_profile = kwargs.get('network_profile', None) + self.security_profile = kwargs.get('security_profile', None) + self.diagnostics_profile = kwargs.get('diagnostics_profile', None) + self.extension_profile = kwargs.get('extension_profile', None) + self.license_type = kwargs.get('license_type', None) + self.priority = kwargs.get('priority', None) + self.eviction_policy = kwargs.get('eviction_policy', None) + self.billing_profile = kwargs.get('billing_profile', None) + self.scheduled_events_profile = kwargs.get('scheduled_events_profile', None) + self.user_data = kwargs.get('user_data', None) + + +class VirtualMachineScaleSetVMProtectionPolicy(msrest.serialization.Model): + """The protection policy of a virtual machine scale set VM. + + :param protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be + considered for deletion during a scale-in operation. + :type protect_from_scale_in: bool + :param protect_from_scale_set_actions: Indicates that model updates or actions (including + scale-in) initiated on the virtual machine scale set should not be applied to the virtual + machine scale set VM. + :type protect_from_scale_set_actions: bool + """ + _attribute_map = { - 'network_interfaces': {'key': 'networkInterfaces', 'type': '[SubResource]'}, + 'protect_from_scale_in': {'key': 'protectFromScaleIn', 'type': 'bool'}, + 'protect_from_scale_set_actions': {'key': 'protectFromScaleSetActions', 'type': 'bool'}, } def __init__( self, **kwargs ): - super(RoleInstanceNetworkProfile, self).__init__(**kwargs) - self.network_interfaces = None + super(VirtualMachineScaleSetVMProtectionPolicy, self).__init__(**kwargs) + self.protect_from_scale_in = kwargs.get('protect_from_scale_in', None) + self.protect_from_scale_set_actions = kwargs.get('protect_from_scale_set_actions', None) -class RoleInstanceProperties(msrest.serialization.Model): - """RoleInstanceProperties. +class VirtualMachineSize(msrest.serialization.Model): + """Describes the properties of a VM size. - :param network_profile: Describes the network profile for the role instance. - :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceNetworkProfile - :param instance_view: The instance view of the role instance. - :type instance_view: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceView + :param name: The name of the virtual machine size. + :type name: str + :param number_of_cores: The number of cores supported by the virtual machine size. For + Constrained vCPU capable VM sizes, this number represents the total vCPUs of quota that the VM + uses. For accurate vCPU count, please refer to + https://docs.microsoft.com/azure/virtual-machines/constrained-vcpu or + https://docs.microsoft.com/rest/api/compute/resourceskus/list. + :type number_of_cores: int + :param os_disk_size_in_mb: The OS disk size, in MB, allowed by the virtual machine size. + :type os_disk_size_in_mb: int + :param resource_disk_size_in_mb: The resource disk size, in MB, allowed by the virtual machine + size. + :type resource_disk_size_in_mb: int + :param memory_in_mb: The amount of memory, in MB, supported by the virtual machine size. + :type memory_in_mb: int + :param max_data_disk_count: The maximum number of data disks that can be attached to the + virtual machine size. + :type max_data_disk_count: int """ _attribute_map = { - 'network_profile': {'key': 'networkProfile', 'type': 'RoleInstanceNetworkProfile'}, - 'instance_view': {'key': 'instanceView', 'type': 'RoleInstanceView'}, + 'name': {'key': 'name', 'type': 'str'}, + 'number_of_cores': {'key': 'numberOfCores', 'type': 'int'}, + 'os_disk_size_in_mb': {'key': 'osDiskSizeInMB', 'type': 'int'}, + 'resource_disk_size_in_mb': {'key': 'resourceDiskSizeInMB', 'type': 'int'}, + 'memory_in_mb': {'key': 'memoryInMB', 'type': 'int'}, + 'max_data_disk_count': {'key': 'maxDataDiskCount', 'type': 'int'}, } def __init__( self, **kwargs ): - super(RoleInstanceProperties, self).__init__(**kwargs) - self.network_profile = kwargs.get('network_profile', None) - self.instance_view = kwargs.get('instance_view', None) - + super(VirtualMachineSize, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.number_of_cores = kwargs.get('number_of_cores', None) + self.os_disk_size_in_mb = kwargs.get('os_disk_size_in_mb', None) + self.resource_disk_size_in_mb = kwargs.get('resource_disk_size_in_mb', None) + self.memory_in_mb = kwargs.get('memory_in_mb', None) + self.max_data_disk_count = kwargs.get('max_data_disk_count', None) -class RoleInstances(msrest.serialization.Model): - """Specifies a list of role instances from the cloud service. - All required parameters must be populated in order to send to Azure. +class VirtualMachineSizeListResult(msrest.serialization.Model): + """The List Virtual Machine operation response. - :param role_instances: Required. List of cloud service role instance names. Value of '*' will - signify all role instances of the cloud service. - :type role_instances: list[str] + :param value: The list of virtual machine sizes. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineSize] """ - _validation = { - 'role_instances': {'required': True}, - } - _attribute_map = { - 'role_instances': {'key': 'roleInstances', 'type': '[str]'}, + 'value': {'key': 'value', 'type': '[VirtualMachineSize]'}, } def __init__( self, **kwargs ): - super(RoleInstances, self).__init__(**kwargs) - self.role_instances = kwargs['role_instances'] + super(VirtualMachineSizeListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) -class RoleInstanceView(msrest.serialization.Model): - """The instance view of the role instance. +class VirtualMachineSoftwarePatchProperties(msrest.serialization.Model): + """Describes the properties of a Virtual Machine software patch. Variables are only populated by the server, and will be ignored when sending a request. - :ivar platform_update_domain: The Update Domain. - :vartype platform_update_domain: int - :ivar platform_fault_domain: The Fault Domain. - :vartype platform_fault_domain: int - :ivar private_id: Specifies a unique identifier generated internally for the cloud service - associated with this role instance. :code:`
    `:code:`
    ` NOTE: If you are using Azure - Diagnostics extension, this property can be used as 'DeploymentId' for querying details. - :vartype private_id: str - :ivar statuses: - :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.ResourceInstanceViewStatus] + :ivar patch_id: A unique identifier for the patch. + :vartype patch_id: str + :ivar name: The friendly name of the patch. + :vartype name: str + :ivar version: The version number of the patch. This property applies only to Linux patches. + :vartype version: str + :ivar kb_id: The KBID of the patch. Only applies to Windows patches. + :vartype kb_id: str + :ivar classifications: The classification(s) of the patch as provided by the patch publisher. + :vartype classifications: list[str] + :ivar reboot_behavior: Describes the reboot requirements of the patch. Possible values include: + "Unknown", "NeverReboots", "AlwaysRequiresReboot", "CanRequestReboot". + :vartype reboot_behavior: str or + ~azure.mgmt.compute.v2021_03_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 + :ivar published_date: The UTC timestamp when the repository published this patch. + :vartype published_date: ~datetime.datetime + :ivar last_modified_date_time: The UTC timestamp of the last update to this patch record. + :vartype last_modified_date_time: ~datetime.datetime + :ivar assessment_state: Describes the availability of a given patch. Possible values include: + "Unknown", "Available". + :vartype assessment_state: str or ~azure.mgmt.compute.v2021_03_01.models.PatchAssessmentState """ _validation = { - 'platform_update_domain': {'readonly': True}, - 'platform_fault_domain': {'readonly': True}, - 'private_id': {'readonly': True}, - 'statuses': {'readonly': True}, + 'patch_id': {'readonly': True}, + 'name': {'readonly': True}, + 'version': {'readonly': True}, + 'kb_id': {'readonly': True}, + 'classifications': {'readonly': True}, + 'reboot_behavior': {'readonly': True}, + 'activity_id': {'readonly': True}, + 'published_date': {'readonly': True}, + 'last_modified_date_time': {'readonly': True}, + 'assessment_state': {'readonly': True}, } _attribute_map = { - 'platform_update_domain': {'key': 'platformUpdateDomain', 'type': 'int'}, - 'platform_fault_domain': {'key': 'platformFaultDomain', 'type': 'int'}, - 'private_id': {'key': 'privateId', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[ResourceInstanceViewStatus]'}, + 'patch_id': {'key': 'patchId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'kb_id': {'key': 'kbId', 'type': 'str'}, + 'classifications': {'key': 'classifications', 'type': '[str]'}, + 'reboot_behavior': {'key': 'rebootBehavior', 'type': 'str'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'last_modified_date_time': {'key': 'lastModifiedDateTime', 'type': 'iso-8601'}, + 'assessment_state': {'key': 'assessmentState', 'type': 'str'}, } def __init__( self, **kwargs ): - super(RoleInstanceView, self).__init__(**kwargs) - self.platform_update_domain = None - self.platform_fault_domain = None - self.private_id = None - self.statuses = None + super(VirtualMachineSoftwarePatchProperties, self).__init__(**kwargs) + self.patch_id = None + self.name = None + self.version = None + self.kb_id = None + self.classifications = None + self.reboot_behavior = None + self.activity_id = None + self.published_date = None + self.last_modified_date_time = None + self.assessment_state = None -class StatusCodeCount(msrest.serialization.Model): - """StatusCodeCount. +class VirtualMachineStatusCodeCount(msrest.serialization.Model): + """The status code and count of the virtual machine scale set instance view status summary. Variables are only populated by the server, and will be ignored when sending a request. :ivar code: The instance view status code. :vartype code: str - :ivar count: Number of instances having this status code. + :ivar count: The number of instances having a particular status code. :vartype count: int """ @@ -1452,84 +10775,360 @@ def __init__( self, **kwargs ): - super(StatusCodeCount, self).__init__(**kwargs) + super(VirtualMachineStatusCodeCount, self).__init__(**kwargs) self.code = None self.count = None -class SubResource(msrest.serialization.Model): - """SubResource. +class VirtualMachineUpdate(UpdateResource): + """Describes a Virtual Machine Update. - :param id: Resource Id. - :type id: str + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param 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**. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.Plan + :param identity: The identity of the virtual machine, if configured. + :type identity: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineIdentity + :param zones: The virtual machine zones. + :type zones: list[str] + :param hardware_profile: Specifies the hardware settings for the virtual machine. + :type hardware_profile: ~azure.mgmt.compute.v2021_03_01.models.HardwareProfile + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: ~azure.mgmt.compute.v2021_03_01.models.StorageProfile + :param additional_capabilities: Specifies additional capabilities enabled or disabled on the + virtual machine. + :type additional_capabilities: ~azure.mgmt.compute.v2021_03_01.models.AdditionalCapabilities + :param os_profile: Specifies the operating system settings used while creating the virtual + machine. Some of the settings cannot be changed once VM is provisioned. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.OSProfile + :param network_profile: Specifies the network interfaces of the virtual machine. + :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.NetworkProfile + :param security_profile: Specifies the Security related profile settings for the virtual + machine. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + :param diagnostics_profile: Specifies the boot diagnostic settings state. + :code:`
    `:code:`
    `Minimum api-version: 2015-06-15. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param 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 + sets, see `Availability sets overview + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation + time. The availability set to which the 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. + :code:`
    `:code:`
    `This property cannot exist along with a non-null + properties.virtualMachineScaleSet reference. + :type availability_set: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param 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. :code:`
    `:code:`
    `This property cannot exist along with a + non-null properties.availabilitySet reference. :code:`
    `:code:`
    `Minimum api‐version: + 2019‐03‐01. + :type virtual_machine_scale_set: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param proximity_placement_group: Specifies information about the proximity placement group + that the virtual machine should be assigned to. :code:`
    `:code:`
    `Minimum api-version: + 2018-04-01. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param priority: Specifies the priority for the virtual machine. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. Possible values include: "Regular", + "Low", "Spot". + :type priority: str or ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePriorityTypes + :param eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and + Azure Spot scale set. :code:`
    `:code:`
    `For Azure Spot virtual machines, both + 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. + :code:`
    `:code:`
    `For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported + and the minimum api-version is 2017-10-30-preview. Possible values include: "Deallocate", + "Delete". + :type eviction_policy: str or + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineEvictionPolicyTypes + :param billing_profile: Specifies the billing related details of a Azure Spot virtual machine. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + :type billing_profile: ~azure.mgmt.compute.v2021_03_01.models.BillingProfile + :param host: Specifies information about the dedicated host that the virtual machine resides + in. :code:`
    `:code:`
    `Minimum api-version: 2018-10-01. + :type host: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param host_group: Specifies information about the dedicated host group that the virtual + machine resides in. :code:`
    `:code:`
    `Minimum api-version: 2020-06-01. + :code:`
    `:code:`
    `NOTE: User cannot specify both host and hostGroup properties. + :type host_group: ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.VirtualMachineInstanceView + :param 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 + :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: + :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) + :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server + `_ + :code:`
    `:code:`
    ` `Azure Hybrid Use Benefit for Linux Server + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type license_type: str + :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and + stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. + :vartype vm_id: str + :param 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). :code:`
    `:code:`
    ` Minimum + api-version: 2020-06-01. + :type extensions_time_budget: str + :param platform_fault_domain: Specifies the scale set logical fault domain into which the + Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned + to a fault domain that best maintains balance across available fault + domains.:code:`
    `:code:`
  • `This is applicable only if the 'virtualMachineScaleSet' + property of this Virtual Machine is set.:code:`
  • `The Virtual Machine Scale Set that is + referenced, must have 'platformFaultDomainCount' > 1.:code:`
  • `This property cannot be + updated once the Virtual Machine is created.:code:`
  • `Fault domain assignment can be viewed + in the Virtual Machine Instance View.:code:`
    `:code:`
    `Minimum api‐version: 2020‐12‐01. + :type platform_fault_domain: int + :param scheduled_events_profile: Specifies Scheduled Event related configurations. + :type scheduled_events_profile: ~azure.mgmt.compute.v2021_03_01.models.ScheduledEventsProfile + :param 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. + :type user_data: str """ + _validation = { + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, + 'vm_id': {'readonly': True}, + } + _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'identity': {'key': 'identity', 'type': 'VirtualMachineIdentity'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'}, + 'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'security_profile': {'key': 'properties.securityProfile', 'type': 'SecurityProfile'}, + 'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'}, + 'virtual_machine_scale_set': {'key': 'properties.virtualMachineScaleSet', 'type': 'SubResource'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + 'priority': {'key': 'properties.priority', 'type': 'str'}, + 'eviction_policy': {'key': 'properties.evictionPolicy', 'type': 'str'}, + 'billing_profile': {'key': 'properties.billingProfile', 'type': 'BillingProfile'}, + 'host': {'key': 'properties.host', 'type': 'SubResource'}, + 'host_group': {'key': 'properties.hostGroup', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'}, + 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'vm_id': {'key': 'properties.vmId', 'type': 'str'}, + 'extensions_time_budget': {'key': 'properties.extensionsTimeBudget', 'type': 'str'}, + 'platform_fault_domain': {'key': 'properties.platformFaultDomain', 'type': 'int'}, + 'scheduled_events_profile': {'key': 'properties.scheduledEventsProfile', 'type': 'ScheduledEventsProfile'}, + 'user_data': {'key': 'properties.userData', 'type': 'str'}, } def __init__( self, **kwargs ): - super(SubResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - - -class UpdateDomain(msrest.serialization.Model): - """Defines an update domain for the cloud service. + super(VirtualMachineUpdate, self).__init__(**kwargs) + self.plan = kwargs.get('plan', None) + self.identity = kwargs.get('identity', None) + self.zones = kwargs.get('zones', None) + self.hardware_profile = kwargs.get('hardware_profile', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.additional_capabilities = kwargs.get('additional_capabilities', None) + self.os_profile = kwargs.get('os_profile', None) + self.network_profile = kwargs.get('network_profile', None) + self.security_profile = kwargs.get('security_profile', None) + self.diagnostics_profile = kwargs.get('diagnostics_profile', None) + self.availability_set = kwargs.get('availability_set', None) + self.virtual_machine_scale_set = kwargs.get('virtual_machine_scale_set', None) + self.proximity_placement_group = kwargs.get('proximity_placement_group', None) + self.priority = kwargs.get('priority', None) + self.eviction_policy = kwargs.get('eviction_policy', None) + self.billing_profile = kwargs.get('billing_profile', None) + self.host = kwargs.get('host', None) + self.host_group = kwargs.get('host_group', None) + self.provisioning_state = None + self.instance_view = None + self.license_type = kwargs.get('license_type', None) + self.vm_id = None + self.extensions_time_budget = kwargs.get('extensions_time_budget', None) + self.platform_fault_domain = kwargs.get('platform_fault_domain', None) + self.scheduled_events_profile = kwargs.get('scheduled_events_profile', None) + self.user_data = kwargs.get('user_data', None) + + +class VMScaleSetConvertToSinglePlacementGroupInput(msrest.serialization.Model): + """VMScaleSetConvertToSinglePlacementGroupInput. + + :param active_placement_group_id: Id of the placement group in which you want future virtual + machine instances to be placed. To query placement group Id, please use Virtual Machine Scale + Set VMs - Get API. If not provided, the platform will choose one with maximum number of virtual + machine instances. + :type active_placement_group_id: str + """ - Variables are only populated by the server, and will be ignored when sending a request. + _attribute_map = { + 'active_placement_group_id': {'key': 'activePlacementGroupId', 'type': 'str'}, + } - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str + def __init__( + self, + **kwargs + ): + super(VMScaleSetConvertToSinglePlacementGroupInput, self).__init__(**kwargs) + self.active_placement_group_id = kwargs.get('active_placement_group_id', None) + + +class WindowsConfiguration(msrest.serialization.Model): + """Specifies Windows operating system settings on the virtual machine. + + :param provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the + virtual machine. :code:`
    `:code:`
    ` 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 be added to the VM later. + :type provision_vm_agent: bool + :param enable_automatic_updates: Indicates whether Automatic Updates is enabled for the Windows + virtual machine. Default value is true. :code:`
    `:code:`
    ` For virtual machine scale + sets, this property can be updated and updates will take effect on OS reprovisioning. + :type enable_automatic_updates: bool + :param time_zone: Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". + :code:`
    `:code:`
    ` Possible values can be `TimeZoneInfo.Id + `_ value + from time zones returned by `TimeZoneInfo.GetSystemTimeZones + `_. + :type time_zone: str + :param 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. + :type additional_unattend_content: + list[~azure.mgmt.compute.v2021_03_01.models.AdditionalUnattendContent] + :param patch_settings: [Preview Feature] Specifies settings related to VM Guest Patching on + Windows. + :type patch_settings: ~azure.mgmt.compute.v2021_03_01.models.PatchSettings + :param win_rm: Specifies the Windows Remote Management listeners. This enables remote Windows + PowerShell. + :type win_rm: ~azure.mgmt.compute.v2021_03_01.models.WinRMConfiguration """ - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, + _attribute_map = { + 'provision_vm_agent': {'key': 'provisionVMAgent', 'type': 'bool'}, + 'enable_automatic_updates': {'key': 'enableAutomaticUpdates', 'type': 'bool'}, + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + 'additional_unattend_content': {'key': 'additionalUnattendContent', 'type': '[AdditionalUnattendContent]'}, + 'patch_settings': {'key': 'patchSettings', 'type': 'PatchSettings'}, + 'win_rm': {'key': 'winRM', 'type': 'WinRMConfiguration'}, } + def __init__( + self, + **kwargs + ): + super(WindowsConfiguration, self).__init__(**kwargs) + self.provision_vm_agent = kwargs.get('provision_vm_agent', None) + self.enable_automatic_updates = kwargs.get('enable_automatic_updates', None) + self.time_zone = kwargs.get('time_zone', None) + self.additional_unattend_content = kwargs.get('additional_unattend_content', None) + self.patch_settings = kwargs.get('patch_settings', None) + self.win_rm = kwargs.get('win_rm', None) + + +class WindowsParameters(msrest.serialization.Model): + """Input for InstallPatches on a Windows VM, as directly received by the API. + + :param classifications_to_include: The update classifications to select when installing patches + for Windows. + :type classifications_to_include: list[str or + ~azure.mgmt.compute.v2021_03_01.models.VMGuestPatchClassificationWindows] + :param kb_numbers_to_include: Kbs to include in the patch operation. + :type kb_numbers_to_include: list[str] + :param kb_numbers_to_exclude: Kbs to exclude in the patch operation. + :type kb_numbers_to_exclude: list[str] + :param exclude_kbs_requiring_reboot: Filters out Kbs that don't have an + InstallationRebootBehavior of 'NeverReboots' when this is set to true. + :type exclude_kbs_requiring_reboot: bool + :param max_patch_publish_date: This is used to install patches that were published on or before + this given max published date. + :type max_patch_publish_date: ~datetime.datetime + """ + _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, + 'classifications_to_include': {'key': 'classificationsToInclude', 'type': '[str]'}, + 'kb_numbers_to_include': {'key': 'kbNumbersToInclude', 'type': '[str]'}, + 'kb_numbers_to_exclude': {'key': 'kbNumbersToExclude', 'type': '[str]'}, + 'exclude_kbs_requiring_reboot': {'key': 'excludeKbsRequiringReboot', 'type': 'bool'}, + 'max_patch_publish_date': {'key': 'maxPatchPublishDate', 'type': 'iso-8601'}, } def __init__( self, **kwargs ): - super(UpdateDomain, self).__init__(**kwargs) - self.id = None - self.name = None - + super(WindowsParameters, self).__init__(**kwargs) + self.classifications_to_include = kwargs.get('classifications_to_include', None) + self.kb_numbers_to_include = kwargs.get('kb_numbers_to_include', None) + self.kb_numbers_to_exclude = kwargs.get('kb_numbers_to_exclude', None) + self.exclude_kbs_requiring_reboot = kwargs.get('exclude_kbs_requiring_reboot', None) + self.max_patch_publish_date = kwargs.get('max_patch_publish_date', None) -class UpdateDomainListResult(msrest.serialization.Model): - """UpdateDomainListResult. - All required parameters must be populated in order to send to Azure. +class WinRMConfiguration(msrest.serialization.Model): + """Describes Windows Remote Management configuration of the VM. - :param value: Required. - :type value: list[~azure.mgmt.compute.v2021_03_01.models.UpdateDomain] - :param next_link: - :type next_link: str + :param listeners: The list of Windows Remote Management listeners. + :type listeners: list[~azure.mgmt.compute.v2021_03_01.models.WinRMListener] """ - _validation = { - 'value': {'required': True}, + _attribute_map = { + 'listeners': {'key': 'listeners', 'type': '[WinRMListener]'}, } + def __init__( + self, + **kwargs + ): + super(WinRMConfiguration, self).__init__(**kwargs) + self.listeners = kwargs.get('listeners', None) + + +class WinRMListener(msrest.serialization.Model): + """Describes Protocol and thumbprint of Windows Remote Management listener. + + :param protocol: Specifies the protocol of WinRM listener. :code:`
    `:code:`
    ` Possible + values are: :code:`
    `\ **http** :code:`
    `:code:`
    ` **https**. Possible values include: + "Http", "Https". + :type protocol: str or ~azure.mgmt.compute.v2021_03_01.models.ProtocolTypes + :param 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 + certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. + :type certificate_url: str + """ + _attribute_map = { - 'value': {'key': 'value', 'type': '[UpdateDomain]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'certificate_url': {'key': 'certificateUrl', 'type': 'str'}, } def __init__( self, **kwargs ): - super(UpdateDomainListResult, self).__init__(**kwargs) - self.value = kwargs['value'] - self.next_link = kwargs.get('next_link', None) + super(WinRMListener, self).__init__(**kwargs) + self.protocol = kwargs.get('protocol', None) + self.certificate_url = kwargs.get('certificate_url', None) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py index c90ef6926bc5..8a1ef3f9f24d 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py @@ -6,13 +6,108 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +import datetime +from typing import Any, Dict, List, Optional, Union import msrest.serialization from ._compute_management_client_enums import * +class AdditionalCapabilities(msrest.serialization.Model): + """Enables or disables a capability on the virtual machine or virtual machine scale set. + + :param ultra_ssd_enabled: The flag that enables or disables a capability to have one or more + managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with + storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale + set only if this property is enabled. + :type ultra_ssd_enabled: bool + """ + + _attribute_map = { + 'ultra_ssd_enabled': {'key': 'ultraSSDEnabled', 'type': 'bool'}, + } + + def __init__( + self, + *, + ultra_ssd_enabled: Optional[bool] = None, + **kwargs + ): + super(AdditionalCapabilities, self).__init__(**kwargs) + self.ultra_ssd_enabled = ultra_ssd_enabled + + +class AdditionalUnattendContent(msrest.serialization.Model): + """Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default + value: "OobeSystem". + :vartype pass_name: str + :ivar component_name: The component name. Currently, the only allowable value is + Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup". + :vartype component_name: str + :param setting_name: Specifies the name of the setting to which the content applies. Possible + values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon", + "FirstLogonCommands". + :type setting_name: str or ~azure.mgmt.compute.v2021_03_01.models.SettingNames + :param 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. + :type content: str + """ + + _validation = { + 'pass_name': {'constant': True}, + 'component_name': {'constant': True}, + } + + _attribute_map = { + 'pass_name': {'key': 'passName', 'type': 'str'}, + 'component_name': {'key': 'componentName', 'type': 'str'}, + 'setting_name': {'key': 'settingName', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'str'}, + } + + pass_name = "OobeSystem" + component_name = "Microsoft-Windows-Shell-Setup" + + def __init__( + self, + *, + setting_name: Optional[Union[str, "SettingNames"]] = None, + content: Optional[str] = None, + **kwargs + ): + super(AdditionalUnattendContent, self).__init__(**kwargs) + self.setting_name = setting_name + self.content = content + + +class ApiEntityReference(msrest.serialization.Model): + """The API entity reference. + + :param id: The ARM resource id in the form of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): + super(ApiEntityReference, self).__init__(**kwargs) + self.id = id + + class ApiError(msrest.serialization.Model): """Api error. @@ -85,8 +180,99 @@ def __init__( self.target = target -class CloudService(msrest.serialization.Model): - """Describes the cloud service. +class AutomaticOSUpgradePolicy(msrest.serialization.Model): + """The configuration parameters used for performing automatic OS upgrade. + + :param enable_automatic_os_upgrade: Indicates whether OS upgrades should automatically be + applied to scale set instances in a rolling fashion when a newer version of the OS image + becomes available. Default value is false. :code:`
    `:code:`
    ` If this is set to true for + Windows based scale sets, `enableAutomaticUpdates + `_ + is automatically set to false and cannot be set to true. + :type enable_automatic_os_upgrade: bool + :param disable_automatic_rollback: Whether OS image rollback feature should be disabled. + Default value is false. + :type disable_automatic_rollback: bool + """ + + _attribute_map = { + 'enable_automatic_os_upgrade': {'key': 'enableAutomaticOSUpgrade', 'type': 'bool'}, + 'disable_automatic_rollback': {'key': 'disableAutomaticRollback', 'type': 'bool'}, + } + + def __init__( + self, + *, + enable_automatic_os_upgrade: Optional[bool] = None, + disable_automatic_rollback: Optional[bool] = None, + **kwargs + ): + super(AutomaticOSUpgradePolicy, self).__init__(**kwargs) + self.enable_automatic_os_upgrade = enable_automatic_os_upgrade + self.disable_automatic_rollback = disable_automatic_rollback + + +class AutomaticOSUpgradeProperties(msrest.serialization.Model): + """Describes automatic OS upgrade properties on the image. + + All required parameters must be populated in order to send to Azure. + + :param automatic_os_upgrade_supported: Required. Specifies whether automatic OS upgrade is + supported on the image. + :type automatic_os_upgrade_supported: bool + """ + + _validation = { + 'automatic_os_upgrade_supported': {'required': True}, + } + + _attribute_map = { + 'automatic_os_upgrade_supported': {'key': 'automaticOSUpgradeSupported', 'type': 'bool'}, + } + + def __init__( + self, + *, + automatic_os_upgrade_supported: bool, + **kwargs + ): + super(AutomaticOSUpgradeProperties, self).__init__(**kwargs) + self.automatic_os_upgrade_supported = automatic_os_upgrade_supported + + +class AutomaticRepairsPolicy(msrest.serialization.Model): + """Specifies the configuration parameters for automatic repairs on the virtual machine scale set. + + :param enabled: Specifies whether automatic repairs should be enabled on the virtual machine + scale set. The default value is false. + :type enabled: bool + :param grace_period: The amount of time for which automatic repairs are suspended due to a + state change on VM. The grace time starts after the state change has completed. This helps + avoid premature or accidental repairs. The time duration should be specified in ISO 8601 + format. The minimum allowed grace period is 30 minutes (PT30M), which is also the default + value. The maximum allowed grace period is 90 minutes (PT90M). + :type grace_period: str + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'grace_period': {'key': 'gracePeriod', 'type': 'str'}, + } + + def __init__( + self, + *, + enabled: Optional[bool] = None, + grace_period: Optional[str] = None, + **kwargs + ): + super(AutomaticRepairsPolicy, self).__init__(**kwargs) + self.enabled = enabled + self.grace_period = grace_period + + +class Resource(msrest.serialization.Model): + """The Resource model definition. Variables are only populated by the server, and will be ignored when sending a request. @@ -102,8 +288,6 @@ class CloudService(msrest.serialization.Model): :type location: str :param tags: A set of tags. Resource tags. :type tags: dict[str, str] - :param properties: Cloud service properties. - :type properties: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceProperties """ _validation = { @@ -119,7 +303,6 @@ class CloudService(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'CloudServiceProperties'}, } def __init__( @@ -127,181 +310,9011 @@ def __init__( *, location: str, tags: Optional[Dict[str, str]] = None, - properties: Optional["CloudServiceProperties"] = None, **kwargs ): - super(CloudService, self).__init__(**kwargs) + super(Resource, self).__init__(**kwargs) self.id = None self.name = None self.type = None self.location = location self.tags = tags - self.properties = properties -class CloudServiceExtensionProfile(msrest.serialization.Model): - """Describes a cloud service extension profile. +class AvailabilitySet(Resource): + """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 sets, see `Availability sets overview `_. :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Maintenance and updates for Virtual Machines in Azure `_ :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. - :param extensions: List of extensions for the cloud service. - :type extensions: list[~azure.mgmt.compute.v2021_03_01.models.Extension] + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param sku: Sku of the availability set, only name is required to be set. See + 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'. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param platform_update_domain_count: Update Domain count. + :type platform_update_domain_count: int + :param platform_fault_domain_count: Fault Domain count. + :type platform_fault_domain_count: int + :param virtual_machines: A list of references to all virtual machines in the availability set. + :type virtual_machines: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param proximity_placement_group: Specifies information about the proximity placement group + that the availability set should be assigned to. :code:`
    `:code:`
    `Minimum api-version: + 2018-04-01. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :ivar statuses: The resource status information. + :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'statuses': {'readonly': True}, + } + _attribute_map = { - 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'platform_update_domain_count': {'key': 'properties.platformUpdateDomainCount', 'type': 'int'}, + 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, + 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResource]'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + 'statuses': {'key': 'properties.statuses', 'type': '[InstanceViewStatus]'}, } def __init__( self, *, - extensions: Optional[List["Extension"]] = None, + location: str, + tags: Optional[Dict[str, str]] = None, + sku: Optional["Sku"] = None, + platform_update_domain_count: Optional[int] = None, + platform_fault_domain_count: Optional[int] = None, + virtual_machines: Optional[List["SubResource"]] = None, + proximity_placement_group: Optional["SubResource"] = None, **kwargs ): - super(CloudServiceExtensionProfile, self).__init__(**kwargs) - self.extensions = extensions + super(AvailabilitySet, self).__init__(location=location, tags=tags, **kwargs) + self.sku = sku + self.platform_update_domain_count = platform_update_domain_count + self.platform_fault_domain_count = platform_fault_domain_count + self.virtual_machines = virtual_machines + self.proximity_placement_group = proximity_placement_group + self.statuses = None -class CloudServiceExtensionProperties(msrest.serialization.Model): - """Extension Properties. +class AvailabilitySetListResult(msrest.serialization.Model): + """The List Availability Set operation response. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :param publisher: The name of the extension handler publisher. - :type publisher: str - :param type: Specifies the type of the extension. - :type type: str - :param type_handler_version: Specifies the version of the extension. Specifies the version of - the extension. If this element is not specified or an asterisk (*) is used as the value, the - latest version of the extension is used. If the value is specified with a major version number - and an asterisk as the minor version number (X.), the latest minor version of the specified - major version is selected. If a major version number and a minor version number are specified - (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade - is performed on the role instance. - :type type_handler_version: str - :param auto_upgrade_minor_version: Explicitly specify whether platform can automatically - upgrade typeHandlerVersion to higher minor versions when they become available. - :type auto_upgrade_minor_version: bool - :param settings: Public settings for the extension. For JSON extensions, this is the JSON - settings for the extension. For XML Extension (like RDP), this is the XML setting for the - extension. - :type settings: str - :param protected_settings: Protected settings for the extension which are encrypted before sent - to the role instance. - :type protected_settings: str - :param protected_settings_from_key_vault: - :type protected_settings_from_key_vault: - ~azure.mgmt.compute.v2021_03_01.models.CloudServiceVaultAndSecretReference - :param force_update_tag: Tag to force apply the provided public and protected settings. - Changing the tag value allows for re-running the extension without changing any of the public - or protected settings. - If forceUpdateTag is not changed, updates to public or protected settings would still be - applied by the handler. - If neither forceUpdateTag nor any of public or protected settings change, extension would flow - to the role instance with the same sequence-number, and - it is up to handler implementation whether to re-run it or not. - :type force_update_tag: str - :ivar provisioning_state: The provisioning state, which only appears in the response. - :vartype provisioning_state: str - :param roles_applied_to: Optional list of roles to apply this extension. If property is not - specified or '*' is specified, extension is applied to all roles in the cloud service. - :type roles_applied_to: list[str] + :param value: Required. The list of availability sets. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.AvailabilitySet] + :param next_link: The URI to fetch the next page of AvailabilitySets. Call ListNext() with this + URI to fetch the next page of AvailabilitySets. + :type next_link: str """ _validation = { - 'provisioning_state': {'readonly': True}, + 'value': {'required': True}, } _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'}, - 'auto_upgrade_minor_version': {'key': 'autoUpgradeMinorVersion', 'type': 'bool'}, - 'settings': {'key': 'settings', 'type': 'str'}, - 'protected_settings': {'key': 'protectedSettings', 'type': 'str'}, - 'protected_settings_from_key_vault': {'key': 'protectedSettingsFromKeyVault', 'type': 'CloudServiceVaultAndSecretReference'}, - 'force_update_tag': {'key': 'forceUpdateTag', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'roles_applied_to': {'key': 'rolesAppliedTo', 'type': '[str]'}, + 'value': {'key': 'value', 'type': '[AvailabilitySet]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, - publisher: Optional[str] = None, - type: Optional[str] = None, - type_handler_version: Optional[str] = None, - auto_upgrade_minor_version: Optional[bool] = None, - settings: Optional[str] = None, - protected_settings: Optional[str] = None, - protected_settings_from_key_vault: Optional["CloudServiceVaultAndSecretReference"] = None, - force_update_tag: Optional[str] = None, - roles_applied_to: Optional[List[str]] = None, + value: List["AvailabilitySet"], + next_link: Optional[str] = None, **kwargs ): - super(CloudServiceExtensionProperties, self).__init__(**kwargs) - self.publisher = publisher - self.type = type - self.type_handler_version = type_handler_version - self.auto_upgrade_minor_version = auto_upgrade_minor_version - self.settings = settings - self.protected_settings = protected_settings - self.protected_settings_from_key_vault = protected_settings_from_key_vault - self.force_update_tag = force_update_tag - self.provisioning_state = None - self.roles_applied_to = roles_applied_to - + super(AvailabilitySetListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link -class CloudServiceInstanceView(msrest.serialization.Model): - """InstanceView of CloudService as a whole. - Variables are only populated by the server, and will be ignored when sending a request. +class UpdateResource(msrest.serialization.Model): + """The Update Resource model definition. - :param role_instance: Instance view statuses. - :type role_instance: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatusesSummary - :ivar sdk_version: The version of the SDK that was used to generate the package for the cloud - service. - :vartype sdk_version: str - :ivar private_ids: Specifies a list of unique identifiers generated internally for the cloud - service. :code:`
    `:code:`
    ` NOTE: If you are using Azure Diagnostics extension, this - property can be used as 'DeploymentId' for querying details. - :vartype private_ids: list[str] - :ivar statuses: - :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.ResourceInstanceViewStatus] + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] """ - _validation = { - 'sdk_version': {'readonly': True}, - 'private_ids': {'readonly': True}, - 'statuses': {'readonly': True}, - } - _attribute_map = { - 'role_instance': {'key': 'roleInstance', 'type': 'InstanceViewStatusesSummary'}, - 'sdk_version': {'key': 'sdkVersion', 'type': 'str'}, - 'private_ids': {'key': 'privateIds', 'type': '[str]'}, - 'statuses': {'key': 'statuses', 'type': '[ResourceInstanceViewStatus]'}, + 'tags': {'key': 'tags', 'type': '{str}'}, } def __init__( self, *, - role_instance: Optional["InstanceViewStatusesSummary"] = None, + tags: Optional[Dict[str, str]] = None, **kwargs ): - super(CloudServiceInstanceView, self).__init__(**kwargs) - self.role_instance = role_instance - self.sdk_version = None - self.private_ids = None - self.statuses = None + super(UpdateResource, self).__init__(**kwargs) + self.tags = tags -class CloudServiceListResult(msrest.serialization.Model): - """CloudServiceListResult. +class AvailabilitySetUpdate(UpdateResource): + """Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param sku: Sku of the availability set. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param platform_update_domain_count: Update Domain count. + :type platform_update_domain_count: int + :param platform_fault_domain_count: Fault Domain count. + :type platform_fault_domain_count: int + :param virtual_machines: A list of references to all virtual machines in the availability set. + :type virtual_machines: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param proximity_placement_group: Specifies information about the proximity placement group + that the availability set should be assigned to. :code:`
    `:code:`
    `Minimum api-version: + 2018-04-01. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :ivar statuses: The resource status information. + :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _validation = { + 'statuses': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'platform_update_domain_count': {'key': 'properties.platformUpdateDomainCount', 'type': 'int'}, + 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, + 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResource]'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + 'statuses': {'key': 'properties.statuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + sku: Optional["Sku"] = None, + platform_update_domain_count: Optional[int] = None, + platform_fault_domain_count: Optional[int] = None, + virtual_machines: Optional[List["SubResource"]] = None, + proximity_placement_group: Optional["SubResource"] = None, + **kwargs + ): + super(AvailabilitySetUpdate, self).__init__(tags=tags, **kwargs) + self.sku = sku + self.platform_update_domain_count = platform_update_domain_count + self.platform_fault_domain_count = platform_fault_domain_count + self.virtual_machines = virtual_machines + self.proximity_placement_group = proximity_placement_group + self.statuses = None + + +class AvailablePatchSummary(msrest.serialization.Model): + """Describes the properties of an virtual machine instance view for available patch summary. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", + or "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.compute.v2021_03_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 + :ivar reboot_pending: The overall reboot status of the VM. It will be true when partially + installed patches require a reboot to complete installation but the reboot has not yet + occurred. + :vartype reboot_pending: bool + :ivar critical_and_security_patch_count: The number of critical or security patches that have + been detected as available and not yet installed. + :vartype critical_and_security_patch_count: int + :ivar other_patch_count: The number of all available patches excluding critical and security. + :vartype other_patch_count: int + :ivar start_time: The UTC timestamp when the operation began. + :vartype start_time: ~datetime.datetime + :ivar last_modified_time: The UTC timestamp when the operation began. + :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.v2021_03_01.models.ApiError + """ + + _validation = { + 'status': {'readonly': True}, + 'assessment_activity_id': {'readonly': True}, + 'reboot_pending': {'readonly': True}, + 'critical_and_security_patch_count': {'readonly': True}, + 'other_patch_count': {'readonly': True}, + 'start_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'assessment_activity_id': {'key': 'assessmentActivityId', 'type': 'str'}, + 'reboot_pending': {'key': 'rebootPending', 'type': 'bool'}, + 'critical_and_security_patch_count': {'key': 'criticalAndSecurityPatchCount', 'type': 'int'}, + 'other_patch_count': {'key': 'otherPatchCount', 'type': 'int'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'ApiError'}, + } + + def __init__( + self, + **kwargs + ): + super(AvailablePatchSummary, self).__init__(**kwargs) + self.status = None + self.assessment_activity_id = None + self.reboot_pending = None + self.critical_and_security_patch_count = None + self.other_patch_count = None + self.start_time = None + self.last_modified_time = None + self.error = None + + +class BillingProfile(msrest.serialization.Model): + """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + + :param max_price: Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. + This price is in US Dollars. :code:`
    `:code:`
    ` This price will be compared with the + current Azure Spot price for the VM size. Also, the prices are compared at the time of + create/update of Azure Spot VM/VMSS and the operation will only succeed if the maxPrice is + greater than the current Azure Spot price. :code:`
    `:code:`
    ` The maxPrice will also be + used for evicting a Azure Spot VM/VMSS if the current Azure Spot price goes beyond the maxPrice + after creation of VM/VMSS. :code:`
    `:code:`
    ` Possible values are: + :code:`
    `:code:`
    ` - Any decimal value greater than zero. Example: 0.01538 + :code:`
    `:code:`
    ` -1 – indicates default price to be up-to on-demand. + :code:`
    `:code:`
    ` You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS + should not be evicted for price reasons. Also, the default max price is -1 if it is not + provided by you. :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + :type max_price: float + """ + + _attribute_map = { + 'max_price': {'key': 'maxPrice', 'type': 'float'}, + } + + def __init__( + self, + *, + max_price: Optional[float] = None, + **kwargs + ): + super(BillingProfile, self).__init__(**kwargs) + self.max_price = max_price + + +class BootDiagnostics(msrest.serialization.Model): + """Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. :code:`
    `:code:`
    ` You can easily view the output of your console log. :code:`
    `:code:`
    ` Azure also enables you to see a screenshot of the VM from the hypervisor. + + :param enabled: Whether boot diagnostics should be enabled on the Virtual Machine. + :type enabled: bool + :param storage_uri: Uri of the storage account to use for placing the console output and + screenshot. :code:`
    `:code:`
    `If storageUri is not specified while enabling boot + diagnostics, managed storage will be used. + :type storage_uri: str + """ + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'storage_uri': {'key': 'storageUri', 'type': 'str'}, + } + + def __init__( + self, + *, + enabled: Optional[bool] = None, + storage_uri: Optional[str] = None, + **kwargs + ): + super(BootDiagnostics, self).__init__(**kwargs) + self.enabled = enabled + self.storage_uri = storage_uri + + +class BootDiagnosticsInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine boot diagnostics. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar console_screenshot_blob_uri: The console screenshot blob URI. + :code:`
    `:code:`
    `NOTE: This will **not** be set if boot diagnostics is currently enabled + with managed storage. + :vartype console_screenshot_blob_uri: str + :ivar serial_console_log_blob_uri: The serial console log blob Uri. + :code:`
    `:code:`
    `NOTE: This will **not** be set if boot diagnostics is currently enabled + with managed storage. + :vartype serial_console_log_blob_uri: str + :ivar status: The boot diagnostics status information for the VM. :code:`
    `:code:`
    ` + NOTE: It will be set only if there are errors encountered in enabling boot diagnostics. + :vartype status: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus + """ + + _validation = { + 'console_screenshot_blob_uri': {'readonly': True}, + 'serial_console_log_blob_uri': {'readonly': True}, + 'status': {'readonly': True}, + } + + _attribute_map = { + 'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'}, + 'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'InstanceViewStatus'}, + } + + def __init__( + self, + **kwargs + ): + super(BootDiagnosticsInstanceView, self).__init__(**kwargs) + self.console_screenshot_blob_uri = None + self.serial_console_log_blob_uri = None + self.status = None + + +class CloudService(msrest.serialization.Model): + """Describes the cloud service. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param properties: Cloud service properties. + :type properties: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'CloudServiceProperties'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + properties: Optional["CloudServiceProperties"] = None, + **kwargs + ): + super(CloudService, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + self.properties = properties + + +class CloudServiceExtensionProfile(msrest.serialization.Model): + """Describes a cloud service extension profile. + + :param extensions: List of extensions for the cloud service. + :type extensions: list[~azure.mgmt.compute.v2021_03_01.models.Extension] + """ + + _attribute_map = { + 'extensions': {'key': 'extensions', 'type': '[Extension]'}, + } + + def __init__( + self, + *, + extensions: Optional[List["Extension"]] = None, + **kwargs + ): + super(CloudServiceExtensionProfile, self).__init__(**kwargs) + self.extensions = extensions + + +class CloudServiceExtensionProperties(msrest.serialization.Model): + """Extension Properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type: Specifies the type of the extension. + :type type: str + :param type_handler_version: Specifies the version of the extension. Specifies the version of + the extension. If this element is not specified or an asterisk (*) is used as the value, the + latest version of the extension is used. If the value is specified with a major version number + and an asterisk as the minor version number (X.), the latest minor version of the specified + major version is selected. If a major version number and a minor version number are specified + (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade + is performed on the role instance. + :type type_handler_version: str + :param auto_upgrade_minor_version: Explicitly specify whether platform can automatically + upgrade typeHandlerVersion to higher minor versions when they become available. + :type auto_upgrade_minor_version: bool + :param settings: Public settings for the extension. For JSON extensions, this is the JSON + settings for the extension. For XML Extension (like RDP), this is the XML setting for the + extension. + :type settings: str + :param protected_settings: Protected settings for the extension which are encrypted before sent + to the role instance. + :type protected_settings: str + :param protected_settings_from_key_vault: + :type protected_settings_from_key_vault: + ~azure.mgmt.compute.v2021_03_01.models.CloudServiceVaultAndSecretReference + :param force_update_tag: Tag to force apply the provided public and protected settings. + Changing the tag value allows for re-running the extension without changing any of the public + or protected settings. + If forceUpdateTag is not changed, updates to public or protected settings would still be + applied by the handler. + If neither forceUpdateTag nor any of public or protected settings change, extension would flow + to the role instance with the same sequence-number, and + it is up to handler implementation whether to re-run it or not. + :type force_update_tag: str + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param roles_applied_to: Optional list of roles to apply this extension. If property is not + specified or '*' is specified, extension is applied to all roles in the cloud service. + :type roles_applied_to: list[str] + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'autoUpgradeMinorVersion', 'type': 'bool'}, + 'settings': {'key': 'settings', 'type': 'str'}, + 'protected_settings': {'key': 'protectedSettings', 'type': 'str'}, + 'protected_settings_from_key_vault': {'key': 'protectedSettingsFromKeyVault', 'type': 'CloudServiceVaultAndSecretReference'}, + 'force_update_tag': {'key': 'forceUpdateTag', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'roles_applied_to': {'key': 'rolesAppliedTo', 'type': '[str]'}, + } + + def __init__( + self, + *, + publisher: Optional[str] = None, + type: Optional[str] = None, + type_handler_version: Optional[str] = None, + auto_upgrade_minor_version: Optional[bool] = None, + settings: Optional[str] = None, + protected_settings: Optional[str] = None, + protected_settings_from_key_vault: Optional["CloudServiceVaultAndSecretReference"] = None, + force_update_tag: Optional[str] = None, + roles_applied_to: Optional[List[str]] = None, + **kwargs + ): + super(CloudServiceExtensionProperties, self).__init__(**kwargs) + self.publisher = publisher + self.type = type + self.type_handler_version = type_handler_version + self.auto_upgrade_minor_version = auto_upgrade_minor_version + self.settings = settings + self.protected_settings = protected_settings + self.protected_settings_from_key_vault = protected_settings_from_key_vault + self.force_update_tag = force_update_tag + self.provisioning_state = None + self.roles_applied_to = roles_applied_to + + +class CloudServiceInstanceView(msrest.serialization.Model): + """InstanceView of CloudService as a whole. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param role_instance: Instance view statuses. + :type role_instance: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatusesSummary + :ivar sdk_version: The version of the SDK that was used to generate the package for the cloud + service. + :vartype sdk_version: str + :ivar private_ids: Specifies a list of unique identifiers generated internally for the cloud + service. :code:`
    `:code:`
    ` NOTE: If you are using Azure Diagnostics extension, this + property can be used as 'DeploymentId' for querying details. + :vartype private_ids: list[str] + :ivar statuses: + :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.ResourceInstanceViewStatus] + """ + + _validation = { + 'sdk_version': {'readonly': True}, + 'private_ids': {'readonly': True}, + 'statuses': {'readonly': True}, + } + + _attribute_map = { + 'role_instance': {'key': 'roleInstance', 'type': 'InstanceViewStatusesSummary'}, + 'sdk_version': {'key': 'sdkVersion', 'type': 'str'}, + 'private_ids': {'key': 'privateIds', 'type': '[str]'}, + 'statuses': {'key': 'statuses', 'type': '[ResourceInstanceViewStatus]'}, + } + + def __init__( + self, + *, + role_instance: Optional["InstanceViewStatusesSummary"] = None, + **kwargs + ): + super(CloudServiceInstanceView, self).__init__(**kwargs) + self.role_instance = role_instance + self.sdk_version = None + self.private_ids = None + self.statuses = None + + +class CloudServiceListResult(msrest.serialization.Model): + """CloudServiceListResult. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.CloudService] + :param next_link: + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[CloudService]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["CloudService"], + next_link: Optional[str] = None, + **kwargs + ): + super(CloudServiceListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class CloudServiceNetworkProfile(msrest.serialization.Model): + """Network Profile for the cloud service. + + :param load_balancer_configurations: List of Load balancer configurations. Cloud service can + have up to two load balancer configurations, corresponding to a Public Load Balancer and an + Internal Load Balancer. + :type load_balancer_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.LoadBalancerConfiguration] + :param swappable_cloud_service: The id reference of the cloud service containing the target IP + with which the subject cloud service can perform a swap. This property cannot be updated once + it is set. The swappable cloud service referred by this id must be present otherwise an error + will be thrown. + :type swappable_cloud_service: ~azure.mgmt.compute.v2021_03_01.models.SubResource + """ + + _attribute_map = { + 'load_balancer_configurations': {'key': 'loadBalancerConfigurations', 'type': '[LoadBalancerConfiguration]'}, + 'swappable_cloud_service': {'key': 'swappableCloudService', 'type': 'SubResource'}, + } + + def __init__( + self, + *, + load_balancer_configurations: Optional[List["LoadBalancerConfiguration"]] = None, + swappable_cloud_service: Optional["SubResource"] = None, + **kwargs + ): + super(CloudServiceNetworkProfile, self).__init__(**kwargs) + self.load_balancer_configurations = load_balancer_configurations + self.swappable_cloud_service = swappable_cloud_service + + +class CloudServiceOsProfile(msrest.serialization.Model): + """Describes the OS profile for the cloud service. + + :param secrets: Specifies set of certificates that should be installed onto the role instances. + :type secrets: list[~azure.mgmt.compute.v2021_03_01.models.CloudServiceVaultSecretGroup] + """ + + _attribute_map = { + 'secrets': {'key': 'secrets', 'type': '[CloudServiceVaultSecretGroup]'}, + } + + def __init__( + self, + *, + secrets: Optional[List["CloudServiceVaultSecretGroup"]] = None, + **kwargs + ): + super(CloudServiceOsProfile, self).__init__(**kwargs) + self.secrets = secrets + + +class CloudServiceProperties(msrest.serialization.Model): + """Cloud service properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param package_url: Specifies a URL that refers to the location of the service package in the + Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage + account. + This is a write-only property and is not returned in GET calls. + :type package_url: str + :param configuration: Specifies the XML service configuration (.cscfg) for the cloud service. + :type configuration: str + :param configuration_url: Specifies a URL that refers to the location of the service + configuration in the Blob service. The service package URL can be Shared Access Signature + (SAS) URI from any storage account. + This is a write-only property and is not returned in GET calls. + :type configuration_url: str + :param start_cloud_service: (Optional) Indicates whether to start the cloud service immediately + after it is created. The default value is ``true``. + If false, the service model is still deployed, but the code is not run immediately. Instead, + the service is PoweredOff until you call Start, at which time the service will be started. A + deployed service still incurs charges, even if it is poweredoff. + :type start_cloud_service: bool + :param allow_model_override: (Optional) Indicates whether the role sku properties + (roleProfile.roles.sku) specified in the model/template should override the role instance count + and vm size specified in the .cscfg and .csdef respectively. + The default value is ``false``. + :type allow_model_override: bool + :param upgrade_mode: Update mode for the cloud service. Role instances are allocated to update + domains when the service is deployed. Updates can be initiated manually in each update domain + or initiated automatically in all update domains. + Possible Values are :code:`
    `:code:`
    `\ **Auto**\ :code:`
    `:code:`
    `\ + **Manual** :code:`
    `:code:`
    `\ **Simultaneous**\ :code:`
    `:code:`
    ` + If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called + to apply the update. If set to Auto, the update is automatically applied to each update domain + in sequence. Possible values include: "Auto", "Manual", "Simultaneous". + :type upgrade_mode: str or ~azure.mgmt.compute.v2021_03_01.models.CloudServiceUpgradeMode + :param role_profile: Describes the role profile for the cloud service. + :type role_profile: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceRoleProfile + :param os_profile: Describes the OS profile for the cloud service. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceOsProfile + :param network_profile: Network Profile for the cloud service. + :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceNetworkProfile + :param extension_profile: Describes a cloud service extension profile. + :type extension_profile: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceExtensionProfile + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :ivar unique_id: The unique identifier for the cloud service. + :vartype unique_id: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'unique_id': {'readonly': True}, + } + + _attribute_map = { + 'package_url': {'key': 'packageUrl', 'type': 'str'}, + 'configuration': {'key': 'configuration', 'type': 'str'}, + 'configuration_url': {'key': 'configurationUrl', 'type': 'str'}, + 'start_cloud_service': {'key': 'startCloudService', 'type': 'bool'}, + 'allow_model_override': {'key': 'allowModelOverride', 'type': 'bool'}, + 'upgrade_mode': {'key': 'upgradeMode', 'type': 'str'}, + 'role_profile': {'key': 'roleProfile', 'type': 'CloudServiceRoleProfile'}, + 'os_profile': {'key': 'osProfile', 'type': 'CloudServiceOsProfile'}, + 'network_profile': {'key': 'networkProfile', 'type': 'CloudServiceNetworkProfile'}, + 'extension_profile': {'key': 'extensionProfile', 'type': 'CloudServiceExtensionProfile'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'unique_id': {'key': 'uniqueId', 'type': 'str'}, + } + + def __init__( + self, + *, + package_url: Optional[str] = None, + configuration: Optional[str] = None, + configuration_url: Optional[str] = None, + start_cloud_service: Optional[bool] = None, + allow_model_override: Optional[bool] = None, + upgrade_mode: Optional[Union[str, "CloudServiceUpgradeMode"]] = None, + role_profile: Optional["CloudServiceRoleProfile"] = None, + os_profile: Optional["CloudServiceOsProfile"] = None, + network_profile: Optional["CloudServiceNetworkProfile"] = None, + extension_profile: Optional["CloudServiceExtensionProfile"] = None, + **kwargs + ): + super(CloudServiceProperties, self).__init__(**kwargs) + self.package_url = package_url + self.configuration = configuration + self.configuration_url = configuration_url + self.start_cloud_service = start_cloud_service + self.allow_model_override = allow_model_override + self.upgrade_mode = upgrade_mode + self.role_profile = role_profile + self.os_profile = os_profile + self.network_profile = network_profile + self.extension_profile = extension_profile + self.provisioning_state = None + self.unique_id = None + + +class CloudServiceRole(msrest.serialization.Model): + """Describes a role of the cloud service. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :param sku: Describes the cloud service role sku. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceRoleSku + :param properties: + :type properties: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceRoleProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'CloudServiceRoleSku'}, + 'properties': {'key': 'properties', 'type': 'CloudServiceRoleProperties'}, + } + + def __init__( + self, + *, + sku: Optional["CloudServiceRoleSku"] = None, + properties: Optional["CloudServiceRoleProperties"] = None, + **kwargs + ): + super(CloudServiceRole, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = None + self.sku = sku + self.properties = properties + + +class CloudServiceRoleListResult(msrest.serialization.Model): + """CloudServiceRoleListResult. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.CloudServiceRole] + :param next_link: + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[CloudServiceRole]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["CloudServiceRole"], + next_link: Optional[str] = None, + **kwargs + ): + super(CloudServiceRoleListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class CloudServiceRoleProfile(msrest.serialization.Model): + """Describes the role profile for the cloud service. + + :param roles: List of roles for the cloud service. + :type roles: list[~azure.mgmt.compute.v2021_03_01.models.CloudServiceRoleProfileProperties] + """ + + _attribute_map = { + 'roles': {'key': 'roles', 'type': '[CloudServiceRoleProfileProperties]'}, + } + + def __init__( + self, + *, + roles: Optional[List["CloudServiceRoleProfileProperties"]] = None, + **kwargs + ): + super(CloudServiceRoleProfile, self).__init__(**kwargs) + self.roles = roles + + +class CloudServiceRoleProfileProperties(msrest.serialization.Model): + """Describes the role properties. + + :param name: Resource name. + :type name: str + :param sku: Describes the cloud service role sku. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceRoleSku + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'CloudServiceRoleSku'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + sku: Optional["CloudServiceRoleSku"] = None, + **kwargs + ): + super(CloudServiceRoleProfileProperties, self).__init__(**kwargs) + self.name = name + self.sku = sku + + +class CloudServiceRoleProperties(msrest.serialization.Model): + """CloudServiceRoleProperties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar unique_id: Specifies the ID which uniquely identifies a cloud service role. + :vartype unique_id: str + """ + + _validation = { + 'unique_id': {'readonly': True}, + } + + _attribute_map = { + 'unique_id': {'key': 'uniqueId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(CloudServiceRoleProperties, self).__init__(**kwargs) + self.unique_id = None + + +class CloudServiceRoleSku(msrest.serialization.Model): + """Describes the cloud service role sku. + + :param name: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud + service is currently on, you need to delete and recreate the cloud service or move back to the + old sku. + :type name: str + :param tier: Specifies the tier of the cloud service. Possible Values are :code:`
    `:code:`
    ` **Standard** :code:`
    `:code:`
    ` **Basic**. + :type tier: str + :param capacity: Specifies the number of role instances in the cloud service. + :type capacity: long + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'long'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + tier: Optional[str] = None, + capacity: Optional[int] = None, + **kwargs + ): + super(CloudServiceRoleSku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.capacity = capacity + + +class CloudServiceUpdate(msrest.serialization.Model): + """CloudServiceUpdate. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(CloudServiceUpdate, self).__init__(**kwargs) + self.tags = tags + + +class CloudServiceVaultAndSecretReference(msrest.serialization.Model): + """CloudServiceVaultAndSecretReference. + + :param source_vault: + :type source_vault: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param secret_url: + :type secret_url: str + """ + + _attribute_map = { + 'source_vault': {'key': 'sourceVault', 'type': 'SubResource'}, + 'secret_url': {'key': 'secretUrl', 'type': 'str'}, + } + + def __init__( + self, + *, + source_vault: Optional["SubResource"] = None, + secret_url: Optional[str] = None, + **kwargs + ): + super(CloudServiceVaultAndSecretReference, self).__init__(**kwargs) + self.source_vault = source_vault + self.secret_url = secret_url + + +class CloudServiceVaultCertificate(msrest.serialization.Model): + """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. + + :param certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as + a secret. + :type certificate_url: str + """ + + _attribute_map = { + 'certificate_url': {'key': 'certificateUrl', 'type': 'str'}, + } + + def __init__( + self, + *, + certificate_url: Optional[str] = None, + **kwargs + ): + super(CloudServiceVaultCertificate, self).__init__(**kwargs) + self.certificate_url = certificate_url + + +class CloudServiceVaultSecretGroup(msrest.serialization.Model): + """Describes a set of certificates which are all in the same Key Vault. + + :param source_vault: The relative URL of the Key Vault containing all of the certificates in + VaultCertificates. + :type source_vault: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param vault_certificates: The list of key vault references in SourceVault which contain + certificates. + :type vault_certificates: + list[~azure.mgmt.compute.v2021_03_01.models.CloudServiceVaultCertificate] + """ + + _attribute_map = { + 'source_vault': {'key': 'sourceVault', 'type': 'SubResource'}, + 'vault_certificates': {'key': 'vaultCertificates', 'type': '[CloudServiceVaultCertificate]'}, + } + + def __init__( + self, + *, + source_vault: Optional["SubResource"] = None, + vault_certificates: Optional[List["CloudServiceVaultCertificate"]] = None, + **kwargs + ): + super(CloudServiceVaultSecretGroup, self).__init__(**kwargs) + self.source_vault = source_vault + self.vault_certificates = vault_certificates + + +class ComputeOperationListResult(msrest.serialization.Model): + """The List Compute Operation operation response. + + 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.v2021_03_01.models.ComputeOperationValue] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ComputeOperationValue]'}, + } + + def __init__( + self, + **kwargs + ): + super(ComputeOperationListResult, self).__init__(**kwargs) + self.value = None + + +class ComputeOperationValue(msrest.serialization.Model): + """Describes the properties of a Compute Operation value. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar origin: The origin of the compute operation. + :vartype origin: str + :ivar name: The name of the compute operation. + :vartype name: str + :ivar operation: The display name of the compute operation. + :vartype operation: str + :ivar resource: The display name of the resource the operation applies to. + :vartype resource: str + :ivar description: The description of the operation. + :vartype description: str + :ivar provider: The resource provider for the operation. + :vartype provider: str + """ + + _validation = { + 'origin': {'readonly': True}, + 'name': {'readonly': True}, + 'operation': {'readonly': True}, + 'resource': {'readonly': True}, + 'description': {'readonly': True}, + 'provider': {'readonly': True}, + } + + _attribute_map = { + 'origin': {'key': 'origin', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation': {'key': 'display.operation', 'type': 'str'}, + 'resource': {'key': 'display.resource', 'type': 'str'}, + 'description': {'key': 'display.description', 'type': 'str'}, + 'provider': {'key': 'display.provider', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ComputeOperationValue, self).__init__(**kwargs) + self.origin = None + self.name = None + self.operation = None + self.resource = None + self.description = None + self.provider = None + + +class DataDisk(msrest.serialization.Model): + """Describes a data disk. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param lun: Required. 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. + :type lun: int + :param name: The disk name. + :type name: str + :param vhd: The virtual hard disk. + :type vhd: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param 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. + :type image: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or + disabled on the disk. + :type write_accelerator_enabled: bool + :param create_option: Required. Specifies how the virtual machine should be + created.:code:`
    `:code:`
    ` Possible values are::code:`
    `:code:`
    ` **Attach** \u2013 + This value is used when you are using a specialized disk to create the virtual + machine.:code:`
    `:code:`
    ` **FromImage** \u2013 This value is used when you are using an + image to create the virtual machine. If you are using a platform image, you also use the + imageReference element described above. If you are using a marketplace image, you also use the + plan element previously described. Possible values include: "FromImage", "Empty", "Attach". + :type create_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskCreateOptionTypes + :param 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:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param managed_disk: The managed disk parameters. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.ManagedDiskParameters + :param to_be_detached: Specifies whether the data disk is in process of detachment from the + VirtualMachine/VirtualMachineScaleset. + :type to_be_detached: bool + :ivar disk_iops_read_write: Specifies the Read-Write IOPS for the managed disk when + StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be + updated only via updates to the VirtualMachine Scale Set. + :vartype disk_iops_read_write: long + :ivar disk_m_bps_read_write: Specifies the bandwidth in MB per second for the managed disk when + StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be + updated only via updates to the VirtualMachine Scale Set. + :vartype disk_m_bps_read_write: long + :param detach_option: Specifies the detach behavior to be used while detaching a disk or which + is already in the process of detachment from the virtual machine. Supported values: + **ForceDetach**. :code:`
    `:code:`
    ` detachOption: **ForceDetach** is applicable only for + managed data disks. If a previous detachment attempt of the data disk did not complete due to + an unexpected failure from the virtual machine and the disk is still not released then use + force-detach as a last resort option to detach the disk forcibly from the VM. All writes might + not have been flushed when using this detach behavior. :code:`
    `:code:`
    ` This feature is + still in preview mode and is not supported for VirtualMachineScaleSet. To force-detach a data + disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. Possible + values include: "ForceDetach". + :type detach_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskDetachOptionTypes + :param delete_option: Specifies whether data disk should be deleted or detached upon VM + deletion.:code:`
    `:code:`
    ` Possible values: :code:`
    `:code:`
    ` **Delete** If this + value is used, the data disk is deleted when VM is deleted.:code:`
    `:code:`
    ` **Detach** + If this value is used, the data disk is retained after VM is deleted.:code:`
    `:code:`
    ` + The default value is set to **detach**. Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskDeleteOptionTypes + """ + + _validation = { + 'lun': {'required': True}, + 'create_option': {'required': True}, + 'disk_iops_read_write': {'readonly': True}, + 'disk_m_bps_read_write': {'readonly': True}, + } + + _attribute_map = { + 'lun': {'key': 'lun', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'vhd': {'key': 'vhd', 'type': 'VirtualHardDisk'}, + 'image': {'key': 'image', 'type': 'VirtualHardDisk'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'}, + 'create_option': {'key': 'createOption', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'}, + 'to_be_detached': {'key': 'toBeDetached', 'type': 'bool'}, + 'disk_iops_read_write': {'key': 'diskIOPSReadWrite', 'type': 'long'}, + 'disk_m_bps_read_write': {'key': 'diskMBpsReadWrite', 'type': 'long'}, + 'detach_option': {'key': 'detachOption', 'type': 'str'}, + 'delete_option': {'key': 'deleteOption', 'type': 'str'}, + } + + def __init__( + self, + *, + lun: int, + create_option: Union[str, "DiskCreateOptionTypes"], + name: Optional[str] = None, + vhd: Optional["VirtualHardDisk"] = None, + image: Optional["VirtualHardDisk"] = None, + caching: Optional[Union[str, "CachingTypes"]] = None, + write_accelerator_enabled: Optional[bool] = None, + disk_size_gb: Optional[int] = None, + managed_disk: Optional["ManagedDiskParameters"] = None, + to_be_detached: Optional[bool] = None, + detach_option: Optional[Union[str, "DiskDetachOptionTypes"]] = None, + delete_option: Optional[Union[str, "DiskDeleteOptionTypes"]] = None, + **kwargs + ): + super(DataDisk, self).__init__(**kwargs) + self.lun = lun + self.name = name + self.vhd = vhd + self.image = image + self.caching = caching + self.write_accelerator_enabled = write_accelerator_enabled + self.create_option = create_option + self.disk_size_gb = disk_size_gb + self.managed_disk = managed_disk + self.to_be_detached = to_be_detached + self.disk_iops_read_write = None + self.disk_m_bps_read_write = None + self.detach_option = detach_option + self.delete_option = delete_option + + +class DataDiskImage(msrest.serialization.Model): + """Contains the data disk images information. + + Variables are only populated by the server, and will be ignored when sending a request. + + :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. + :vartype lun: int + """ + + _validation = { + 'lun': {'readonly': True}, + } + + _attribute_map = { + 'lun': {'key': 'lun', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(DataDiskImage, self).__init__(**kwargs) + self.lun = None + + +class DedicatedHost(Resource): + """Specifies information about the Dedicated host. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param sku: Required. 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. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. + :type platform_fault_domain: int + :param auto_replace_on_failure: Specifies whether the dedicated host should be replaced + automatically in case of a failure. The value is defaulted to 'true' when not provided. + :type auto_replace_on_failure: bool + :ivar host_id: A unique id generated and assigned to the dedicated host by the platform. + :code:`
    `:code:`
    ` Does 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.v2021_03_01.models.SubResourceReadOnly] + :param license_type: Specifies the software license type that will be applied to the VMs + deployed on the dedicated host. :code:`
    `:code:`
    ` Possible values are: + :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **Windows_Server_Hybrid** + :code:`
    `:code:`
    ` **Windows_Server_Perpetual** :code:`
    `:code:`
    ` Default: + **None**. Possible values include: "None", "Windows_Server_Hybrid", "Windows_Server_Perpetual". + :type license_type: str or ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.DedicatedHostInstanceView + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'sku': {'required': True}, + 'platform_fault_domain': {'minimum': 0}, + 'host_id': {'readonly': True}, + 'virtual_machines': {'readonly': True}, + 'provisioning_time': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'platform_fault_domain': {'key': 'properties.platformFaultDomain', 'type': 'int'}, + 'auto_replace_on_failure': {'key': 'properties.autoReplaceOnFailure', 'type': 'bool'}, + 'host_id': {'key': 'properties.hostId', 'type': 'str'}, + 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResourceReadOnly]'}, + 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'provisioning_time': {'key': 'properties.provisioningTime', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'DedicatedHostInstanceView'}, + } + + def __init__( + self, + *, + location: str, + sku: "Sku", + tags: Optional[Dict[str, str]] = None, + platform_fault_domain: Optional[int] = None, + auto_replace_on_failure: Optional[bool] = None, + license_type: Optional[Union[str, "DedicatedHostLicenseTypes"]] = None, + **kwargs + ): + super(DedicatedHost, self).__init__(location=location, tags=tags, **kwargs) + self.sku = sku + self.platform_fault_domain = platform_fault_domain + self.auto_replace_on_failure = auto_replace_on_failure + self.host_id = None + self.virtual_machines = None + self.license_type = license_type + self.provisioning_time = None + self.provisioning_state = None + self.instance_view = None + + +class DedicatedHostAllocatableVM(msrest.serialization.Model): + """Represents the dedicated host unutilized capacity in terms of a specific VM size. + + :param vm_size: VM size in terms of which the unutilized capacity is represented. + :type vm_size: str + :param count: Maximum number of VMs of size vmSize that can fit in the dedicated host's + remaining capacity. + :type count: float + """ + + _attribute_map = { + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'float'}, + } + + def __init__( + self, + *, + vm_size: Optional[str] = None, + count: Optional[float] = None, + **kwargs + ): + super(DedicatedHostAllocatableVM, self).__init__(**kwargs) + self.vm_size = vm_size + self.count = count + + +class DedicatedHostAvailableCapacity(msrest.serialization.Model): + """Dedicated host unutilized capacity. + + :param 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. + :type allocatable_v_ms: list[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostAllocatableVM] + """ + + _attribute_map = { + 'allocatable_v_ms': {'key': 'allocatableVMs', 'type': '[DedicatedHostAllocatableVM]'}, + } + + def __init__( + self, + *, + allocatable_v_ms: Optional[List["DedicatedHostAllocatableVM"]] = None, + **kwargs + ): + super(DedicatedHostAvailableCapacity, self).__init__(**kwargs) + self.allocatable_v_ms = allocatable_v_ms + + +class DedicatedHostGroup(Resource): + """Specifies information about the dedicated host group that the dedicated hosts should be assigned to. :code:`
    `:code:`
    ` Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param zones: Availability Zone to use for this host group. Only single zone is supported. The + zone can be assigned only during creation. If not provided, the group supports all zones in the + region. If provided, enforces each host in the group to be in the same zone. + :type zones: list[str] + :param platform_fault_domain_count: Number of fault domains that the host group can span. + :type 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.v2021_03_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.v2021_03_01.models.DedicatedHostGroupInstanceView + :param 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 + group. The value is defaulted to 'false' when not provided. :code:`
    `:code:`
    `Minimum + api-version: 2020-06-01. + :type support_automatic_placement: bool + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'platform_fault_domain_count': {'minimum': 1}, + 'hosts': {'readonly': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, + 'hosts': {'key': 'properties.hosts', 'type': '[SubResourceReadOnly]'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'DedicatedHostGroupInstanceView'}, + 'support_automatic_placement': {'key': 'properties.supportAutomaticPlacement', 'type': 'bool'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + zones: Optional[List[str]] = None, + platform_fault_domain_count: Optional[int] = None, + support_automatic_placement: Optional[bool] = None, + **kwargs + ): + super(DedicatedHostGroup, self).__init__(location=location, tags=tags, **kwargs) + self.zones = zones + self.platform_fault_domain_count = platform_fault_domain_count + self.hosts = None + self.instance_view = None + self.support_automatic_placement = support_automatic_placement + + +class DedicatedHostGroupInstanceView(msrest.serialization.Model): + """DedicatedHostGroupInstanceView. + + :param hosts: List of instance view of the dedicated hosts under the dedicated host group. + :type hosts: list[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostInstanceViewWithName] + """ + + _attribute_map = { + 'hosts': {'key': 'hosts', 'type': '[DedicatedHostInstanceViewWithName]'}, + } + + def __init__( + self, + *, + hosts: Optional[List["DedicatedHostInstanceViewWithName"]] = None, + **kwargs + ): + super(DedicatedHostGroupInstanceView, self).__init__(**kwargs) + self.hosts = hosts + + +class DedicatedHostGroupListResult(msrest.serialization.Model): + """The List Dedicated Host Group with resource group response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of dedicated host groups. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroup] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[DedicatedHostGroup]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["DedicatedHostGroup"], + next_link: Optional[str] = None, + **kwargs + ): + super(DedicatedHostGroupListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class DedicatedHostGroupUpdate(UpdateResource): + """Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param zones: Availability Zone to use for this host group. Only single zone is supported. The + zone can be assigned only during creation. If not provided, the group supports all zones in the + region. If provided, enforces each host in the group to be in the same zone. + :type zones: list[str] + :param platform_fault_domain_count: Number of fault domains that the host group can span. + :type 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.v2021_03_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.v2021_03_01.models.DedicatedHostGroupInstanceView + :param 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 + group. The value is defaulted to 'false' when not provided. :code:`
    `:code:`
    `Minimum + api-version: 2020-06-01. + :type support_automatic_placement: bool + """ + + _validation = { + 'platform_fault_domain_count': {'minimum': 1}, + 'hosts': {'readonly': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, + 'hosts': {'key': 'properties.hosts', 'type': '[SubResourceReadOnly]'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'DedicatedHostGroupInstanceView'}, + 'support_automatic_placement': {'key': 'properties.supportAutomaticPlacement', 'type': 'bool'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + zones: Optional[List[str]] = None, + platform_fault_domain_count: Optional[int] = None, + support_automatic_placement: Optional[bool] = None, + **kwargs + ): + super(DedicatedHostGroupUpdate, self).__init__(tags=tags, **kwargs) + self.zones = zones + self.platform_fault_domain_count = platform_fault_domain_count + self.hosts = None + self.instance_view = None + self.support_automatic_placement = support_automatic_placement + + +class DedicatedHostInstanceView(msrest.serialization.Model): + """The instance view of a dedicated host. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar asset_id: Specifies the unique id of the dedicated physical machine on which the + dedicated host resides. + :vartype asset_id: str + :param available_capacity: Unutilized capacity of the dedicated host. + :type available_capacity: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostAvailableCapacity + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _validation = { + 'asset_id': {'readonly': True}, + } + + _attribute_map = { + 'asset_id': {'key': 'assetId', 'type': 'str'}, + 'available_capacity': {'key': 'availableCapacity', 'type': 'DedicatedHostAvailableCapacity'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + *, + available_capacity: Optional["DedicatedHostAvailableCapacity"] = None, + statuses: Optional[List["InstanceViewStatus"]] = None, + **kwargs + ): + super(DedicatedHostInstanceView, self).__init__(**kwargs) + self.asset_id = None + self.available_capacity = available_capacity + self.statuses = statuses + + +class DedicatedHostInstanceViewWithName(DedicatedHostInstanceView): + """The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar asset_id: Specifies the unique id of the dedicated physical machine on which the + dedicated host resides. + :vartype asset_id: str + :param available_capacity: Unutilized capacity of the dedicated host. + :type available_capacity: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostAvailableCapacity + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + :ivar name: The name of the dedicated host. + :vartype name: str + """ + + _validation = { + 'asset_id': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'asset_id': {'key': 'assetId', 'type': 'str'}, + 'available_capacity': {'key': 'availableCapacity', 'type': 'DedicatedHostAvailableCapacity'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + *, + available_capacity: Optional["DedicatedHostAvailableCapacity"] = None, + statuses: Optional[List["InstanceViewStatus"]] = None, + **kwargs + ): + super(DedicatedHostInstanceViewWithName, self).__init__(available_capacity=available_capacity, statuses=statuses, **kwargs) + self.name = None + + +class DedicatedHostListResult(msrest.serialization.Model): + """The list dedicated host operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of dedicated hosts. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.DedicatedHost] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[DedicatedHost]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["DedicatedHost"], + next_link: Optional[str] = None, + **kwargs + ): + super(DedicatedHostListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class DedicatedHostUpdate(UpdateResource): + """Specifies information about the dedicated host. Only tags, autoReplaceOnFailure and licenseType may be updated. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param platform_fault_domain: Fault domain of the dedicated host within a dedicated host group. + :type platform_fault_domain: int + :param auto_replace_on_failure: Specifies whether the dedicated host should be replaced + automatically in case of a failure. The value is defaulted to 'true' when not provided. + :type auto_replace_on_failure: bool + :ivar host_id: A unique id generated and assigned to the dedicated host by the platform. + :code:`
    `:code:`
    ` Does 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.v2021_03_01.models.SubResourceReadOnly] + :param license_type: Specifies the software license type that will be applied to the VMs + deployed on the dedicated host. :code:`
    `:code:`
    ` Possible values are: + :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **Windows_Server_Hybrid** + :code:`
    `:code:`
    ` **Windows_Server_Perpetual** :code:`
    `:code:`
    ` Default: + **None**. Possible values include: "None", "Windows_Server_Hybrid", "Windows_Server_Perpetual". + :type license_type: str or ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.DedicatedHostInstanceView + """ + + _validation = { + 'platform_fault_domain': {'minimum': 0}, + 'host_id': {'readonly': True}, + 'virtual_machines': {'readonly': True}, + 'provisioning_time': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'platform_fault_domain': {'key': 'properties.platformFaultDomain', 'type': 'int'}, + 'auto_replace_on_failure': {'key': 'properties.autoReplaceOnFailure', 'type': 'bool'}, + 'host_id': {'key': 'properties.hostId', 'type': 'str'}, + 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResourceReadOnly]'}, + 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'provisioning_time': {'key': 'properties.provisioningTime', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'DedicatedHostInstanceView'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + platform_fault_domain: Optional[int] = None, + auto_replace_on_failure: Optional[bool] = None, + license_type: Optional[Union[str, "DedicatedHostLicenseTypes"]] = None, + **kwargs + ): + super(DedicatedHostUpdate, self).__init__(tags=tags, **kwargs) + self.platform_fault_domain = platform_fault_domain + self.auto_replace_on_failure = auto_replace_on_failure + self.host_id = None + self.virtual_machines = None + self.license_type = license_type + self.provisioning_time = None + self.provisioning_state = None + self.instance_view = None + + +class DiagnosticsProfile(msrest.serialization.Model): + """Specifies the boot diagnostic settings state. :code:`
    `:code:`
    `Minimum api-version: 2015-06-15. + + :param boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view + Console Output and Screenshot to diagnose VM status. :code:`
    `:code:`
    ` You can easily + view the output of your console log. :code:`
    `:code:`
    ` Azure also enables you to see a + screenshot of the VM from the hypervisor. + :type boot_diagnostics: ~azure.mgmt.compute.v2021_03_01.models.BootDiagnostics + """ + + _attribute_map = { + 'boot_diagnostics': {'key': 'bootDiagnostics', 'type': 'BootDiagnostics'}, + } + + def __init__( + self, + *, + boot_diagnostics: Optional["BootDiagnostics"] = None, + **kwargs + ): + super(DiagnosticsProfile, self).__init__(**kwargs) + self.boot_diagnostics = boot_diagnostics + + +class DiffDiskSettings(msrest.serialization.Model): + """Describes the parameters of ephemeral disk settings that can be specified for operating system disk. :code:`
    `:code:`
    ` NOTE: The ephemeral disk settings can only be specified for managed disk. + + :param option: Specifies the ephemeral disk settings for operating system disk. Possible values + include: "Local". + :type option: str or ~azure.mgmt.compute.v2021_03_01.models.DiffDiskOptions + :param placement: Specifies the ephemeral disk placement for operating system + disk.:code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **CacheDisk** + :code:`
    `:code:`
    ` **ResourceDisk** :code:`
    `:code:`
    ` Default: **CacheDisk** if + one is configured for the VM size otherwise **ResourceDisk** is used.:code:`
    `:code:`
    ` + Refer to VM size documentation for Windows VM at + https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at + https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a + cache disk. Possible values include: "CacheDisk", "ResourceDisk". + :type placement: str or ~azure.mgmt.compute.v2021_03_01.models.DiffDiskPlacement + """ + + _attribute_map = { + 'option': {'key': 'option', 'type': 'str'}, + 'placement': {'key': 'placement', 'type': 'str'}, + } + + def __init__( + self, + *, + option: Optional[Union[str, "DiffDiskOptions"]] = None, + placement: Optional[Union[str, "DiffDiskPlacement"]] = None, + **kwargs + ): + super(DiffDiskSettings, self).__init__(**kwargs) + self.option = option + self.placement = placement + + +class DisallowedConfiguration(msrest.serialization.Model): + """Specifies the disallowed configuration for a virtual machine image. + + :param vm_disk_type: VM disk types which are disallowed. Possible values include: "None", + "Unmanaged". + :type vm_disk_type: str or ~azure.mgmt.compute.v2021_03_01.models.VmDiskTypes + """ + + _attribute_map = { + 'vm_disk_type': {'key': 'vmDiskType', 'type': 'str'}, + } + + def __init__( + self, + *, + vm_disk_type: Optional[Union[str, "VmDiskTypes"]] = None, + **kwargs + ): + super(DisallowedConfiguration, self).__init__(**kwargs) + self.vm_disk_type = vm_disk_type + + +class SubResource(msrest.serialization.Model): + """SubResource. + + :param id: Resource Id. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): + super(SubResource, self).__init__(**kwargs) + self.id = id + + +class DiskEncryptionSetParameters(SubResource): + """Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. :code:`
    `:code:`
    ` NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. + + :param id: Resource Id. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): + super(DiskEncryptionSetParameters, self).__init__(id=id, **kwargs) + + +class DiskEncryptionSettings(msrest.serialization.Model): + """Describes a Encryption Settings for a Disk. + + :param disk_encryption_key: Specifies the location of the disk encryption key, which is a Key + Vault Secret. + :type disk_encryption_key: ~azure.mgmt.compute.v2021_03_01.models.KeyVaultSecretReference + :param key_encryption_key: Specifies the location of the key encryption key in Key Vault. + :type key_encryption_key: ~azure.mgmt.compute.v2021_03_01.models.KeyVaultKeyReference + :param enabled: Specifies whether disk encryption should be enabled on the virtual machine. + :type enabled: bool + """ + + _attribute_map = { + 'disk_encryption_key': {'key': 'diskEncryptionKey', 'type': 'KeyVaultSecretReference'}, + 'key_encryption_key': {'key': 'keyEncryptionKey', 'type': 'KeyVaultKeyReference'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + } + + def __init__( + self, + *, + disk_encryption_key: Optional["KeyVaultSecretReference"] = None, + key_encryption_key: Optional["KeyVaultKeyReference"] = None, + enabled: Optional[bool] = None, + **kwargs + ): + super(DiskEncryptionSettings, self).__init__(**kwargs) + self.disk_encryption_key = disk_encryption_key + self.key_encryption_key = key_encryption_key + self.enabled = enabled + + +class DiskInstanceView(msrest.serialization.Model): + """The instance view of the disk. + + :param name: The disk name. + :type name: str + :param encryption_settings: Specifies the encryption settings for the OS Disk. + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type encryption_settings: list[~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSettings] + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'encryption_settings': {'key': 'encryptionSettings', 'type': '[DiskEncryptionSettings]'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + encryption_settings: Optional[List["DiskEncryptionSettings"]] = None, + statuses: Optional[List["InstanceViewStatus"]] = None, + **kwargs + ): + super(DiskInstanceView, self).__init__(**kwargs) + self.name = name + self.encryption_settings = encryption_settings + self.statuses = statuses + + +class ExtendedLocation(msrest.serialization.Model): + """The complex type of the extended location. + + :param name: The name of the extended location. + :type name: str + :param type: The type of the extended location. Possible values include: "EdgeZone". + :type type: str or ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocationTypes + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + type: Optional[Union[str, "ExtendedLocationTypes"]] = None, + **kwargs + ): + super(ExtendedLocation, self).__init__(**kwargs) + self.name = name + self.type = type + + +class Extension(msrest.serialization.Model): + """Describes a cloud service Extension. + + :param name: The name of the extension. + :type name: str + :param properties: Extension Properties. + :type properties: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceExtensionProperties + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'CloudServiceExtensionProperties'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + properties: Optional["CloudServiceExtensionProperties"] = None, + **kwargs + ): + super(Extension, self).__init__(**kwargs) + self.name = name + self.properties = properties + + +class HardwareProfile(msrest.serialization.Model): + """Specifies the hardware settings for the virtual machine. + + :param vm_size: Specifies the size of the virtual machine. :code:`
    `:code:`
    ` The enum + data type is currently deprecated and will be removed by December 23rd 2023. + :code:`
    `:code:`
    ` Recommended way to get the list of available sizes is using these + APIs: :code:`
    `:code:`
    ` `List all available virtual machine sizes in an availability set + `_ + :code:`
    `:code:`
    ` `List all available virtual machine sizes in a region + `_ :code:`
    `:code:`
    ` + `List all available virtual machine sizes for resizing + `_. For more + information about virtual machine sizes, see `Sizes for virtual machines + `_. :code:`
    `:code:`
    ` The + available VM sizes depend on region and availability set. Possible values include: "Basic_A0", + "Basic_A1", "Basic_A2", "Basic_A3", "Basic_A4", "Standard_A0", "Standard_A1", "Standard_A2", + "Standard_A3", "Standard_A4", "Standard_A5", "Standard_A6", "Standard_A7", "Standard_A8", + "Standard_A9", "Standard_A10", "Standard_A11", "Standard_A1_v2", "Standard_A2_v2", + "Standard_A4_v2", "Standard_A8_v2", "Standard_A2m_v2", "Standard_A4m_v2", "Standard_A8m_v2", + "Standard_B1s", "Standard_B1ms", "Standard_B2s", "Standard_B2ms", "Standard_B4ms", + "Standard_B8ms", "Standard_D1", "Standard_D2", "Standard_D3", "Standard_D4", "Standard_D11", + "Standard_D12", "Standard_D13", "Standard_D14", "Standard_D1_v2", "Standard_D2_v2", + "Standard_D3_v2", "Standard_D4_v2", "Standard_D5_v2", "Standard_D2_v3", "Standard_D4_v3", + "Standard_D8_v3", "Standard_D16_v3", "Standard_D32_v3", "Standard_D64_v3", "Standard_D2s_v3", + "Standard_D4s_v3", "Standard_D8s_v3", "Standard_D16s_v3", "Standard_D32s_v3", + "Standard_D64s_v3", "Standard_D11_v2", "Standard_D12_v2", "Standard_D13_v2", "Standard_D14_v2", + "Standard_D15_v2", "Standard_DS1", "Standard_DS2", "Standard_DS3", "Standard_DS4", + "Standard_DS11", "Standard_DS12", "Standard_DS13", "Standard_DS14", "Standard_DS1_v2", + "Standard_DS2_v2", "Standard_DS3_v2", "Standard_DS4_v2", "Standard_DS5_v2", "Standard_DS11_v2", + "Standard_DS12_v2", "Standard_DS13_v2", "Standard_DS14_v2", "Standard_DS15_v2", + "Standard_DS13-4_v2", "Standard_DS13-2_v2", "Standard_DS14-8_v2", "Standard_DS14-4_v2", + "Standard_E2_v3", "Standard_E4_v3", "Standard_E8_v3", "Standard_E16_v3", "Standard_E32_v3", + "Standard_E64_v3", "Standard_E2s_v3", "Standard_E4s_v3", "Standard_E8s_v3", "Standard_E16s_v3", + "Standard_E32s_v3", "Standard_E64s_v3", "Standard_E32-16_v3", "Standard_E32-8s_v3", + "Standard_E64-32s_v3", "Standard_E64-16s_v3", "Standard_F1", "Standard_F2", "Standard_F4", + "Standard_F8", "Standard_F16", "Standard_F1s", "Standard_F2s", "Standard_F4s", "Standard_F8s", + "Standard_F16s", "Standard_F2s_v2", "Standard_F4s_v2", "Standard_F8s_v2", "Standard_F16s_v2", + "Standard_F32s_v2", "Standard_F64s_v2", "Standard_F72s_v2", "Standard_G1", "Standard_G2", + "Standard_G3", "Standard_G4", "Standard_G5", "Standard_GS1", "Standard_GS2", "Standard_GS3", + "Standard_GS4", "Standard_GS5", "Standard_GS4-8", "Standard_GS4-4", "Standard_GS5-16", + "Standard_GS5-8", "Standard_H8", "Standard_H16", "Standard_H8m", "Standard_H16m", + "Standard_H16r", "Standard_H16mr", "Standard_L4s", "Standard_L8s", "Standard_L16s", + "Standard_L32s", "Standard_M64s", "Standard_M64ms", "Standard_M128s", "Standard_M128ms", + "Standard_M64-32ms", "Standard_M64-16ms", "Standard_M128-64ms", "Standard_M128-32ms", + "Standard_NC6", "Standard_NC12", "Standard_NC24", "Standard_NC24r", "Standard_NC6s_v2", + "Standard_NC12s_v2", "Standard_NC24s_v2", "Standard_NC24rs_v2", "Standard_NC6s_v3", + "Standard_NC12s_v3", "Standard_NC24s_v3", "Standard_NC24rs_v3", "Standard_ND6s", + "Standard_ND12s", "Standard_ND24s", "Standard_ND24rs", "Standard_NV6", "Standard_NV12", + "Standard_NV24". + :type vm_size: str or ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineSizeTypes + """ + + _attribute_map = { + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + } + + def __init__( + self, + *, + vm_size: Optional[Union[str, "VirtualMachineSizeTypes"]] = None, + **kwargs + ): + super(HardwareProfile, self).__init__(**kwargs) + self.vm_size = vm_size + + +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 must not exist. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param extended_location: The extended location of the Image. + :type extended_location: ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocation + :param source_virtual_machine: The source virtual machine from which Image is created. + :type source_virtual_machine: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: ~azure.mgmt.compute.v2021_03_01.models.ImageStorageProfile + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + :param 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. Possible values include: "V1", "V2". + :type hyper_v_generation: str or ~azure.mgmt.compute.v2021_03_01.models.HyperVGenerationTypes + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'source_virtual_machine': {'key': 'properties.sourceVirtualMachine', 'type': 'SubResource'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'ImageStorageProfile'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'hyper_v_generation': {'key': 'properties.hyperVGeneration', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + extended_location: Optional["ExtendedLocation"] = None, + source_virtual_machine: Optional["SubResource"] = None, + storage_profile: Optional["ImageStorageProfile"] = None, + hyper_v_generation: Optional[Union[str, "HyperVGenerationTypes"]] = None, + **kwargs + ): + super(Image, self).__init__(location=location, tags=tags, **kwargs) + self.extended_location = extended_location + self.source_virtual_machine = source_virtual_machine + self.storage_profile = storage_profile + self.provisioning_state = None + self.hyper_v_generation = hyper_v_generation + + +class ImageDisk(msrest.serialization.Model): + """Describes a image disk. + + :param snapshot: The snapshot. + :type snapshot: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param managed_disk: The managedDisk. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param blob_uri: The Virtual Hard Disk. + :type blob_uri: str + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param 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. :code:`
    `:code:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param storage_account_type: Specifies the storage account type for the managed disk. NOTE: + UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values + include: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", + "StandardSSD_ZRS". + :type storage_account_type: str or ~azure.mgmt.compute.v2021_03_01.models.StorageAccountTypes + :param disk_encryption_set: Specifies the customer managed disk encryption set resource id for + the managed image disk. + :type disk_encryption_set: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSetParameters + """ + + _attribute_map = { + 'snapshot': {'key': 'snapshot', 'type': 'SubResource'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'SubResource'}, + 'blob_uri': {'key': 'blobUri', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_encryption_set': {'key': 'diskEncryptionSet', 'type': 'DiskEncryptionSetParameters'}, + } + + def __init__( + self, + *, + snapshot: Optional["SubResource"] = None, + managed_disk: Optional["SubResource"] = None, + blob_uri: Optional[str] = None, + caching: Optional[Union[str, "CachingTypes"]] = None, + disk_size_gb: Optional[int] = None, + storage_account_type: Optional[Union[str, "StorageAccountTypes"]] = None, + disk_encryption_set: Optional["DiskEncryptionSetParameters"] = None, + **kwargs + ): + super(ImageDisk, self).__init__(**kwargs) + self.snapshot = snapshot + self.managed_disk = managed_disk + self.blob_uri = blob_uri + self.caching = caching + self.disk_size_gb = disk_size_gb + self.storage_account_type = storage_account_type + self.disk_encryption_set = disk_encryption_set + + +class ImageDataDisk(ImageDisk): + """Describes a data disk. + + All required parameters must be populated in order to send to Azure. + + :param snapshot: The snapshot. + :type snapshot: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param managed_disk: The managedDisk. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param blob_uri: The Virtual Hard Disk. + :type blob_uri: str + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param 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. :code:`
    `:code:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param storage_account_type: Specifies the storage account type for the managed disk. NOTE: + UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values + include: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", + "StandardSSD_ZRS". + :type storage_account_type: str or ~azure.mgmt.compute.v2021_03_01.models.StorageAccountTypes + :param disk_encryption_set: Specifies the customer managed disk encryption set resource id for + the managed image disk. + :type disk_encryption_set: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSetParameters + :param lun: Required. 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. + :type lun: int + """ + + _validation = { + 'lun': {'required': True}, + } + + _attribute_map = { + 'snapshot': {'key': 'snapshot', 'type': 'SubResource'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'SubResource'}, + 'blob_uri': {'key': 'blobUri', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_encryption_set': {'key': 'diskEncryptionSet', 'type': 'DiskEncryptionSetParameters'}, + 'lun': {'key': 'lun', 'type': 'int'}, + } + + def __init__( + self, + *, + lun: int, + snapshot: Optional["SubResource"] = None, + managed_disk: Optional["SubResource"] = None, + blob_uri: Optional[str] = None, + caching: Optional[Union[str, "CachingTypes"]] = None, + disk_size_gb: Optional[int] = None, + storage_account_type: Optional[Union[str, "StorageAccountTypes"]] = None, + disk_encryption_set: Optional["DiskEncryptionSetParameters"] = None, + **kwargs + ): + super(ImageDataDisk, self).__init__(snapshot=snapshot, managed_disk=managed_disk, blob_uri=blob_uri, caching=caching, disk_size_gb=disk_size_gb, storage_account_type=storage_account_type, disk_encryption_set=disk_encryption_set, **kwargs) + self.lun = lun + + +class ImageListResult(msrest.serialization.Model): + """The List Image operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of Images. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.Image] + :param next_link: The uri to fetch the next page of Images. Call ListNext() with this to fetch + the next page of Images. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Image]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["Image"], + next_link: Optional[str] = None, + **kwargs + ): + super(ImageListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class ImageOSDisk(ImageDisk): + """Describes an Operating System disk. + + All required parameters must be populated in order to send to Azure. + + :param snapshot: The snapshot. + :type snapshot: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param managed_disk: The managedDisk. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param blob_uri: The Virtual Hard Disk. + :type blob_uri: str + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param 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. :code:`
    `:code:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param storage_account_type: Specifies the storage account type for the managed disk. NOTE: + UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values + include: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", + "StandardSSD_ZRS". + :type storage_account_type: str or ~azure.mgmt.compute.v2021_03_01.models.StorageAccountTypes + :param disk_encryption_set: Specifies the customer managed disk encryption set resource id for + the managed image disk. + :type disk_encryption_set: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSetParameters + :param os_type: Required. 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. :code:`
    `:code:`
    ` Possible + values are: :code:`
    `:code:`
    ` **Windows** :code:`
    `:code:`
    ` **Linux**. Possible + values include: "Windows", "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + :param os_state: Required. The OS State. Possible values include: "Generalized", "Specialized". + :type os_state: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemStateTypes + """ + + _validation = { + 'os_type': {'required': True}, + 'os_state': {'required': True}, + } + + _attribute_map = { + 'snapshot': {'key': 'snapshot', 'type': 'SubResource'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'SubResource'}, + 'blob_uri': {'key': 'blobUri', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_encryption_set': {'key': 'diskEncryptionSet', 'type': 'DiskEncryptionSetParameters'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'os_state': {'key': 'osState', 'type': 'str'}, + } + + def __init__( + self, + *, + os_type: Union[str, "OperatingSystemTypes"], + os_state: Union[str, "OperatingSystemStateTypes"], + snapshot: Optional["SubResource"] = None, + managed_disk: Optional["SubResource"] = None, + blob_uri: Optional[str] = None, + caching: Optional[Union[str, "CachingTypes"]] = None, + disk_size_gb: Optional[int] = None, + storage_account_type: Optional[Union[str, "StorageAccountTypes"]] = None, + disk_encryption_set: Optional["DiskEncryptionSetParameters"] = None, + **kwargs + ): + super(ImageOSDisk, self).__init__(snapshot=snapshot, managed_disk=managed_disk, blob_uri=blob_uri, caching=caching, disk_size_gb=disk_size_gb, storage_account_type=storage_account_type, disk_encryption_set=disk_encryption_set, **kwargs) + self.os_type = os_type + self.os_state = os_state + + +class ImageReference(SubResource): + """Specifies information about the image to use. You can specify 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. NOTE: Image reference publisher and offer can only be set when you create the scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: Resource Id. + :type id: str + :param publisher: The image publisher. + :type publisher: str + :param offer: Specifies the offer of the platform image or marketplace image used to create the + virtual machine. + :type offer: str + :param sku: The image SKU. + :type sku: str + :param version: Specifies the version of the platform image or marketplace image used to create + the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and + Build are decimal numbers. Specify 'latest' to use the latest version of an image available at + deploy time. Even if you use 'latest', the VM image will not automatically update after deploy + time even if a new version becomes available. + :type version: str + :ivar exact_version: Specifies in decimal numbers, the version of platform image or marketplace + image used to create the virtual machine. This readonly field differs from 'version', only if + the value specified in 'version' field is 'latest'. + :vartype exact_version: str + """ + + _validation = { + 'exact_version': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'offer': {'key': 'offer', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'exact_version': {'key': 'exactVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + publisher: Optional[str] = None, + offer: Optional[str] = None, + sku: Optional[str] = None, + version: Optional[str] = None, + **kwargs + ): + super(ImageReference, self).__init__(id=id, **kwargs) + self.publisher = publisher + self.offer = offer + self.sku = sku + self.version = version + self.exact_version = None + + +class ImageStorageProfile(msrest.serialization.Model): + """Describes a storage profile. + + :param os_disk: Specifies information about the operating system disk used by the virtual + machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs + for Azure virtual machines + `_. + :type os_disk: ~azure.mgmt.compute.v2021_03_01.models.ImageOSDisk + :param 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 + `_. + :type data_disks: list[~azure.mgmt.compute.v2021_03_01.models.ImageDataDisk] + :param 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). + :type zone_resilient: bool + """ + + _attribute_map = { + 'os_disk': {'key': 'osDisk', 'type': 'ImageOSDisk'}, + 'data_disks': {'key': 'dataDisks', 'type': '[ImageDataDisk]'}, + 'zone_resilient': {'key': 'zoneResilient', 'type': 'bool'}, + } + + def __init__( + self, + *, + os_disk: Optional["ImageOSDisk"] = None, + data_disks: Optional[List["ImageDataDisk"]] = None, + zone_resilient: Optional[bool] = None, + **kwargs + ): + super(ImageStorageProfile, self).__init__(**kwargs) + self.os_disk = os_disk + self.data_disks = data_disks + self.zone_resilient = zone_resilient + + +class ImageUpdate(UpdateResource): + """The source user image virtual hard disk. Only tags may be updated. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param source_virtual_machine: The source virtual machine from which Image is created. + :type source_virtual_machine: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: ~azure.mgmt.compute.v2021_03_01.models.ImageStorageProfile + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + :param 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. Possible values include: "V1", "V2". + :type hyper_v_generation: str or ~azure.mgmt.compute.v2021_03_01.models.HyperVGenerationTypes + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source_virtual_machine': {'key': 'properties.sourceVirtualMachine', 'type': 'SubResource'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'ImageStorageProfile'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'hyper_v_generation': {'key': 'properties.hyperVGeneration', 'type': 'str'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + source_virtual_machine: Optional["SubResource"] = None, + storage_profile: Optional["ImageStorageProfile"] = None, + hyper_v_generation: Optional[Union[str, "HyperVGenerationTypes"]] = None, + **kwargs + ): + super(ImageUpdate, self).__init__(tags=tags, **kwargs) + self.source_virtual_machine = source_virtual_machine + self.storage_profile = storage_profile + self.provisioning_state = None + self.hyper_v_generation = hyper_v_generation + + +class InnerError(msrest.serialization.Model): + """Inner error details. + + :param exceptiontype: The exception type. + :type exceptiontype: str + :param errordetail: The internal error message or exception dump. + :type errordetail: str + """ + + _attribute_map = { + 'exceptiontype': {'key': 'exceptiontype', 'type': 'str'}, + 'errordetail': {'key': 'errordetail', 'type': 'str'}, + } + + def __init__( + self, + *, + exceptiontype: Optional[str] = None, + errordetail: Optional[str] = None, + **kwargs + ): + super(InnerError, self).__init__(**kwargs) + self.exceptiontype = exceptiontype + self.errordetail = errordetail + + +class InstanceSku(msrest.serialization.Model): + """InstanceSku. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The sku name. + :vartype name: str + :ivar tier: The tier of the cloud service role instance. + :vartype tier: str + """ + + _validation = { + 'name': {'readonly': True}, + 'tier': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(InstanceSku, self).__init__(**kwargs) + self.name = None + self.tier = None + + +class InstanceViewStatus(msrest.serialization.Model): + """Instance view status. + + :param code: The status code. + :type code: str + :param level: The level code. Possible values include: "Info", "Warning", "Error". + :type level: str or ~azure.mgmt.compute.v2021_03_01.models.StatusLevelTypes + :param display_status: The short localizable label for the status. + :type display_status: str + :param message: The detailed status message, including for alerts and error messages. + :type message: str + :param time: The time of the status. + :type time: ~datetime.datetime + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'level': {'key': 'level', 'type': 'str'}, + 'display_status': {'key': 'displayStatus', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'time': {'key': 'time', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + code: Optional[str] = None, + level: Optional[Union[str, "StatusLevelTypes"]] = None, + display_status: Optional[str] = None, + message: Optional[str] = None, + time: Optional[datetime.datetime] = None, + **kwargs + ): + super(InstanceViewStatus, self).__init__(**kwargs) + self.code = code + self.level = level + self.display_status = display_status + self.message = message + self.time = time + + +class InstanceViewStatusesSummary(msrest.serialization.Model): + """Instance view statuses. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar statuses_summary: + :vartype statuses_summary: list[~azure.mgmt.compute.v2021_03_01.models.StatusCodeCount] + """ + + _validation = { + 'statuses_summary': {'readonly': True}, + } + + _attribute_map = { + 'statuses_summary': {'key': 'statusesSummary', 'type': '[StatusCodeCount]'}, + } + + def __init__( + self, + **kwargs + ): + super(InstanceViewStatusesSummary, self).__init__(**kwargs) + self.statuses_summary = None + + +class KeyVaultKeyReference(msrest.serialization.Model): + """Describes a reference to Key Vault Key. + + All required parameters must be populated in order to send to Azure. + + :param key_url: Required. The URL referencing a key encryption key in Key Vault. + :type key_url: str + :param source_vault: Required. The relative URL of the Key Vault containing the key. + :type source_vault: ~azure.mgmt.compute.v2021_03_01.models.SubResource + """ + + _validation = { + 'key_url': {'required': True}, + 'source_vault': {'required': True}, + } + + _attribute_map = { + 'key_url': {'key': 'keyUrl', 'type': 'str'}, + 'source_vault': {'key': 'sourceVault', 'type': 'SubResource'}, + } + + def __init__( + self, + *, + key_url: str, + source_vault: "SubResource", + **kwargs + ): + super(KeyVaultKeyReference, self).__init__(**kwargs) + self.key_url = key_url + self.source_vault = source_vault + + +class KeyVaultSecretReference(msrest.serialization.Model): + """Describes a reference to Key Vault Secret. + + All required parameters must be populated in order to send to Azure. + + :param secret_url: Required. The URL referencing a secret in a Key Vault. + :type secret_url: str + :param source_vault: Required. The relative URL of the Key Vault containing the secret. + :type source_vault: ~azure.mgmt.compute.v2021_03_01.models.SubResource + """ + + _validation = { + 'secret_url': {'required': True}, + 'source_vault': {'required': True}, + } + + _attribute_map = { + 'secret_url': {'key': 'secretUrl', 'type': 'str'}, + 'source_vault': {'key': 'sourceVault', 'type': 'SubResource'}, + } + + def __init__( + self, + *, + secret_url: str, + source_vault: "SubResource", + **kwargs + ): + super(KeyVaultSecretReference, self).__init__(**kwargs) + self.secret_url = secret_url + self.source_vault = source_vault + + +class LastPatchInstallationSummary(msrest.serialization.Model): + """Describes the properties of the last installed patch summary. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", + or "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.compute.v2021_03_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 maintenance_window_exceeded: Describes whether the operation ran out of time before it + completed all its intended actions. + :vartype maintenance_window_exceeded: bool + :ivar not_selected_patch_count: The number of all available patches but not going to be + installed because it didn't match a classification or inclusion list entry. + :vartype not_selected_patch_count: int + :ivar excluded_patch_count: The number of all available patches but excluded explicitly by a + customer-specified exclusion list match. + :vartype excluded_patch_count: int + :ivar pending_patch_count: The number of all available patches expected to be installed over + the course of the patch installation operation. + :vartype pending_patch_count: int + :ivar installed_patch_count: The count of patches that successfully installed. + :vartype installed_patch_count: int + :ivar failed_patch_count: The count of patches that failed installation. + :vartype failed_patch_count: int + :ivar start_time: The UTC timestamp when the operation began. + :vartype start_time: ~datetime.datetime + :ivar last_modified_time: The UTC timestamp when the operation began. + :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.v2021_03_01.models.ApiError + """ + + _validation = { + 'status': {'readonly': True}, + 'installation_activity_id': {'readonly': True}, + 'maintenance_window_exceeded': {'readonly': True}, + 'not_selected_patch_count': {'readonly': True}, + 'excluded_patch_count': {'readonly': True}, + 'pending_patch_count': {'readonly': True}, + 'installed_patch_count': {'readonly': True}, + 'failed_patch_count': {'readonly': True}, + 'start_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'installation_activity_id': {'key': 'installationActivityId', 'type': 'str'}, + 'maintenance_window_exceeded': {'key': 'maintenanceWindowExceeded', 'type': 'bool'}, + 'not_selected_patch_count': {'key': 'notSelectedPatchCount', 'type': 'int'}, + 'excluded_patch_count': {'key': 'excludedPatchCount', 'type': 'int'}, + 'pending_patch_count': {'key': 'pendingPatchCount', 'type': 'int'}, + 'installed_patch_count': {'key': 'installedPatchCount', 'type': 'int'}, + 'failed_patch_count': {'key': 'failedPatchCount', 'type': 'int'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'ApiError'}, + } + + def __init__( + self, + **kwargs + ): + super(LastPatchInstallationSummary, self).__init__(**kwargs) + self.status = None + self.installation_activity_id = None + self.maintenance_window_exceeded = None + self.not_selected_patch_count = None + self.excluded_patch_count = None + self.pending_patch_count = None + self.installed_patch_count = None + self.failed_patch_count = None + self.start_time = None + self.last_modified_time = None + self.error = None + + +class LinuxConfiguration(msrest.serialization.Model): + """Specifies the Linux operating system settings on the virtual machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions `_. + + :param disable_password_authentication: Specifies whether password authentication should be + disabled. + :type disable_password_authentication: bool + :param ssh: Specifies the ssh key configuration for a Linux OS. + :type ssh: ~azure.mgmt.compute.v2021_03_01.models.SshConfiguration + :param provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the + virtual machine. :code:`
    `:code:`
    ` 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 be added to the VM later. + :type provision_vm_agent: bool + :param patch_settings: [Preview Feature] Specifies settings related to VM Guest Patching on + Linux. + :type patch_settings: ~azure.mgmt.compute.v2021_03_01.models.LinuxPatchSettings + """ + + _attribute_map = { + 'disable_password_authentication': {'key': 'disablePasswordAuthentication', 'type': 'bool'}, + 'ssh': {'key': 'ssh', 'type': 'SshConfiguration'}, + 'provision_vm_agent': {'key': 'provisionVMAgent', 'type': 'bool'}, + 'patch_settings': {'key': 'patchSettings', 'type': 'LinuxPatchSettings'}, + } + + def __init__( + self, + *, + disable_password_authentication: Optional[bool] = None, + ssh: Optional["SshConfiguration"] = None, + provision_vm_agent: Optional[bool] = None, + patch_settings: Optional["LinuxPatchSettings"] = None, + **kwargs + ): + super(LinuxConfiguration, self).__init__(**kwargs) + self.disable_password_authentication = disable_password_authentication + self.ssh = ssh + self.provision_vm_agent = provision_vm_agent + self.patch_settings = patch_settings + + +class LinuxParameters(msrest.serialization.Model): + """Input for InstallPatches on a Linux VM, as directly received by the API. + + :param classifications_to_include: The update classifications to select when installing patches + for Linux. + :type classifications_to_include: list[str or + ~azure.mgmt.compute.v2021_03_01.models.VMGuestPatchClassificationLinux] + :param package_name_masks_to_include: packages to include in the patch operation. Format: + packageName_packageVersion. + :type package_name_masks_to_include: list[str] + :param package_name_masks_to_exclude: packages to exclude in the patch operation. Format: + packageName_packageVersion. + :type package_name_masks_to_exclude: list[str] + :param maintenance_run_id: This is used as a maintenance run identifier for Auto VM Guest + Patching in Linux. + :type maintenance_run_id: str + """ + + _attribute_map = { + 'classifications_to_include': {'key': 'classificationsToInclude', 'type': '[str]'}, + 'package_name_masks_to_include': {'key': 'packageNameMasksToInclude', 'type': '[str]'}, + 'package_name_masks_to_exclude': {'key': 'packageNameMasksToExclude', 'type': '[str]'}, + 'maintenance_run_id': {'key': 'maintenanceRunId', 'type': 'str'}, + } + + def __init__( + self, + *, + classifications_to_include: Optional[List[Union[str, "VMGuestPatchClassificationLinux"]]] = None, + package_name_masks_to_include: Optional[List[str]] = None, + package_name_masks_to_exclude: Optional[List[str]] = None, + maintenance_run_id: Optional[str] = None, + **kwargs + ): + super(LinuxParameters, self).__init__(**kwargs) + self.classifications_to_include = classifications_to_include + self.package_name_masks_to_include = package_name_masks_to_include + self.package_name_masks_to_exclude = package_name_masks_to_exclude + self.maintenance_run_id = maintenance_run_id + + +class LinuxPatchSettings(msrest.serialization.Model): + """Specifies settings related to VM Guest Patching on Linux. + + :param patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual + machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
    `:code:`
    ` Possible values are::code:`
    `:code:`
    ` **ImageDefault** - The + virtual machine's default patching configuration is used. :code:`
    `:code:`
    ` + **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. + The property provisionVMAgent must be true. Possible values include: "ImageDefault", + "AutomaticByPlatform". + :type patch_mode: str or ~azure.mgmt.compute.v2021_03_01.models.LinuxVMGuestPatchMode + :param 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. :code:`
    `:code:`
    ` **AutomaticByPlatform** - The platform will trigger periodic patch + assessments. The property provisionVMAgent must be true. Possible values include: + "ImageDefault", "AutomaticByPlatform". + :type assessment_mode: str or ~azure.mgmt.compute.v2021_03_01.models.LinuxPatchAssessmentMode + """ + + _attribute_map = { + 'patch_mode': {'key': 'patchMode', 'type': 'str'}, + 'assessment_mode': {'key': 'assessmentMode', 'type': 'str'}, + } + + def __init__( + self, + *, + patch_mode: Optional[Union[str, "LinuxVMGuestPatchMode"]] = None, + assessment_mode: Optional[Union[str, "LinuxPatchAssessmentMode"]] = None, + **kwargs + ): + super(LinuxPatchSettings, self).__init__(**kwargs) + self.patch_mode = patch_mode + self.assessment_mode = assessment_mode + + +class ListUsagesResult(msrest.serialization.Model): + """The List Usages operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of compute resource usages. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.Usage] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Usage]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["Usage"], + next_link: Optional[str] = None, + **kwargs + ): + super(ListUsagesResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class LoadBalancerConfiguration(msrest.serialization.Model): + """Describes the load balancer configuration. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource Id. + :type id: str + :param name: Required. The name of the Load balancer. + :type name: str + :param properties: Required. Properties of the load balancer configuration. + :type properties: ~azure.mgmt.compute.v2021_03_01.models.LoadBalancerConfigurationProperties + """ + + _validation = { + 'name': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'LoadBalancerConfigurationProperties'}, + } + + def __init__( + self, + *, + name: str, + properties: "LoadBalancerConfigurationProperties", + id: Optional[str] = None, + **kwargs + ): + super(LoadBalancerConfiguration, self).__init__(**kwargs) + self.id = id + self.name = name + self.properties = properties + + +class LoadBalancerConfigurationProperties(msrest.serialization.Model): + """LoadBalancerConfigurationProperties. + + All required parameters must be populated in order to send to Azure. + + :param frontend_ip_configurations: Required. Specifies the frontend IP to be used for the load + balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must + have exactly one frontend IP configuration. + :type frontend_ip_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.LoadBalancerFrontendIPConfiguration] + """ + + _validation = { + 'frontend_ip_configurations': {'required': True}, + } + + _attribute_map = { + 'frontend_ip_configurations': {'key': 'frontendIPConfigurations', 'type': '[LoadBalancerFrontendIPConfiguration]'}, + } + + def __init__( + self, + *, + frontend_ip_configurations: List["LoadBalancerFrontendIPConfiguration"], + **kwargs + ): + super(LoadBalancerConfigurationProperties, self).__init__(**kwargs) + self.frontend_ip_configurations = frontend_ip_configurations + + +class LoadBalancerFrontendIPConfiguration(msrest.serialization.Model): + """LoadBalancerFrontendIPConfiguration. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the resource that is unique within the set of frontend IP + configurations used by the load balancer. This name can be used to access the resource. + :type name: str + :param properties: Required. Properties of load balancer frontend ip configuration. + :type properties: + ~azure.mgmt.compute.v2021_03_01.models.LoadBalancerFrontendIPConfigurationProperties + """ + + _validation = { + 'name': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'LoadBalancerFrontendIPConfigurationProperties'}, + } + + def __init__( + self, + *, + name: str, + properties: "LoadBalancerFrontendIPConfigurationProperties", + **kwargs + ): + super(LoadBalancerFrontendIPConfiguration, self).__init__(**kwargs) + self.name = name + self.properties = properties + + +class LoadBalancerFrontendIPConfigurationProperties(msrest.serialization.Model): + """Describes a cloud service IP Configuration. + + :param public_ip_address: The reference to the public ip address resource. + :type public_ip_address: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param subnet: The reference to the virtual network subnet resource. + :type subnet: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param private_ip_address: The virtual network private IP address of the IP configuration. + :type private_ip_address: str + """ + + _attribute_map = { + 'public_ip_address': {'key': 'publicIPAddress', 'type': 'SubResource'}, + 'subnet': {'key': 'subnet', 'type': 'SubResource'}, + 'private_ip_address': {'key': 'privateIPAddress', 'type': 'str'}, + } + + def __init__( + self, + *, + public_ip_address: Optional["SubResource"] = None, + subnet: Optional["SubResource"] = None, + private_ip_address: Optional[str] = None, + **kwargs + ): + super(LoadBalancerFrontendIPConfigurationProperties, self).__init__(**kwargs) + self.public_ip_address = public_ip_address + self.subnet = subnet + self.private_ip_address = private_ip_address + + +class LogAnalyticsInputBase(msrest.serialization.Model): + """Api input base class for LogAnalytics Api. + + All required parameters must be populated in order to send to Azure. + + :param blob_container_sas_uri: Required. SAS Uri of the logging blob container to which + LogAnalytics Api writes output logs to. + :type blob_container_sas_uri: str + :param from_time: Required. From time of the query. + :type from_time: ~datetime.datetime + :param to_time: Required. To time of the query. + :type to_time: ~datetime.datetime + :param group_by_throttle_policy: Group query result by Throttle Policy applied. + :type group_by_throttle_policy: bool + :param group_by_operation_name: Group query result by Operation Name. + :type group_by_operation_name: bool + :param group_by_resource_name: Group query result by Resource Name. + :type group_by_resource_name: bool + :param group_by_client_application_id: Group query result by Client Application ID. + :type group_by_client_application_id: bool + :param group_by_user_agent: Group query result by User Agent. + :type group_by_user_agent: bool + """ + + _validation = { + 'blob_container_sas_uri': {'required': True}, + 'from_time': {'required': True}, + 'to_time': {'required': True}, + } + + _attribute_map = { + 'blob_container_sas_uri': {'key': 'blobContainerSasUri', 'type': 'str'}, + 'from_time': {'key': 'fromTime', 'type': 'iso-8601'}, + 'to_time': {'key': 'toTime', 'type': 'iso-8601'}, + 'group_by_throttle_policy': {'key': 'groupByThrottlePolicy', 'type': 'bool'}, + 'group_by_operation_name': {'key': 'groupByOperationName', 'type': 'bool'}, + 'group_by_resource_name': {'key': 'groupByResourceName', 'type': 'bool'}, + 'group_by_client_application_id': {'key': 'groupByClientApplicationId', 'type': 'bool'}, + 'group_by_user_agent': {'key': 'groupByUserAgent', 'type': 'bool'}, + } + + def __init__( + self, + *, + blob_container_sas_uri: str, + from_time: datetime.datetime, + to_time: datetime.datetime, + group_by_throttle_policy: Optional[bool] = None, + group_by_operation_name: Optional[bool] = None, + group_by_resource_name: Optional[bool] = None, + group_by_client_application_id: Optional[bool] = None, + group_by_user_agent: Optional[bool] = None, + **kwargs + ): + super(LogAnalyticsInputBase, self).__init__(**kwargs) + self.blob_container_sas_uri = blob_container_sas_uri + self.from_time = from_time + self.to_time = to_time + self.group_by_throttle_policy = group_by_throttle_policy + self.group_by_operation_name = group_by_operation_name + self.group_by_resource_name = group_by_resource_name + self.group_by_client_application_id = group_by_client_application_id + self.group_by_user_agent = group_by_user_agent + + +class LogAnalyticsOperationResult(msrest.serialization.Model): + """LogAnalytics operation status response. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar properties: LogAnalyticsOutput. + :vartype properties: ~azure.mgmt.compute.v2021_03_01.models.LogAnalyticsOutput + """ + + _validation = { + 'properties': {'readonly': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'LogAnalyticsOutput'}, + } + + def __init__( + self, + **kwargs + ): + super(LogAnalyticsOperationResult, self).__init__(**kwargs) + self.properties = None + + +class LogAnalyticsOutput(msrest.serialization.Model): + """LogAnalytics output properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar output: Output file Uri path to blob container. + :vartype output: str + """ + + _validation = { + 'output': {'readonly': True}, + } + + _attribute_map = { + 'output': {'key': 'output', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LogAnalyticsOutput, self).__init__(**kwargs) + self.output = None + + +class MaintenanceRedeployStatus(msrest.serialization.Model): + """Maintenance Operation Status. + + :param is_customer_initiated_maintenance_allowed: True, if customer is allowed to perform + Maintenance. + :type is_customer_initiated_maintenance_allowed: bool + :param pre_maintenance_window_start_time: Start Time for the Pre Maintenance Window. + :type pre_maintenance_window_start_time: ~datetime.datetime + :param pre_maintenance_window_end_time: End Time for the Pre Maintenance Window. + :type pre_maintenance_window_end_time: ~datetime.datetime + :param maintenance_window_start_time: Start Time for the Maintenance Window. + :type maintenance_window_start_time: ~datetime.datetime + :param maintenance_window_end_time: End Time for the Maintenance Window. + :type maintenance_window_end_time: ~datetime.datetime + :param last_operation_result_code: The Last Maintenance Operation Result Code. Possible values + include: "None", "RetryLater", "MaintenanceAborted", "MaintenanceCompleted". + :type last_operation_result_code: str or + ~azure.mgmt.compute.v2021_03_01.models.MaintenanceOperationResultCodeTypes + :param last_operation_message: Message returned for the last Maintenance Operation. + :type last_operation_message: str + """ + + _attribute_map = { + 'is_customer_initiated_maintenance_allowed': {'key': 'isCustomerInitiatedMaintenanceAllowed', 'type': 'bool'}, + 'pre_maintenance_window_start_time': {'key': 'preMaintenanceWindowStartTime', 'type': 'iso-8601'}, + 'pre_maintenance_window_end_time': {'key': 'preMaintenanceWindowEndTime', 'type': 'iso-8601'}, + 'maintenance_window_start_time': {'key': 'maintenanceWindowStartTime', 'type': 'iso-8601'}, + 'maintenance_window_end_time': {'key': 'maintenanceWindowEndTime', 'type': 'iso-8601'}, + 'last_operation_result_code': {'key': 'lastOperationResultCode', 'type': 'str'}, + 'last_operation_message': {'key': 'lastOperationMessage', 'type': 'str'}, + } + + def __init__( + self, + *, + is_customer_initiated_maintenance_allowed: Optional[bool] = None, + pre_maintenance_window_start_time: Optional[datetime.datetime] = None, + pre_maintenance_window_end_time: Optional[datetime.datetime] = None, + maintenance_window_start_time: Optional[datetime.datetime] = None, + maintenance_window_end_time: Optional[datetime.datetime] = None, + last_operation_result_code: Optional[Union[str, "MaintenanceOperationResultCodeTypes"]] = None, + last_operation_message: Optional[str] = None, + **kwargs + ): + super(MaintenanceRedeployStatus, self).__init__(**kwargs) + self.is_customer_initiated_maintenance_allowed = is_customer_initiated_maintenance_allowed + self.pre_maintenance_window_start_time = pre_maintenance_window_start_time + self.pre_maintenance_window_end_time = pre_maintenance_window_end_time + self.maintenance_window_start_time = maintenance_window_start_time + self.maintenance_window_end_time = maintenance_window_end_time + self.last_operation_result_code = last_operation_result_code + self.last_operation_message = last_operation_message + + +class ManagedDiskParameters(SubResource): + """The parameters of a managed disk. + + :param id: Resource Id. + :type id: str + :param storage_account_type: Specifies the storage account type for the managed disk. NOTE: + UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values + include: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", + "StandardSSD_ZRS". + :type storage_account_type: str or ~azure.mgmt.compute.v2021_03_01.models.StorageAccountTypes + :param disk_encryption_set: Specifies the customer managed disk encryption set resource id for + the managed disk. + :type disk_encryption_set: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSetParameters + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_encryption_set': {'key': 'diskEncryptionSet', 'type': 'DiskEncryptionSetParameters'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + storage_account_type: Optional[Union[str, "StorageAccountTypes"]] = None, + disk_encryption_set: Optional["DiskEncryptionSetParameters"] = None, + **kwargs + ): + super(ManagedDiskParameters, self).__init__(id=id, **kwargs) + self.storage_account_type = storage_account_type + self.disk_encryption_set = disk_encryption_set + + +class NetworkInterfaceReference(SubResource): + """Describes a network interface reference. + + :param id: Resource Id. + :type id: str + :param primary: Specifies the primary network interface in case the virtual machine has more + than 1 network interface. + :type primary: bool + :param delete_option: Specify what happens to the network interface when the VM is deleted. + Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + primary: Optional[bool] = None, + delete_option: Optional[Union[str, "DeleteOptions"]] = None, + **kwargs + ): + super(NetworkInterfaceReference, self).__init__(id=id, **kwargs) + self.primary = primary + self.delete_option = delete_option + + +class NetworkProfile(msrest.serialization.Model): + """Specifies the network interfaces or the networking configuration of the virtual machine. + + :param network_interfaces: Specifies the list of resource Ids for the network interfaces + associated with the virtual machine. + :type network_interfaces: + list[~azure.mgmt.compute.v2021_03_01.models.NetworkInterfaceReference] + :param network_api_version: specifies the Microsoft.Network API version used when creating + networking resources in the Network Interface Configurations. Possible values include: + "2020-11-01". + :type network_api_version: str or ~azure.mgmt.compute.v2021_03_01.models.NetworkApiVersion + :param network_interface_configurations: Specifies the networking configurations that will be + used to create the virtual machine networking resources. + :type network_interface_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineNetworkInterfaceConfiguration] + """ + + _attribute_map = { + 'network_interfaces': {'key': 'networkInterfaces', 'type': '[NetworkInterfaceReference]'}, + 'network_api_version': {'key': 'networkApiVersion', 'type': 'str'}, + 'network_interface_configurations': {'key': 'networkInterfaceConfigurations', 'type': '[VirtualMachineNetworkInterfaceConfiguration]'}, + } + + def __init__( + self, + *, + network_interfaces: Optional[List["NetworkInterfaceReference"]] = None, + network_api_version: Optional[Union[str, "NetworkApiVersion"]] = None, + network_interface_configurations: Optional[List["VirtualMachineNetworkInterfaceConfiguration"]] = None, + **kwargs + ): + super(NetworkProfile, self).__init__(**kwargs) + self.network_interfaces = network_interfaces + self.network_api_version = network_api_version + self.network_interface_configurations = network_interface_configurations + + +class OrchestrationServiceStateInput(msrest.serialization.Model): + """The input for OrchestrationServiceState. + + All required parameters must be populated in order to send to Azure. + + :param service_name: Required. The name of the service. Possible values include: + "AutomaticRepairs", "DummyOrchestrationServiceName". + :type service_name: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceNames + :param action: Required. The action to be performed. Possible values include: "Resume", + "Suspend". + :type action: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceStateAction + """ + + _validation = { + 'service_name': {'required': True}, + 'action': {'required': True}, + } + + _attribute_map = { + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'action': {'key': 'action', 'type': 'str'}, + } + + def __init__( + self, + *, + service_name: Union[str, "OrchestrationServiceNames"], + action: Union[str, "OrchestrationServiceStateAction"], + **kwargs + ): + super(OrchestrationServiceStateInput, self).__init__(**kwargs) + self.service_name = service_name + self.action = action + + +class OrchestrationServiceSummary(msrest.serialization.Model): + """Summary for an orchestration service of a virtual machine scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar service_name: The name of the service. Possible values include: "AutomaticRepairs", + "DummyOrchestrationServiceName". + :vartype service_name: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceNames + :ivar service_state: The current state of the service. Possible values include: "NotRunning", + "Running", "Suspended". + :vartype service_state: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceState + """ + + _validation = { + 'service_name': {'readonly': True}, + 'service_state': {'readonly': True}, + } + + _attribute_map = { + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'service_state': {'key': 'serviceState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OrchestrationServiceSummary, self).__init__(**kwargs) + self.service_name = None + self.service_state = None + + +class OSDisk(msrest.serialization.Model): + """Specifies information about the operating system disk used by the virtual machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs for Azure virtual machines `_. + + All required parameters must be populated in order to send to Azure. + + :param 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. :code:`
    `:code:`
    ` Possible + values are: :code:`
    `:code:`
    ` **Windows** :code:`
    `:code:`
    ` **Linux**. Possible + values include: "Windows", "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + :param encryption_settings: Specifies the encryption settings for the OS Disk. + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type encryption_settings: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSettings + :param name: The disk name. + :type name: str + :param vhd: The virtual hard disk. + :type vhd: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param 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. + :type image: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None** for Standard + storage. **ReadOnly** for Premium storage. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or + disabled on the disk. + :type write_accelerator_enabled: bool + :param diff_disk_settings: Specifies the ephemeral Disk Settings for the operating system disk + used by the virtual machine. + :type diff_disk_settings: ~azure.mgmt.compute.v2021_03_01.models.DiffDiskSettings + :param create_option: Required. Specifies how the virtual machine should be + created.:code:`
    `:code:`
    ` Possible values are::code:`
    `:code:`
    ` **Attach** \u2013 + This value is used when you are using a specialized disk to create the virtual + machine.:code:`
    `:code:`
    ` **FromImage** \u2013 This value is used when you are using an + image to create the virtual machine. If you are using a platform image, you also use the + imageReference element described above. If you are using a marketplace image, you also use the + plan element previously described. Possible values include: "FromImage", "Empty", "Attach". + :type create_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskCreateOptionTypes + :param 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:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param managed_disk: The managed disk parameters. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.ManagedDiskParameters + :param delete_option: Specifies whether OS Disk should be deleted or detached upon VM deletion. + :code:`
    `:code:`
    ` Possible values: :code:`
    `:code:`
    ` **Delete** If this value is + used, the OS disk is deleted when VM is deleted.:code:`
    `:code:`
    ` **Detach** If this + value is used, the os disk is retained after VM is deleted. :code:`
    `:code:`
    ` The + default value is set to **detach**. For an ephemeral OS Disk, the default value is set to + **Delete**. User cannot change the delete option for ephemeral OS Disk. Possible values + include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskDeleteOptionTypes + """ + + _validation = { + 'create_option': {'required': True}, + } + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'encryption_settings': {'key': 'encryptionSettings', 'type': 'DiskEncryptionSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'vhd': {'key': 'vhd', 'type': 'VirtualHardDisk'}, + 'image': {'key': 'image', 'type': 'VirtualHardDisk'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'}, + 'diff_disk_settings': {'key': 'diffDiskSettings', 'type': 'DiffDiskSettings'}, + 'create_option': {'key': 'createOption', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'}, + 'delete_option': {'key': 'deleteOption', 'type': 'str'}, + } + + def __init__( + self, + *, + create_option: Union[str, "DiskCreateOptionTypes"], + os_type: Optional[Union[str, "OperatingSystemTypes"]] = None, + encryption_settings: Optional["DiskEncryptionSettings"] = None, + name: Optional[str] = None, + vhd: Optional["VirtualHardDisk"] = None, + image: Optional["VirtualHardDisk"] = None, + caching: Optional[Union[str, "CachingTypes"]] = None, + write_accelerator_enabled: Optional[bool] = None, + diff_disk_settings: Optional["DiffDiskSettings"] = None, + disk_size_gb: Optional[int] = None, + managed_disk: Optional["ManagedDiskParameters"] = None, + delete_option: Optional[Union[str, "DiskDeleteOptionTypes"]] = None, + **kwargs + ): + super(OSDisk, self).__init__(**kwargs) + self.os_type = os_type + self.encryption_settings = encryption_settings + self.name = name + self.vhd = vhd + self.image = image + self.caching = caching + self.write_accelerator_enabled = write_accelerator_enabled + self.diff_disk_settings = diff_disk_settings + self.create_option = create_option + self.disk_size_gb = disk_size_gb + self.managed_disk = managed_disk + self.delete_option = delete_option + + +class OSDiskImage(msrest.serialization.Model): + """Contains the os disk image information. + + All required parameters must be populated in order to send to Azure. + + :param operating_system: Required. The operating system of the osDiskImage. Possible values + include: "Windows", "Linux". + :type operating_system: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + """ + + _validation = { + 'operating_system': {'required': True}, + } + + _attribute_map = { + 'operating_system': {'key': 'operatingSystem', 'type': 'str'}, + } + + def __init__( + self, + *, + operating_system: Union[str, "OperatingSystemTypes"], + **kwargs + ): + super(OSDiskImage, self).__init__(**kwargs) + self.operating_system = operating_system + + +class OSFamily(msrest.serialization.Model): + """Describes a cloud service OS family. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :param properties: OS family properties. + :type properties: ~azure.mgmt.compute.v2021_03_01.models.OSFamilyProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OSFamilyProperties'}, + } + + def __init__( + self, + *, + properties: Optional["OSFamilyProperties"] = None, + **kwargs + ): + super(OSFamily, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = None + self.properties = properties + + +class OSFamilyListResult(msrest.serialization.Model): + """OSFamilyListResult. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.OSFamily] + :param next_link: + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[OSFamily]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["OSFamily"], + next_link: Optional[str] = None, + **kwargs + ): + super(OSFamilyListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class OSFamilyProperties(msrest.serialization.Model): + """OS family properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The OS family name. + :vartype name: str + :ivar label: The OS family label. + :vartype label: str + :ivar versions: List of OS versions belonging to this family. + :vartype versions: list[~azure.mgmt.compute.v2021_03_01.models.OSVersionPropertiesBase] + """ + + _validation = { + 'name': {'readonly': True}, + 'label': {'readonly': True}, + 'versions': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'versions': {'key': 'versions', 'type': '[OSVersionPropertiesBase]'}, + } + + def __init__( + self, + **kwargs + ): + super(OSFamilyProperties, self).__init__(**kwargs) + self.name = None + self.label = None + self.versions = None + + +class OSProfile(msrest.serialization.Model): + """Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned. + + :param computer_name: Specifies the host OS name of the virtual machine. + :code:`
    `:code:`
    ` This name cannot be updated after the VM is created. + :code:`
    `:code:`
    ` **Max-length (Windows):** 15 characters :code:`
    `:code:`
    ` + **Max-length (Linux):** 64 characters. :code:`
    `:code:`
    ` For naming conventions and + restrictions see `Azure infrastructure services implementation guidelines + `_. + :type computer_name: str + :param admin_username: Specifies the name of the administrator account. + :code:`
    `:code:`
    ` This property cannot be updated after the VM is created. + :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." + :code:`
    `:code:`
    ` **Disallowed values:** "administrator", "admin", "user", "user1", + "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", + "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", + "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". + :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` + **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 + characters. + :type admin_username: str + :param admin_password: Specifies the password of the administrator account. + :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` + **Minimum-length (Linux):** 6 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 123 + characters :code:`
    `:code:`
    ` **Max-length (Linux):** 72 characters + :code:`
    `:code:`
    ` **Complexity requirements:** 3 out of 4 conditions below need to be + fulfilled :code:`
    ` Has lower characters :code:`
    `Has upper characters :code:`
    ` Has a + digit :code:`
    ` Has a special character (Regex match [\W_]) :code:`
    `:code:`
    ` + **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", + "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For + resetting the password, see `How to reset the Remote Desktop service or its login password in a + Windows VM `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. + :type admin_password: str + :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded + string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum + length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` **Note: Do not pass any + secrets or passwords in customData property** :code:`
    `:code:`
    ` This property cannot be + updated after the VM is created. :code:`
    `:code:`
    ` customData is passed to the VM to be + saved as a file, for more information see `Custom Data on Azure VMs + `_ + :code:`
    `:code:`
    ` For using cloud-init for your Linux VM, see `Using cloud-init to + customize a Linux VM during creation + `_. + :type custom_data: str + :param windows_configuration: Specifies Windows operating system settings on the virtual + machine. + :type windows_configuration: ~azure.mgmt.compute.v2021_03_01.models.WindowsConfiguration + :param linux_configuration: Specifies the Linux operating system settings on the virtual + machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_. + :type linux_configuration: ~azure.mgmt.compute.v2021_03_01.models.LinuxConfiguration + :param secrets: Specifies set of certificates that should be installed onto the virtual + machine. + :type secrets: list[~azure.mgmt.compute.v2021_03_01.models.VaultSecretGroup] + :param allow_extension_operations: Specifies whether extension operations should be allowed on + the virtual machine. :code:`
    `:code:`
    `This may only be set to False when no extensions + are present on the virtual machine. + :type allow_extension_operations: bool + :param require_guest_provision_signal: Specifies whether the guest provision signal is required + to infer provision success of the virtual machine. **Note: This property is for private + testing only, and all customers must not set the property to false.**. + :type require_guest_provision_signal: bool + """ + + _attribute_map = { + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'admin_password': {'key': 'adminPassword', 'type': 'str'}, + 'custom_data': {'key': 'customData', 'type': 'str'}, + 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'WindowsConfiguration'}, + 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'LinuxConfiguration'}, + 'secrets': {'key': 'secrets', 'type': '[VaultSecretGroup]'}, + 'allow_extension_operations': {'key': 'allowExtensionOperations', 'type': 'bool'}, + 'require_guest_provision_signal': {'key': 'requireGuestProvisionSignal', 'type': 'bool'}, + } + + def __init__( + self, + *, + computer_name: Optional[str] = None, + admin_username: Optional[str] = None, + admin_password: Optional[str] = None, + custom_data: Optional[str] = None, + windows_configuration: Optional["WindowsConfiguration"] = None, + linux_configuration: Optional["LinuxConfiguration"] = None, + secrets: Optional[List["VaultSecretGroup"]] = None, + allow_extension_operations: Optional[bool] = None, + require_guest_provision_signal: Optional[bool] = None, + **kwargs + ): + super(OSProfile, self).__init__(**kwargs) + self.computer_name = computer_name + self.admin_username = admin_username + self.admin_password = admin_password + self.custom_data = custom_data + self.windows_configuration = windows_configuration + self.linux_configuration = linux_configuration + self.secrets = secrets + self.allow_extension_operations = allow_extension_operations + self.require_guest_provision_signal = require_guest_provision_signal + + +class OSVersion(msrest.serialization.Model): + """Describes a cloud service OS version. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + :param properties: OS version properties. + :type properties: ~azure.mgmt.compute.v2021_03_01.models.OSVersionProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OSVersionProperties'}, + } + + def __init__( + self, + *, + properties: Optional["OSVersionProperties"] = None, + **kwargs + ): + super(OSVersion, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = None + self.properties = properties + + +class OSVersionListResult(msrest.serialization.Model): + """OSVersionListResult. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.OSVersion] + :param next_link: + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[OSVersion]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["OSVersion"], + next_link: Optional[str] = None, + **kwargs + ): + super(OSVersionListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class OSVersionProperties(msrest.serialization.Model): + """OS version properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar family: The family of this OS version. + :vartype family: str + :ivar family_label: The family label of this OS version. + :vartype family_label: str + :ivar version: The OS version. + :vartype version: str + :ivar label: The OS version label. + :vartype label: str + :ivar is_default: Specifies whether this is the default OS version for its family. + :vartype is_default: bool + :ivar is_active: Specifies whether this OS version is active. + :vartype is_active: bool + """ + + _validation = { + 'family': {'readonly': True}, + 'family_label': {'readonly': True}, + 'version': {'readonly': True}, + 'label': {'readonly': True}, + 'is_default': {'readonly': True}, + 'is_active': {'readonly': True}, + } + + _attribute_map = { + 'family': {'key': 'family', 'type': 'str'}, + 'family_label': {'key': 'familyLabel', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(OSVersionProperties, self).__init__(**kwargs) + self.family = None + self.family_label = None + self.version = None + self.label = None + self.is_default = None + self.is_active = None + + +class OSVersionPropertiesBase(msrest.serialization.Model): + """Configuration view of an OS version. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar version: The OS version. + :vartype version: str + :ivar label: The OS version label. + :vartype label: str + :ivar is_default: Specifies whether this is the default OS version for its family. + :vartype is_default: bool + :ivar is_active: Specifies whether this OS version is active. + :vartype is_active: bool + """ + + _validation = { + 'version': {'readonly': True}, + 'label': {'readonly': True}, + 'is_default': {'readonly': True}, + 'is_active': {'readonly': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'is_active': {'key': 'isActive', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(OSVersionPropertiesBase, self).__init__(**kwargs) + self.version = None + self.label = None + self.is_default = None + self.is_active = None + + +class PatchInstallationDetail(msrest.serialization.Model): + """Information about a specific patch that was encountered during an installation action. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar patch_id: A unique identifier for the patch. + :vartype patch_id: str + :ivar name: The friendly name of the patch. + :vartype name: str + :ivar version: The version string of the package. It may conform to Semantic Versioning. Only + applies to Linux. + :vartype version: str + :ivar kb_id: The KBID of the patch. Only applies to Windows patches. + :vartype kb_id: str + :ivar classifications: The classification(s) of the patch as provided by the patch publisher. + :vartype classifications: list[str] + :ivar installation_state: The state of the patch after the installation operation completed. + Possible values include: "Unknown", "Installed", "Failed", "Excluded", "NotSelected", + "Pending". + :vartype installation_state: str or + ~azure.mgmt.compute.v2021_03_01.models.PatchInstallationState + """ + + _validation = { + 'patch_id': {'readonly': True}, + 'name': {'readonly': True}, + 'version': {'readonly': True}, + 'kb_id': {'readonly': True}, + 'classifications': {'readonly': True}, + 'installation_state': {'readonly': True}, + } + + _attribute_map = { + 'patch_id': {'key': 'patchId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'kb_id': {'key': 'kbId', 'type': 'str'}, + 'classifications': {'key': 'classifications', 'type': '[str]'}, + 'installation_state': {'key': 'installationState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PatchInstallationDetail, self).__init__(**kwargs) + self.patch_id = None + self.name = None + self.version = None + self.kb_id = None + self.classifications = None + self.installation_state = None + + +class PatchSettings(msrest.serialization.Model): + """Specifies settings related to VM Guest Patching on Windows. + + :param patch_mode: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual + machines associated to virtual machine scale set with OrchestrationMode as Flexible.:code:`
    `:code:`
    ` Possible values are::code:`
    `:code:`
    ` **Manual** - You control + the application of patches to a virtual machine. You do this by applying patches manually + inside the VM. In this mode, automatic updates are disabled; the property + WindowsConfiguration.enableAutomaticUpdates must be false:code:`
    `:code:`
    ` + **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property + WindowsConfiguration.enableAutomaticUpdates must be true. :code:`
    `:code:`
    ` + **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The + properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true. + Possible values include: "Manual", "AutomaticByOS", "AutomaticByPlatform". + :type patch_mode: str or ~azure.mgmt.compute.v2021_03_01.models.WindowsVMGuestPatchMode + :param 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'. + :type enable_hotpatching: bool + :param 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.:code:`
    `:code:`
    ` **AutomaticByPlatform** - The platform will trigger periodic patch + assessments. The property provisionVMAgent must be true. Possible values include: + "ImageDefault", "AutomaticByPlatform". + :type assessment_mode: str or ~azure.mgmt.compute.v2021_03_01.models.WindowsPatchAssessmentMode + """ + + _attribute_map = { + 'patch_mode': {'key': 'patchMode', 'type': 'str'}, + 'enable_hotpatching': {'key': 'enableHotpatching', 'type': 'bool'}, + 'assessment_mode': {'key': 'assessmentMode', 'type': 'str'}, + } + + def __init__( + self, + *, + patch_mode: Optional[Union[str, "WindowsVMGuestPatchMode"]] = None, + enable_hotpatching: Optional[bool] = None, + assessment_mode: Optional[Union[str, "WindowsPatchAssessmentMode"]] = None, + **kwargs + ): + super(PatchSettings, self).__init__(**kwargs) + self.patch_mode = patch_mode + self.enable_hotpatching = enable_hotpatching + self.assessment_mode = assessment_mode + + +class Plan(msrest.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 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**. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: Specifies the product of the image from the marketplace. This is the same value + as Offer under the imageReference element. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + publisher: Optional[str] = None, + product: Optional[str] = None, + promotion_code: Optional[str] = None, + **kwargs + ): + super(Plan, self).__init__(**kwargs) + self.name = name + self.publisher = publisher + self.product = product + self.promotion_code = promotion_code + + +class ProximityPlacementGroup(Resource): + """Specifies information about the proximity placement group. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param proximity_placement_group_type: Specifies the type of the proximity placement group. + :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **Standard** : Co-locate + resources within an Azure region or Availability Zone. :code:`
    `:code:`
    ` **Ultra** : For + future use. Possible values include: "Standard", "Ultra". + :type proximity_placement_group_type: str or + ~azure.mgmt.compute.v2021_03_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.v2021_03_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.v2021_03_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.v2021_03_01.models.SubResourceWithColocationStatus] + :param colocation_status: Describes colocation status of the Proximity Placement Group. + :type colocation_status: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'virtual_machines': {'readonly': True}, + 'virtual_machine_scale_sets': {'readonly': True}, + 'availability_sets': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'proximity_placement_group_type': {'key': 'properties.proximityPlacementGroupType', 'type': 'str'}, + 'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResourceWithColocationStatus]'}, + 'virtual_machine_scale_sets': {'key': 'properties.virtualMachineScaleSets', 'type': '[SubResourceWithColocationStatus]'}, + 'availability_sets': {'key': 'properties.availabilitySets', 'type': '[SubResourceWithColocationStatus]'}, + 'colocation_status': {'key': 'properties.colocationStatus', 'type': 'InstanceViewStatus'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + proximity_placement_group_type: Optional[Union[str, "ProximityPlacementGroupType"]] = None, + colocation_status: Optional["InstanceViewStatus"] = None, + **kwargs + ): + super(ProximityPlacementGroup, self).__init__(location=location, tags=tags, **kwargs) + self.proximity_placement_group_type = proximity_placement_group_type + self.virtual_machines = None + self.virtual_machine_scale_sets = None + self.availability_sets = None + self.colocation_status = colocation_status + + +class ProximityPlacementGroupListResult(msrest.serialization.Model): + """The List Proximity Placement Group operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of proximity placement groups. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroup] + :param next_link: The URI to fetch the next page of proximity placement groups. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ProximityPlacementGroup]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["ProximityPlacementGroup"], + next_link: Optional[str] = None, + **kwargs + ): + super(ProximityPlacementGroupListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class ProximityPlacementGroupUpdate(UpdateResource): + """Specifies information about the proximity placement group. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(ProximityPlacementGroupUpdate, self).__init__(tags=tags, **kwargs) + + +class ProxyResource(msrest.serialization.Model): + """The resource model definition for an Azure Resource Manager proxy resource. It will not have tags and a location. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ProxyResource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class PublicIPAddressSku(msrest.serialization.Model): + """Describes the public IP Sku. + + All required parameters must be populated in order to send to Azure. + + :param public_ip_address_sku_name: Required. Specify public IP sku name. Possible values + include: "Basic", "Standard". + :type public_ip_address_sku_name: str or + ~azure.mgmt.compute.v2021_03_01.models.PublicIPAddressSkuName + :param public_ip_address_sku_tier: Specify public IP sku tier. Possible values include: + "Regional", "Global". + :type public_ip_address_sku_tier: str or + ~azure.mgmt.compute.v2021_03_01.models.PublicIPAddressSkuTier + """ + + _validation = { + 'public_ip_address_sku_name': {'required': True}, + } + + _attribute_map = { + 'public_ip_address_sku_name': {'key': 'publicIPAddressSkuName', 'type': 'str'}, + 'public_ip_address_sku_tier': {'key': 'publicIPAddressSkuTier', 'type': 'str'}, + } + + def __init__( + self, + *, + public_ip_address_sku_name: Union[str, "PublicIPAddressSkuName"], + public_ip_address_sku_tier: Optional[Union[str, "PublicIPAddressSkuTier"]] = None, + **kwargs + ): + super(PublicIPAddressSku, self).__init__(**kwargs) + self.public_ip_address_sku_name = public_ip_address_sku_name + self.public_ip_address_sku_tier = public_ip_address_sku_tier + + +class PurchasePlan(msrest.serialization.Model): + """Used for establishing the purchase context of any 3rd Party artifact through MarketPlace. + + All required parameters must be populated in order to send to Azure. + + :param publisher: Required. The publisher ID. + :type publisher: str + :param name: Required. The plan ID. + :type name: str + :param product: Required. Specifies the product of the image from the marketplace. This is the + same value as Offer under the imageReference element. + :type product: str + """ + + _validation = { + 'publisher': {'required': True}, + 'name': {'required': True}, + 'product': {'required': True}, + } + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + } + + def __init__( + self, + *, + publisher: str, + name: str, + product: str, + **kwargs + ): + super(PurchasePlan, self).__init__(**kwargs) + self.publisher = publisher + self.name = name + self.product = product + + +class RecoveryWalkResponse(msrest.serialization.Model): + """Response after calling a manual recovery walk. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar walk_performed: Whether the recovery walk was performed. + :vartype walk_performed: bool + :ivar next_platform_update_domain: The next update domain that needs to be walked. Null means + walk spanning all update domains has been completed. + :vartype next_platform_update_domain: int + """ + + _validation = { + 'walk_performed': {'readonly': True}, + 'next_platform_update_domain': {'readonly': True}, + } + + _attribute_map = { + 'walk_performed': {'key': 'walkPerformed', 'type': 'bool'}, + 'next_platform_update_domain': {'key': 'nextPlatformUpdateDomain', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(RecoveryWalkResponse, self).__init__(**kwargs) + self.walk_performed = None + self.next_platform_update_domain = None + + +class RequestRateByIntervalInput(LogAnalyticsInputBase): + """Api request input for LogAnalytics getRequestRateByInterval Api. + + All required parameters must be populated in order to send to Azure. + + :param blob_container_sas_uri: Required. SAS Uri of the logging blob container to which + LogAnalytics Api writes output logs to. + :type blob_container_sas_uri: str + :param from_time: Required. From time of the query. + :type from_time: ~datetime.datetime + :param to_time: Required. To time of the query. + :type to_time: ~datetime.datetime + :param group_by_throttle_policy: Group query result by Throttle Policy applied. + :type group_by_throttle_policy: bool + :param group_by_operation_name: Group query result by Operation Name. + :type group_by_operation_name: bool + :param group_by_resource_name: Group query result by Resource Name. + :type group_by_resource_name: bool + :param group_by_client_application_id: Group query result by Client Application ID. + :type group_by_client_application_id: bool + :param group_by_user_agent: Group query result by User Agent. + :type group_by_user_agent: bool + :param interval_length: Required. Interval value in minutes used to create LogAnalytics call + rate logs. Possible values include: "ThreeMins", "FiveMins", "ThirtyMins", "SixtyMins". + :type interval_length: str or ~azure.mgmt.compute.v2021_03_01.models.IntervalInMins + """ + + _validation = { + 'blob_container_sas_uri': {'required': True}, + 'from_time': {'required': True}, + 'to_time': {'required': True}, + 'interval_length': {'required': True}, + } + + _attribute_map = { + 'blob_container_sas_uri': {'key': 'blobContainerSasUri', 'type': 'str'}, + 'from_time': {'key': 'fromTime', 'type': 'iso-8601'}, + 'to_time': {'key': 'toTime', 'type': 'iso-8601'}, + 'group_by_throttle_policy': {'key': 'groupByThrottlePolicy', 'type': 'bool'}, + 'group_by_operation_name': {'key': 'groupByOperationName', 'type': 'bool'}, + 'group_by_resource_name': {'key': 'groupByResourceName', 'type': 'bool'}, + 'group_by_client_application_id': {'key': 'groupByClientApplicationId', 'type': 'bool'}, + 'group_by_user_agent': {'key': 'groupByUserAgent', 'type': 'bool'}, + 'interval_length': {'key': 'intervalLength', 'type': 'str'}, + } + + def __init__( + self, + *, + blob_container_sas_uri: str, + from_time: datetime.datetime, + to_time: datetime.datetime, + interval_length: Union[str, "IntervalInMins"], + group_by_throttle_policy: Optional[bool] = None, + group_by_operation_name: Optional[bool] = None, + group_by_resource_name: Optional[bool] = None, + group_by_client_application_id: Optional[bool] = None, + group_by_user_agent: Optional[bool] = None, + **kwargs + ): + super(RequestRateByIntervalInput, self).__init__(blob_container_sas_uri=blob_container_sas_uri, from_time=from_time, to_time=to_time, group_by_throttle_policy=group_by_throttle_policy, group_by_operation_name=group_by_operation_name, group_by_resource_name=group_by_resource_name, group_by_client_application_id=group_by_client_application_id, group_by_user_agent=group_by_user_agent, **kwargs) + self.interval_length = interval_length + + +class ResourceInstanceViewStatus(msrest.serialization.Model): + """Instance view status. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: The status code. + :vartype code: str + :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. + :vartype message: str + :ivar time: The time of the status. + :vartype time: ~datetime.datetime + :param level: The level code. Possible values include: "Info", "Warning", "Error". + :type level: str or ~azure.mgmt.compute.v2021_03_01.models.StatusLevelTypes + """ + + _validation = { + 'code': {'readonly': True}, + 'display_status': {'readonly': True}, + 'message': {'readonly': True}, + 'time': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'display_status': {'key': 'displayStatus', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'time': {'key': 'time', 'type': 'iso-8601'}, + 'level': {'key': 'level', 'type': 'str'}, + } + + def __init__( + self, + *, + level: Optional[Union[str, "StatusLevelTypes"]] = None, + **kwargs + ): + super(ResourceInstanceViewStatus, self).__init__(**kwargs) + self.code = None + self.display_status = None + self.message = None + self.time = None + self.level = level + + +class RestorePoint(ProxyResource): + """Restore Point details. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar source_metadata: Gets the details of the VM captured at the time of the restore point + creation. + :vartype source_metadata: ~azure.mgmt.compute.v2021_03_01.models.RestorePointSourceMetadata + :ivar provisioning_state: Gets the provisioning state of the restore point. + :vartype provisioning_state: str + :ivar consistency_mode: Gets the consistency mode for the restore point. Please refer to + https://aka.ms/RestorePoints for more details. Possible values include: "CrashConsistent", + "FileSystemConsistent", "ApplicationConsistent". + :vartype consistency_mode: str or ~azure.mgmt.compute.v2021_03_01.models.ConsistencyModeTypes + :ivar provisioning_details: Gets the provisioning details set by the server during Create + restore point operation. + :vartype provisioning_details: + ~azure.mgmt.compute.v2021_03_01.models.RestorePointProvisioningDetails + :param 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. + :type exclude_disks: list[~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'source_metadata': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'consistency_mode': {'readonly': True}, + 'provisioning_details': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'source_metadata': {'key': 'sourceMetadata', 'type': 'RestorePointSourceMetadata'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'consistency_mode': {'key': 'consistencyMode', 'type': 'str'}, + 'provisioning_details': {'key': 'provisioningDetails', 'type': 'RestorePointProvisioningDetails'}, + 'exclude_disks': {'key': 'excludeDisks', 'type': '[ApiEntityReference]'}, + } + + def __init__( + self, + *, + exclude_disks: Optional[List["ApiEntityReference"]] = None, + **kwargs + ): + super(RestorePoint, self).__init__(**kwargs) + self.source_metadata = None + self.provisioning_state = None + self.consistency_mode = None + self.provisioning_details = None + self.exclude_disks = exclude_disks + + +class RestorePointCollection(Resource): + """Create or update Restore Point collection parameters. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param source: The properties of the source resource that this restore point collection is + created from. + :type source: ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.RestorePoint] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'restore_point_collection_id': {'readonly': True}, + 'restore_points': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'RestorePointCollectionSourceProperties'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'restore_point_collection_id': {'key': 'properties.restorePointCollectionId', 'type': 'str'}, + 'restore_points': {'key': 'properties.restorePoints', 'type': '[RestorePoint]'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + source: Optional["RestorePointCollectionSourceProperties"] = None, + **kwargs + ): + super(RestorePointCollection, self).__init__(location=location, tags=tags, **kwargs) + self.source = source + self.provisioning_state = None + self.restore_point_collection_id = None + self.restore_points = None + + +class RestorePointCollectionListResult(msrest.serialization.Model): + """The List restore point collection operation response. + + :param value: Gets the list of restore point collections. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.RestorePointCollection] + :param next_link: The uri to fetch the next page of RestorePointCollections. Call ListNext() + with this to fetch the next page of RestorePointCollections. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RestorePointCollection]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["RestorePointCollection"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(RestorePointCollectionListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class RestorePointCollectionSourceProperties(msrest.serialization.Model): + """The properties of the source resource that this restore point collection is created from. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar location: Location of the source resource used to create this restore point collection. + :vartype location: str + :param id: Resource Id of the source resource used to create this restore point collection. + :type id: str + """ + + _validation = { + 'location': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): + super(RestorePointCollectionSourceProperties, self).__init__(**kwargs) + self.location = None + self.id = id + + +class RestorePointCollectionUpdate(UpdateResource): + """Update Restore Point collection parameters. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param source: The properties of the source resource that this restore point collection is + created from. + :type source: ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.RestorePoint] + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'restore_point_collection_id': {'readonly': True}, + 'restore_points': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'RestorePointCollectionSourceProperties'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'restore_point_collection_id': {'key': 'properties.restorePointCollectionId', 'type': 'str'}, + 'restore_points': {'key': 'properties.restorePoints', 'type': '[RestorePoint]'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + source: Optional["RestorePointCollectionSourceProperties"] = None, + **kwargs + ): + super(RestorePointCollectionUpdate, self).__init__(tags=tags, **kwargs) + self.source = source + self.provisioning_state = None + self.restore_point_collection_id = None + self.restore_points = None + + +class RestorePointProvisioningDetails(msrest.serialization.Model): + """Restore Point Provisioning details. + + :param creation_time: Gets the creation time of the restore point. + :type creation_time: ~datetime.datetime + :param total_used_size_in_bytes: Gets the total size of the data in all the disks which are + part of the restore point. + :type total_used_size_in_bytes: long + :param status_code: Gets the status of the Create restore point operation. + :type status_code: int + :param status_message: Gets the status message of the Create restore point operation. + :type status_message: str + """ + + _attribute_map = { + 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, + 'total_used_size_in_bytes': {'key': 'totalUsedSizeInBytes', 'type': 'long'}, + 'status_code': {'key': 'statusCode', 'type': 'int'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + } + + def __init__( + self, + *, + creation_time: Optional[datetime.datetime] = None, + total_used_size_in_bytes: Optional[int] = None, + status_code: Optional[int] = None, + status_message: Optional[str] = None, + **kwargs + ): + super(RestorePointProvisioningDetails, self).__init__(**kwargs) + self.creation_time = creation_time + self.total_used_size_in_bytes = total_used_size_in_bytes + self.status_code = status_code + self.status_message = status_message + + +class RestorePointSourceMetadata(msrest.serialization.Model): + """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. + + :param hardware_profile: Gets the hardware profile. + :type hardware_profile: ~azure.mgmt.compute.v2021_03_01.models.HardwareProfile + :param storage_profile: Gets the storage profile. + :type storage_profile: + ~azure.mgmt.compute.v2021_03_01.models.RestorePointSourceVMStorageProfile + :param os_profile: Gets the OS profile. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.OSProfile + :param diagnostics_profile: Gets the diagnostics profile. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param license_type: Gets the license type, which is for bring your own license scenario. + :type license_type: str + :param vm_id: Gets the virtual machine unique id. + :type vm_id: str + :param security_profile: Gets the security profile. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + """ + + _attribute_map = { + 'hardware_profile': {'key': 'hardwareProfile', 'type': 'HardwareProfile'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'RestorePointSourceVMStorageProfile'}, + 'os_profile': {'key': 'osProfile', 'type': 'OSProfile'}, + 'diagnostics_profile': {'key': 'diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'license_type': {'key': 'licenseType', 'type': 'str'}, + 'vm_id': {'key': 'vmId', 'type': 'str'}, + 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, + } + + def __init__( + self, + *, + hardware_profile: Optional["HardwareProfile"] = None, + storage_profile: Optional["RestorePointSourceVMStorageProfile"] = None, + os_profile: Optional["OSProfile"] = None, + diagnostics_profile: Optional["DiagnosticsProfile"] = None, + license_type: Optional[str] = None, + vm_id: Optional[str] = None, + security_profile: Optional["SecurityProfile"] = None, + **kwargs + ): + super(RestorePointSourceMetadata, self).__init__(**kwargs) + self.hardware_profile = hardware_profile + self.storage_profile = storage_profile + self.os_profile = os_profile + self.diagnostics_profile = diagnostics_profile + self.license_type = license_type + self.vm_id = vm_id + self.security_profile = security_profile + + +class RestorePointSourceVMDataDisk(msrest.serialization.Model): + """Describes a data disk. + + :param lun: Gets the logical unit number. + :type lun: int + :param name: Gets the disk name. + :type name: str + :param caching: Gets the caching type. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param 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. + :type disk_size_gb: int + :param managed_disk: Gets the managed disk details. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.ManagedDiskParameters + :param disk_restore_point: Gets the disk restore point Id. + :type disk_restore_point: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + """ + + _attribute_map = { + 'lun': {'key': 'lun', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'}, + 'disk_restore_point': {'key': 'diskRestorePoint', 'type': 'ApiEntityReference'}, + } + + def __init__( + self, + *, + lun: Optional[int] = None, + name: Optional[str] = None, + caching: Optional[Union[str, "CachingTypes"]] = None, + disk_size_gb: Optional[int] = None, + managed_disk: Optional["ManagedDiskParameters"] = None, + disk_restore_point: Optional["ApiEntityReference"] = None, + **kwargs + ): + super(RestorePointSourceVMDataDisk, self).__init__(**kwargs) + self.lun = lun + self.name = name + self.caching = caching + self.disk_size_gb = disk_size_gb + self.managed_disk = managed_disk + self.disk_restore_point = disk_restore_point + + +class RestorePointSourceVMOSDisk(msrest.serialization.Model): + """Describes an Operating System disk. + + :param os_type: Gets the Operating System type. Possible values include: "Windows", "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemType + :param encryption_settings: Gets the disk encryption settings. + :type encryption_settings: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSettings + :param name: Gets the disk name. + :type name: str + :param caching: Gets the caching type. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param disk_size_gb: Gets the disk size in GB. + :type disk_size_gb: int + :param managed_disk: Gets the managed disk details. + :type managed_disk: ~azure.mgmt.compute.v2021_03_01.models.ManagedDiskParameters + :param disk_restore_point: Gets the disk restore point Id. + :type disk_restore_point: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + """ + + _attribute_map = { + 'os_type': {'key': 'osType', 'type': 'str'}, + 'encryption_settings': {'key': 'encryptionSettings', 'type': 'DiskEncryptionSettings'}, + 'name': {'key': 'name', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'ManagedDiskParameters'}, + 'disk_restore_point': {'key': 'diskRestorePoint', 'type': 'ApiEntityReference'}, + } + + def __init__( + self, + *, + os_type: Optional[Union[str, "OperatingSystemType"]] = None, + encryption_settings: Optional["DiskEncryptionSettings"] = None, + name: Optional[str] = None, + caching: Optional[Union[str, "CachingTypes"]] = None, + disk_size_gb: Optional[int] = None, + managed_disk: Optional["ManagedDiskParameters"] = None, + disk_restore_point: Optional["ApiEntityReference"] = None, + **kwargs + ): + super(RestorePointSourceVMOSDisk, self).__init__(**kwargs) + self.os_type = os_type + self.encryption_settings = encryption_settings + self.name = name + self.caching = caching + self.disk_size_gb = disk_size_gb + self.managed_disk = managed_disk + self.disk_restore_point = disk_restore_point + + +class RestorePointSourceVMStorageProfile(msrest.serialization.Model): + """Describes the storage profile. + + :param os_disk: Gets the OS disk of the VM captured at the time of the restore point creation. + :type os_disk: ~azure.mgmt.compute.v2021_03_01.models.RestorePointSourceVMOSDisk + :param data_disks: Gets the data disks of the VM captured at the time of the restore point + creation. + :type data_disks: list[~azure.mgmt.compute.v2021_03_01.models.RestorePointSourceVMDataDisk] + """ + + _attribute_map = { + 'os_disk': {'key': 'osDisk', 'type': 'RestorePointSourceVMOSDisk'}, + 'data_disks': {'key': 'dataDisks', 'type': '[RestorePointSourceVMDataDisk]'}, + } + + def __init__( + self, + *, + os_disk: Optional["RestorePointSourceVMOSDisk"] = None, + data_disks: Optional[List["RestorePointSourceVMDataDisk"]] = None, + **kwargs + ): + super(RestorePointSourceVMStorageProfile, self).__init__(**kwargs) + self.os_disk = os_disk + self.data_disks = data_disks + + +class RetrieveBootDiagnosticsDataResult(msrest.serialization.Model): + """The SAS URIs of the console screenshot and serial log blobs. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar console_screenshot_blob_uri: The console screenshot blob URI. + :vartype console_screenshot_blob_uri: str + :ivar serial_console_log_blob_uri: The serial console log blob URI. + :vartype serial_console_log_blob_uri: str + """ + + _validation = { + 'console_screenshot_blob_uri': {'readonly': True}, + 'serial_console_log_blob_uri': {'readonly': True}, + } + + _attribute_map = { + 'console_screenshot_blob_uri': {'key': 'consoleScreenshotBlobUri', 'type': 'str'}, + 'serial_console_log_blob_uri': {'key': 'serialConsoleLogBlobUri', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RetrieveBootDiagnosticsDataResult, self).__init__(**kwargs) + self.console_screenshot_blob_uri = None + self.serial_console_log_blob_uri = None + + +class RoleInstance(msrest.serialization.Model): + """RoleInstance. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource Name. + :vartype name: str + :ivar type: Resource Type. + :vartype type: str + :ivar location: Resource Location. + :vartype location: str + :ivar tags: A set of tags. Resource tags. + :vartype tags: dict[str, str] + :param sku: + :type sku: ~azure.mgmt.compute.v2021_03_01.models.InstanceSku + :param properties: + :type properties: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'InstanceSku'}, + 'properties': {'key': 'properties', 'type': 'RoleInstanceProperties'}, + } + + def __init__( + self, + *, + sku: Optional["InstanceSku"] = None, + properties: Optional["RoleInstanceProperties"] = None, + **kwargs + ): + super(RoleInstance, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = None + self.tags = None + self.sku = sku + self.properties = properties + + +class RoleInstanceListResult(msrest.serialization.Model): + """RoleInstanceListResult. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.RoleInstance] + :param next_link: + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RoleInstance]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["RoleInstance"], + next_link: Optional[str] = None, + **kwargs + ): + super(RoleInstanceListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class RoleInstanceNetworkProfile(msrest.serialization.Model): + """Describes the network profile for the role instance. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar network_interfaces: Specifies the list of resource Ids for the network interfaces + associated with the role instance. + :vartype network_interfaces: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + """ + + _validation = { + 'network_interfaces': {'readonly': True}, + } + + _attribute_map = { + 'network_interfaces': {'key': 'networkInterfaces', 'type': '[SubResource]'}, + } + + def __init__( + self, + **kwargs + ): + super(RoleInstanceNetworkProfile, self).__init__(**kwargs) + self.network_interfaces = None + + +class RoleInstanceProperties(msrest.serialization.Model): + """RoleInstanceProperties. + + :param network_profile: Describes the network profile for the role instance. + :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceNetworkProfile + :param instance_view: The instance view of the role instance. + :type instance_view: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceView + """ + + _attribute_map = { + 'network_profile': {'key': 'networkProfile', 'type': 'RoleInstanceNetworkProfile'}, + 'instance_view': {'key': 'instanceView', 'type': 'RoleInstanceView'}, + } + + def __init__( + self, + *, + network_profile: Optional["RoleInstanceNetworkProfile"] = None, + instance_view: Optional["RoleInstanceView"] = None, + **kwargs + ): + super(RoleInstanceProperties, self).__init__(**kwargs) + self.network_profile = network_profile + self.instance_view = instance_view + + +class RoleInstances(msrest.serialization.Model): + """Specifies a list of role instances from the cloud service. + + All required parameters must be populated in order to send to Azure. + + :param role_instances: Required. List of cloud service role instance names. Value of '*' will + signify all role instances of the cloud service. + :type role_instances: list[str] + """ + + _validation = { + 'role_instances': {'required': True}, + } + + _attribute_map = { + 'role_instances': {'key': 'roleInstances', 'type': '[str]'}, + } + + def __init__( + self, + *, + role_instances: List[str], + **kwargs + ): + super(RoleInstances, self).__init__(**kwargs) + self.role_instances = role_instances + + +class RoleInstanceView(msrest.serialization.Model): + """The instance view of the role instance. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar platform_update_domain: The Update Domain. + :vartype platform_update_domain: int + :ivar platform_fault_domain: The Fault Domain. + :vartype platform_fault_domain: int + :ivar private_id: Specifies a unique identifier generated internally for the cloud service + associated with this role instance. :code:`
    `:code:`
    ` NOTE: If you are using Azure + Diagnostics extension, this property can be used as 'DeploymentId' for querying details. + :vartype private_id: str + :ivar statuses: + :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.ResourceInstanceViewStatus] + """ + + _validation = { + 'platform_update_domain': {'readonly': True}, + 'platform_fault_domain': {'readonly': True}, + 'private_id': {'readonly': True}, + 'statuses': {'readonly': True}, + } + + _attribute_map = { + 'platform_update_domain': {'key': 'platformUpdateDomain', 'type': 'int'}, + 'platform_fault_domain': {'key': 'platformFaultDomain', 'type': 'int'}, + 'private_id': {'key': 'privateId', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[ResourceInstanceViewStatus]'}, + } + + def __init__( + self, + **kwargs + ): + super(RoleInstanceView, self).__init__(**kwargs) + self.platform_update_domain = None + self.platform_fault_domain = None + self.private_id = None + self.statuses = None + + +class RollbackStatusInfo(msrest.serialization.Model): + """Information about rollback on failed VM instances after a OS Upgrade operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar successfully_rolledback_instance_count: The number of instances which have been + successfully rolled back. + :vartype successfully_rolledback_instance_count: int + :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.v2021_03_01.models.ApiError + """ + + _validation = { + 'successfully_rolledback_instance_count': {'readonly': True}, + 'failed_rolledback_instance_count': {'readonly': True}, + 'rollback_error': {'readonly': True}, + } + + _attribute_map = { + 'successfully_rolledback_instance_count': {'key': 'successfullyRolledbackInstanceCount', 'type': 'int'}, + 'failed_rolledback_instance_count': {'key': 'failedRolledbackInstanceCount', 'type': 'int'}, + 'rollback_error': {'key': 'rollbackError', 'type': 'ApiError'}, + } + + def __init__( + self, + **kwargs + ): + super(RollbackStatusInfo, self).__init__(**kwargs) + self.successfully_rolledback_instance_count = None + self.failed_rolledback_instance_count = None + self.rollback_error = None + + +class RollingUpgradePolicy(msrest.serialization.Model): + """The configuration parameters used while performing a rolling upgrade. + + :param max_batch_instance_percent: The maximum percent of total virtual machine instances that + will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, + unhealthy instances in previous or future batches can cause the percentage of instances in a + batch to decrease to ensure higher reliability. The default value for this parameter is 20%. + :type max_batch_instance_percent: int + :param max_unhealthy_instance_percent: The maximum percentage of the total virtual machine + instances in the scale set that can be simultaneously unhealthy, either as a result of being + upgraded, or by being found in an unhealthy state by the virtual machine health checks before + the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The + default value for this parameter is 20%. + :type max_unhealthy_instance_percent: int + :param max_unhealthy_upgraded_instance_percent: The maximum percentage of upgraded virtual + machine instances that can be found to be in an unhealthy state. This check will happen after + each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The + default value for this parameter is 20%. + :type max_unhealthy_upgraded_instance_percent: int + :param pause_time_between_batches: The wait time between completing the update for all virtual + machines in one batch and starting the next batch. The time duration should be specified in ISO + 8601 format. The default value is 0 seconds (PT0S). + :type pause_time_between_batches: str + :param enable_cross_zone_upgrade: Allow VMSS to ignore AZ boundaries when constructing upgrade + batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the + batch size. + :type enable_cross_zone_upgrade: bool + :param prioritize_unhealthy_instances: Upgrade all unhealthy instances in a scale set before + any healthy instances. + :type prioritize_unhealthy_instances: bool + """ + + _validation = { + 'max_batch_instance_percent': {'maximum': 100, 'minimum': 5}, + 'max_unhealthy_instance_percent': {'maximum': 100, 'minimum': 5}, + 'max_unhealthy_upgraded_instance_percent': {'maximum': 100, 'minimum': 0}, + } + + _attribute_map = { + 'max_batch_instance_percent': {'key': 'maxBatchInstancePercent', 'type': 'int'}, + 'max_unhealthy_instance_percent': {'key': 'maxUnhealthyInstancePercent', 'type': 'int'}, + 'max_unhealthy_upgraded_instance_percent': {'key': 'maxUnhealthyUpgradedInstancePercent', 'type': 'int'}, + 'pause_time_between_batches': {'key': 'pauseTimeBetweenBatches', 'type': 'str'}, + 'enable_cross_zone_upgrade': {'key': 'enableCrossZoneUpgrade', 'type': 'bool'}, + 'prioritize_unhealthy_instances': {'key': 'prioritizeUnhealthyInstances', 'type': 'bool'}, + } + + def __init__( + self, + *, + max_batch_instance_percent: Optional[int] = None, + max_unhealthy_instance_percent: Optional[int] = None, + max_unhealthy_upgraded_instance_percent: Optional[int] = None, + pause_time_between_batches: Optional[str] = None, + enable_cross_zone_upgrade: Optional[bool] = None, + prioritize_unhealthy_instances: Optional[bool] = None, + **kwargs + ): + super(RollingUpgradePolicy, self).__init__(**kwargs) + self.max_batch_instance_percent = max_batch_instance_percent + self.max_unhealthy_instance_percent = max_unhealthy_instance_percent + self.max_unhealthy_upgraded_instance_percent = max_unhealthy_upgraded_instance_percent + self.pause_time_between_batches = pause_time_between_batches + self.enable_cross_zone_upgrade = enable_cross_zone_upgrade + self.prioritize_unhealthy_instances = prioritize_unhealthy_instances + + +class RollingUpgradeProgressInfo(msrest.serialization.Model): + """Information about the number of virtual machine instances in each upgrade state. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar successful_instance_count: The number of instances that have been successfully upgraded. + :vartype successful_instance_count: int + :ivar failed_instance_count: The number of instances that have failed to be upgraded + successfully. + :vartype failed_instance_count: int + :ivar in_progress_instance_count: The number of instances that are currently being upgraded. + :vartype in_progress_instance_count: int + :ivar pending_instance_count: The number of instances that have not yet begun to be upgraded. + :vartype pending_instance_count: int + """ + + _validation = { + 'successful_instance_count': {'readonly': True}, + 'failed_instance_count': {'readonly': True}, + 'in_progress_instance_count': {'readonly': True}, + 'pending_instance_count': {'readonly': True}, + } + + _attribute_map = { + 'successful_instance_count': {'key': 'successfulInstanceCount', 'type': 'int'}, + 'failed_instance_count': {'key': 'failedInstanceCount', 'type': 'int'}, + 'in_progress_instance_count': {'key': 'inProgressInstanceCount', 'type': 'int'}, + 'pending_instance_count': {'key': 'pendingInstanceCount', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(RollingUpgradeProgressInfo, self).__init__(**kwargs) + self.successful_instance_count = None + self.failed_instance_count = None + self.in_progress_instance_count = None + self.pending_instance_count = None + + +class RollingUpgradeRunningStatus(msrest.serialization.Model): + """Information about the current running state of the overall upgrade. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: Code indicating the current status of the upgrade. Possible values include: + "RollingForward", "Cancelled", "Completed", "Faulted". + :vartype code: str or ~azure.mgmt.compute.v2021_03_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. Possible values include: + "Start", "Cancel". + :vartype last_action: str or ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradeActionType + :ivar last_action_time: Last action time of the upgrade. + :vartype last_action_time: ~datetime.datetime + """ + + _validation = { + 'code': {'readonly': True}, + 'start_time': {'readonly': True}, + 'last_action': {'readonly': True}, + 'last_action_time': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'last_action': {'key': 'lastAction', 'type': 'str'}, + 'last_action_time': {'key': 'lastActionTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(RollingUpgradeRunningStatus, self).__init__(**kwargs) + self.code = None + self.start_time = None + self.last_action = None + self.last_action_time = None + + +class RollingUpgradeStatusInfo(Resource): + """The status of the latest virtual machine scale set rolling upgrade. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :ivar policy: The rolling upgrade policies applied for this upgrade. + :vartype policy: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradePolicy + :ivar running_status: Information about the current running state of the overall upgrade. + :vartype running_status: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradeRunningStatus + :ivar progress: Information about the number of virtual machine instances in each upgrade + state. + :vartype progress: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradeProgressInfo + :ivar error: Error details for this upgrade, if there are any. + :vartype error: ~azure.mgmt.compute.v2021_03_01.models.ApiError + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'policy': {'readonly': True}, + 'running_status': {'readonly': True}, + 'progress': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'policy': {'key': 'properties.policy', 'type': 'RollingUpgradePolicy'}, + 'running_status': {'key': 'properties.runningStatus', 'type': 'RollingUpgradeRunningStatus'}, + 'progress': {'key': 'properties.progress', 'type': 'RollingUpgradeProgressInfo'}, + 'error': {'key': 'properties.error', 'type': 'ApiError'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(RollingUpgradeStatusInfo, self).__init__(location=location, tags=tags, **kwargs) + self.policy = None + self.running_status = None + self.progress = None + self.error = None + + +class RunCommandDocumentBase(msrest.serialization.Model): + """Describes the properties of a Run Command metadata. + + All required parameters must be populated in order to send to Azure. + + :param schema: Required. The VM run command schema. + :type schema: str + :param id: Required. The VM run command id. + :type id: str + :param os_type: Required. The Operating System type. Possible values include: "Windows", + "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + :param label: Required. The VM run command label. + :type label: str + :param description: Required. The VM run command description. + :type description: str + """ + + _validation = { + 'schema': {'required': True}, + 'id': {'required': True}, + 'os_type': {'required': True}, + 'label': {'required': True}, + 'description': {'required': True}, + } + + _attribute_map = { + 'schema': {'key': '$schema', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + *, + schema: str, + id: str, + os_type: Union[str, "OperatingSystemTypes"], + label: str, + description: str, + **kwargs + ): + super(RunCommandDocumentBase, self).__init__(**kwargs) + self.schema = schema + self.id = id + self.os_type = os_type + self.label = label + self.description = description + + +class RunCommandDocument(RunCommandDocumentBase): + """Describes the properties of a Run Command. + + All required parameters must be populated in order to send to Azure. + + :param schema: Required. The VM run command schema. + :type schema: str + :param id: Required. The VM run command id. + :type id: str + :param os_type: Required. The Operating System type. Possible values include: "Windows", + "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + :param label: Required. The VM run command label. + :type label: str + :param description: Required. The VM run command description. + :type description: str + :param script: Required. The script to be executed. + :type script: list[str] + :param parameters: The parameters used by the script. + :type parameters: list[~azure.mgmt.compute.v2021_03_01.models.RunCommandParameterDefinition] + """ + + _validation = { + 'schema': {'required': True}, + 'id': {'required': True}, + 'os_type': {'required': True}, + 'label': {'required': True}, + 'description': {'required': True}, + 'script': {'required': True}, + } + + _attribute_map = { + 'schema': {'key': '$schema', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'label': {'key': 'label', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'script': {'key': 'script', 'type': '[str]'}, + 'parameters': {'key': 'parameters', 'type': '[RunCommandParameterDefinition]'}, + } + + def __init__( + self, + *, + schema: str, + id: str, + os_type: Union[str, "OperatingSystemTypes"], + label: str, + description: str, + script: List[str], + parameters: Optional[List["RunCommandParameterDefinition"]] = None, + **kwargs + ): + super(RunCommandDocument, self).__init__(schema=schema, id=id, os_type=os_type, label=label, description=description, **kwargs) + self.script = script + self.parameters = parameters + + +class RunCommandInput(msrest.serialization.Model): + """Capture Virtual Machine parameters. + + All required parameters must be populated in order to send to Azure. + + :param command_id: Required. The run command id. + :type command_id: str + :param script: Optional. The script to be executed. When this value is given, the given script + will override the default script of the command. + :type script: list[str] + :param parameters: The run command parameters. + :type parameters: list[~azure.mgmt.compute.v2021_03_01.models.RunCommandInputParameter] + """ + + _validation = { + 'command_id': {'required': True}, + } + + _attribute_map = { + 'command_id': {'key': 'commandId', 'type': 'str'}, + 'script': {'key': 'script', 'type': '[str]'}, + 'parameters': {'key': 'parameters', 'type': '[RunCommandInputParameter]'}, + } + + def __init__( + self, + *, + command_id: str, + script: Optional[List[str]] = None, + parameters: Optional[List["RunCommandInputParameter"]] = None, + **kwargs + ): + super(RunCommandInput, self).__init__(**kwargs) + self.command_id = command_id + self.script = script + self.parameters = parameters + + +class RunCommandInputParameter(msrest.serialization.Model): + """Describes the properties of a run command parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The run command parameter name. + :type name: str + :param value: Required. The run command parameter value. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + value: str, + **kwargs + ): + super(RunCommandInputParameter, self).__init__(**kwargs) + self.name = name + self.value = value + + +class RunCommandListResult(msrest.serialization.Model): + """The List Virtual Machine operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of virtual machine run commands. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.RunCommandDocumentBase] + :param next_link: The uri to fetch the next page of run commands. Call ListNext() with this to + fetch the next page of run commands. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RunCommandDocumentBase]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["RunCommandDocumentBase"], + next_link: Optional[str] = None, + **kwargs + ): + super(RunCommandListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class RunCommandParameterDefinition(msrest.serialization.Model): + """Describes the properties of a run command parameter. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The run command parameter name. + :type name: str + :param type: Required. The run command parameter type. + :type type: str + :param default_value: The run command parameter default value. + :type default_value: str + :param required: The run command parameter required. + :type required: bool + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'default_value': {'key': 'defaultValue', 'type': 'str'}, + 'required': {'key': 'required', 'type': 'bool'}, + } + + def __init__( + self, + *, + name: str, + type: str, + default_value: Optional[str] = None, + required: Optional[bool] = False, + **kwargs + ): + super(RunCommandParameterDefinition, self).__init__(**kwargs) + self.name = name + self.type = type + self.default_value = default_value + self.required = required + + +class RunCommandResult(msrest.serialization.Model): + """RunCommandResult. + + :param value: Run command operation response. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + *, + value: Optional[List["InstanceViewStatus"]] = None, + **kwargs + ): + super(RunCommandResult, self).__init__(**kwargs) + self.value = value + + +class ScaleInPolicy(msrest.serialization.Model): + """Describes a scale-in policy for a virtual machine scale set. + + :param rules: The rules to be followed when scaling-in a virtual machine scale set. + :code:`
    `:code:`
    ` Possible values are: :code:`
    `:code:`
    ` **Default** When a + virtual machine scale set is scaled in, the scale set will first be balanced across zones if it + is a zonal scale set. Then, it will be balanced across Fault Domains as far as possible. Within + each Fault Domain, the virtual machines chosen for removal will be the newest ones that are not + protected from scale-in. :code:`
    `:code:`
    ` **OldestVM** When a virtual machine scale set + is being scaled-in, the oldest virtual machines that are not protected from scale-in will be + chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced + across zones. Within each zone, the oldest virtual machines that are not protected will be + chosen for removal. :code:`
    `:code:`
    ` **NewestVM** When a virtual machine scale set is + being scaled-in, the newest virtual machines that are not protected from scale-in will be + chosen for removal. For zonal virtual machine scale sets, the scale set will first be balanced + across zones. Within each zone, the newest virtual machines that are not protected will be + chosen for removal. :code:`
    `:code:`
    `. + :type rules: list[str or + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetScaleInRules] + """ + + _attribute_map = { + 'rules': {'key': 'rules', 'type': '[str]'}, + } + + def __init__( + self, + *, + rules: Optional[List[Union[str, "VirtualMachineScaleSetScaleInRules"]]] = None, + **kwargs + ): + super(ScaleInPolicy, self).__init__(**kwargs) + self.rules = rules + + +class ScheduledEventsProfile(msrest.serialization.Model): + """ScheduledEventsProfile. + + :param terminate_notification_profile: Specifies Terminate Scheduled Event related + configurations. + :type terminate_notification_profile: + ~azure.mgmt.compute.v2021_03_01.models.TerminateNotificationProfile + """ + + _attribute_map = { + 'terminate_notification_profile': {'key': 'terminateNotificationProfile', 'type': 'TerminateNotificationProfile'}, + } + + def __init__( + self, + *, + terminate_notification_profile: Optional["TerminateNotificationProfile"] = None, + **kwargs + ): + super(ScheduledEventsProfile, self).__init__(**kwargs) + self.terminate_notification_profile = terminate_notification_profile + + +class SecurityProfile(msrest.serialization.Model): + """Specifies the Security profile settings for the virtual machine or virtual machine scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param uefi_settings: Specifies the security settings like secure boot and vTPM used while + creating the virtual machine. :code:`
    `:code:`
    `Minimum api-version: 2020-12-01. + :type uefi_settings: ~azure.mgmt.compute.v2021_03_01.models.UefiSettings + :param 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. + :code:`
    `:code:`
    ` Default: The Encryption at host will be disabled unless this property + is set to true for the resource. + :type encryption_at_host: bool + :ivar security_type: Specifies the SecurityType of the virtual machine. It is set as + TrustedLaunch to enable UefiSettings. :code:`
    `:code:`
    ` Default: UefiSettings will not + be enabled unless this property is set as TrustedLaunch. Default value: "TrustedLaunch". + :vartype security_type: str + """ + + _validation = { + 'security_type': {'constant': True}, + } + + _attribute_map = { + 'uefi_settings': {'key': 'uefiSettings', 'type': 'UefiSettings'}, + 'encryption_at_host': {'key': 'encryptionAtHost', 'type': 'bool'}, + 'security_type': {'key': 'securityType', 'type': 'str'}, + } + + security_type = "TrustedLaunch" + + def __init__( + self, + *, + uefi_settings: Optional["UefiSettings"] = None, + encryption_at_host: Optional[bool] = None, + **kwargs + ): + super(SecurityProfile, self).__init__(**kwargs) + self.uefi_settings = uefi_settings + self.encryption_at_host = encryption_at_host + + +class Sku(msrest.serialization.Model): + """Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name. + + :param name: The sku name. + :type name: str + :param tier: Specifies the tier of virtual machines in a scale set.:code:`
    `:code:`
    ` + Possible Values::code:`
    `:code:`
    ` **Standard**\ :code:`
    `:code:`
    ` + **Basic**. + :type tier: str + :param capacity: Specifies the number of virtual machines in the scale set. + :type capacity: long + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'long'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + tier: Optional[str] = None, + capacity: Optional[int] = None, + **kwargs + ): + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.capacity = capacity + + +class SshConfiguration(msrest.serialization.Model): + """SSH configuration for Linux based VMs running on Azure. + + :param public_keys: The list of SSH public keys used to authenticate with linux based VMs. + :type public_keys: list[~azure.mgmt.compute.v2021_03_01.models.SshPublicKey] + """ + + _attribute_map = { + 'public_keys': {'key': 'publicKeys', 'type': '[SshPublicKey]'}, + } + + def __init__( + self, + *, + public_keys: Optional[List["SshPublicKey"]] = None, + **kwargs + ): + super(SshConfiguration, self).__init__(**kwargs) + self.public_keys = public_keys + + +class SshPublicKey(msrest.serialization.Model): + """Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. + + :param path: Specifies the full path on the created VM where ssh public key is stored. If the + file already exists, the specified key is appended to the file. Example: + /home/user/.ssh/authorized_keys. + :type path: str + :param key_data: SSH public key certificate used to authenticate with the VM through ssh. The + key needs to be at least 2048-bit and in ssh-rsa format. :code:`
    `:code:`
    ` For creating + ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in + Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). + :type key_data: str + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'key_data': {'key': 'keyData', 'type': 'str'}, + } + + def __init__( + self, + *, + path: Optional[str] = None, + key_data: Optional[str] = None, + **kwargs + ): + super(SshPublicKey, self).__init__(**kwargs) + self.path = path + self.key_data = key_data + + +class SshPublicKeyGenerateKeyPairResult(msrest.serialization.Model): + """Response from generation of an SSH key pair. + + All required parameters must be populated in order to send to Azure. + + :param private_key: Required. Private key portion of the key pair used to authenticate to a + virtual machine through ssh. The private key is returned in RFC3447 format and should be + treated as a secret. + :type private_key: str + :param public_key: Required. Public key portion of the key pair used to authenticate to a + virtual machine through ssh. The public key is in ssh-rsa format. + :type public_key: str + :param id: Required. The ARM resource id in the form of + /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{SshPublicKeyName}. + :type id: str + """ + + _validation = { + 'private_key': {'required': True}, + 'public_key': {'required': True}, + 'id': {'required': True}, + } + + _attribute_map = { + 'private_key': {'key': 'privateKey', 'type': 'str'}, + 'public_key': {'key': 'publicKey', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + *, + private_key: str, + public_key: str, + id: str, + **kwargs + ): + super(SshPublicKeyGenerateKeyPairResult, self).__init__(**kwargs) + self.private_key = private_key + self.public_key = public_key + self.id = id + + +class SshPublicKeyResource(Resource): + """Specifies information about the SSH public key. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param public_key: SSH public key used to authenticate to a virtual machine through ssh. If + this property is not initially provided when the resource is created, the publicKey property + will be populated when generateKeyPair is called. If the public key is provided upon resource + creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. + :type public_key: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'public_key': {'key': 'properties.publicKey', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + public_key: Optional[str] = None, + **kwargs + ): + super(SshPublicKeyResource, self).__init__(location=location, tags=tags, **kwargs) + self.public_key = public_key + + +class SshPublicKeysGroupListResult(msrest.serialization.Model): + """The list SSH public keys operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of SSH public keys. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyResource] + :param 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. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[SshPublicKeyResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["SshPublicKeyResource"], + next_link: Optional[str] = None, + **kwargs + ): + super(SshPublicKeysGroupListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class SshPublicKeyUpdateResource(UpdateResource): + """Specifies information about the SSH public key. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param public_key: SSH public key used to authenticate to a virtual machine through ssh. If + this property is not initially provided when the resource is created, the publicKey property + will be populated when generateKeyPair is called. If the public key is provided upon resource + creation, the provided public key needs to be at least 2048-bit and in ssh-rsa format. + :type public_key: str + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'public_key': {'key': 'properties.publicKey', 'type': 'str'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + public_key: Optional[str] = None, + **kwargs + ): + super(SshPublicKeyUpdateResource, self).__init__(tags=tags, **kwargs) + self.public_key = public_key + + +class StatusCodeCount(msrest.serialization.Model): + """StatusCodeCount. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: The instance view status code. + :vartype code: str + :ivar count: Number of instances having this status code. + :vartype count: int + """ + + _validation = { + 'code': {'readonly': True}, + 'count': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(StatusCodeCount, self).__init__(**kwargs) + self.code = None + self.count = None + + +class StorageProfile(msrest.serialization.Model): + """Specifies the storage settings for the virtual machine disks. + + :param image_reference: Specifies information about the image to use. You can specify + 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. + :type image_reference: ~azure.mgmt.compute.v2021_03_01.models.ImageReference + :param os_disk: Specifies information about the operating system disk used by the virtual + machine. :code:`
    `:code:`
    ` For more information about disks, see `About disks and VHDs + for Azure virtual machines + `_. + :type os_disk: ~azure.mgmt.compute.v2021_03_01.models.OSDisk + :param 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 + `_. + :type data_disks: list[~azure.mgmt.compute.v2021_03_01.models.DataDisk] + """ + + _attribute_map = { + 'image_reference': {'key': 'imageReference', 'type': 'ImageReference'}, + 'os_disk': {'key': 'osDisk', 'type': 'OSDisk'}, + 'data_disks': {'key': 'dataDisks', 'type': '[DataDisk]'}, + } + + def __init__( + self, + *, + image_reference: Optional["ImageReference"] = None, + os_disk: Optional["OSDisk"] = None, + data_disks: Optional[List["DataDisk"]] = None, + **kwargs + ): + super(StorageProfile, self).__init__(**kwargs) + self.image_reference = image_reference + self.os_disk = os_disk + self.data_disks = data_disks + + +class SubResourceReadOnly(msrest.serialization.Model): + """SubResourceReadOnly. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SubResourceReadOnly, self).__init__(**kwargs) + self.id = None + + +class SubResourceWithColocationStatus(SubResource): + """SubResourceWithColocationStatus. + + :param id: Resource Id. + :type id: str + :param colocation_status: Describes colocation status of a resource in the Proximity Placement + Group. + :type colocation_status: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'colocation_status': {'key': 'colocationStatus', 'type': 'InstanceViewStatus'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + colocation_status: Optional["InstanceViewStatus"] = None, + **kwargs + ): + super(SubResourceWithColocationStatus, self).__init__(id=id, **kwargs) + self.colocation_status = colocation_status + + +class TerminateNotificationProfile(msrest.serialization.Model): + """TerminateNotificationProfile. + + :param not_before_timeout: Configurable length of time a Virtual Machine being deleted will + have to potentially approve the Terminate Scheduled Event before the event is auto approved + (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 + minutes (PT5M). + :type not_before_timeout: str + :param enable: Specifies whether the Terminate Scheduled event is enabled or disabled. + :type enable: bool + """ + + _attribute_map = { + 'not_before_timeout': {'key': 'notBeforeTimeout', 'type': 'str'}, + 'enable': {'key': 'enable', 'type': 'bool'}, + } + + def __init__( + self, + *, + not_before_timeout: Optional[str] = None, + enable: Optional[bool] = None, + **kwargs + ): + super(TerminateNotificationProfile, self).__init__(**kwargs) + self.not_before_timeout = not_before_timeout + self.enable = enable + + +class ThrottledRequestsInput(LogAnalyticsInputBase): + """Api request input for LogAnalytics getThrottledRequests Api. + + All required parameters must be populated in order to send to Azure. + + :param blob_container_sas_uri: Required. SAS Uri of the logging blob container to which + LogAnalytics Api writes output logs to. + :type blob_container_sas_uri: str + :param from_time: Required. From time of the query. + :type from_time: ~datetime.datetime + :param to_time: Required. To time of the query. + :type to_time: ~datetime.datetime + :param group_by_throttle_policy: Group query result by Throttle Policy applied. + :type group_by_throttle_policy: bool + :param group_by_operation_name: Group query result by Operation Name. + :type group_by_operation_name: bool + :param group_by_resource_name: Group query result by Resource Name. + :type group_by_resource_name: bool + :param group_by_client_application_id: Group query result by Client Application ID. + :type group_by_client_application_id: bool + :param group_by_user_agent: Group query result by User Agent. + :type group_by_user_agent: bool + """ + + _validation = { + 'blob_container_sas_uri': {'required': True}, + 'from_time': {'required': True}, + 'to_time': {'required': True}, + } + + _attribute_map = { + 'blob_container_sas_uri': {'key': 'blobContainerSasUri', 'type': 'str'}, + 'from_time': {'key': 'fromTime', 'type': 'iso-8601'}, + 'to_time': {'key': 'toTime', 'type': 'iso-8601'}, + 'group_by_throttle_policy': {'key': 'groupByThrottlePolicy', 'type': 'bool'}, + 'group_by_operation_name': {'key': 'groupByOperationName', 'type': 'bool'}, + 'group_by_resource_name': {'key': 'groupByResourceName', 'type': 'bool'}, + 'group_by_client_application_id': {'key': 'groupByClientApplicationId', 'type': 'bool'}, + 'group_by_user_agent': {'key': 'groupByUserAgent', 'type': 'bool'}, + } + + def __init__( + self, + *, + blob_container_sas_uri: str, + from_time: datetime.datetime, + to_time: datetime.datetime, + group_by_throttle_policy: Optional[bool] = None, + group_by_operation_name: Optional[bool] = None, + group_by_resource_name: Optional[bool] = None, + group_by_client_application_id: Optional[bool] = None, + group_by_user_agent: Optional[bool] = None, + **kwargs + ): + super(ThrottledRequestsInput, self).__init__(blob_container_sas_uri=blob_container_sas_uri, from_time=from_time, to_time=to_time, group_by_throttle_policy=group_by_throttle_policy, group_by_operation_name=group_by_operation_name, group_by_resource_name=group_by_resource_name, group_by_client_application_id=group_by_client_application_id, group_by_user_agent=group_by_user_agent, **kwargs) + + +class UefiSettings(msrest.serialization.Model): + """Specifies the security settings like secure boot and vTPM used while creating the virtual machine. :code:`
    `:code:`
    `Minimum api-version: 2020-12-01. + + :param secure_boot_enabled: Specifies whether secure boot should be enabled on the virtual + machine. :code:`
    `:code:`
    `Minimum api-version: 2020-12-01. + :type secure_boot_enabled: bool + :param v_tpm_enabled: Specifies whether vTPM should be enabled on the virtual machine. + :code:`
    `:code:`
    `Minimum api-version: 2020-12-01. + :type v_tpm_enabled: bool + """ + + _attribute_map = { + 'secure_boot_enabled': {'key': 'secureBootEnabled', 'type': 'bool'}, + 'v_tpm_enabled': {'key': 'vTpmEnabled', 'type': 'bool'}, + } + + def __init__( + self, + *, + secure_boot_enabled: Optional[bool] = None, + v_tpm_enabled: Optional[bool] = None, + **kwargs + ): + super(UefiSettings, self).__init__(**kwargs) + self.secure_boot_enabled = secure_boot_enabled + self.v_tpm_enabled = v_tpm_enabled + + +class UpdateDomain(msrest.serialization.Model): + """Defines an update domain for the cloud service. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource Name. + :vartype name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UpdateDomain, self).__init__(**kwargs) + self.id = None + self.name = None + + +class UpdateDomainListResult(msrest.serialization.Model): + """UpdateDomainListResult. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.UpdateDomain] + :param next_link: + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[UpdateDomain]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["UpdateDomain"], + next_link: Optional[str] = None, + **kwargs + ): + super(UpdateDomainListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class UpgradeOperationHistoricalStatusInfo(msrest.serialization.Model): + """Virtual Machine Scale Set OS Upgrade History operation response. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar properties: Information about the properties of the upgrade operation. + :vartype properties: + ~azure.mgmt.compute.v2021_03_01.models.UpgradeOperationHistoricalStatusInfoProperties + :ivar type: Resource type. + :vartype type: str + :ivar location: Resource location. + :vartype location: str + """ + + _validation = { + 'properties': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'UpgradeOperationHistoricalStatusInfoProperties'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UpgradeOperationHistoricalStatusInfo, self).__init__(**kwargs) + self.properties = None + self.type = None + self.location = None + + +class UpgradeOperationHistoricalStatusInfoProperties(msrest.serialization.Model): + """Describes each OS upgrade on the Virtual Machine Scale Set. + + 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.v2021_03_01.models.UpgradeOperationHistoryStatus + :ivar progress: Counts of the VMs in each state. + :vartype progress: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradeProgressInfo + :ivar error: Error Details for this upgrade if there are any. + :vartype error: ~azure.mgmt.compute.v2021_03_01.models.ApiError + :ivar started_by: Invoker of the Upgrade Operation. Possible values include: "Unknown", "User", + "Platform". + :vartype started_by: str or ~azure.mgmt.compute.v2021_03_01.models.UpgradeOperationInvoker + :ivar target_image_reference: Image Reference details. + :vartype target_image_reference: ~azure.mgmt.compute.v2021_03_01.models.ImageReference + :ivar rollback_info: Information about OS rollback if performed. + :vartype rollback_info: ~azure.mgmt.compute.v2021_03_01.models.RollbackStatusInfo + """ + + _validation = { + 'running_status': {'readonly': True}, + 'progress': {'readonly': True}, + 'error': {'readonly': True}, + 'started_by': {'readonly': True}, + 'target_image_reference': {'readonly': True}, + 'rollback_info': {'readonly': True}, + } + + _attribute_map = { + 'running_status': {'key': 'runningStatus', 'type': 'UpgradeOperationHistoryStatus'}, + 'progress': {'key': 'progress', 'type': 'RollingUpgradeProgressInfo'}, + 'error': {'key': 'error', 'type': 'ApiError'}, + 'started_by': {'key': 'startedBy', 'type': 'str'}, + 'target_image_reference': {'key': 'targetImageReference', 'type': 'ImageReference'}, + 'rollback_info': {'key': 'rollbackInfo', 'type': 'RollbackStatusInfo'}, + } + + def __init__( + self, + **kwargs + ): + super(UpgradeOperationHistoricalStatusInfoProperties, self).__init__(**kwargs) + self.running_status = None + self.progress = None + self.error = None + self.started_by = None + self.target_image_reference = None + self.rollback_info = None + + +class UpgradeOperationHistoryStatus(msrest.serialization.Model): + """Information about the current running state of the overall upgrade. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: Code indicating the current status of the upgrade. Possible values include: + "RollingForward", "Cancelled", "Completed", "Faulted". + :vartype code: str or ~azure.mgmt.compute.v2021_03_01.models.UpgradeState + :ivar start_time: Start time of the upgrade. + :vartype start_time: ~datetime.datetime + :ivar end_time: End time of the upgrade. + :vartype end_time: ~datetime.datetime + """ + + _validation = { + 'code': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(UpgradeOperationHistoryStatus, self).__init__(**kwargs) + self.code = None + self.start_time = None + self.end_time = None + + +class UpgradePolicy(msrest.serialization.Model): + """Describes an upgrade policy - automatic, manual, or rolling. + + :param mode: Specifies the mode of an upgrade to virtual machines in the scale set.:code:`
    `:code:`
    ` Possible values are::code:`
    `:code:`
    ` **Manual** - You control + the application of updates to virtual machines in the scale set. You do this by using the + manualUpgrade action.:code:`
    `:code:`
    ` **Automatic** - All virtual machines in the + scale set are automatically updated at the same time. Possible values include: "Automatic", + "Manual", "Rolling". + :type mode: str or ~azure.mgmt.compute.v2021_03_01.models.UpgradeMode + :param rolling_upgrade_policy: The configuration parameters used while performing a rolling + upgrade. + :type rolling_upgrade_policy: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradePolicy + :param automatic_os_upgrade_policy: Configuration parameters used for performing automatic OS + Upgrade. + :type automatic_os_upgrade_policy: + ~azure.mgmt.compute.v2021_03_01.models.AutomaticOSUpgradePolicy + """ + + _attribute_map = { + 'mode': {'key': 'mode', 'type': 'str'}, + 'rolling_upgrade_policy': {'key': 'rollingUpgradePolicy', 'type': 'RollingUpgradePolicy'}, + 'automatic_os_upgrade_policy': {'key': 'automaticOSUpgradePolicy', 'type': 'AutomaticOSUpgradePolicy'}, + } + + def __init__( + self, + *, + mode: Optional[Union[str, "UpgradeMode"]] = None, + rolling_upgrade_policy: Optional["RollingUpgradePolicy"] = None, + automatic_os_upgrade_policy: Optional["AutomaticOSUpgradePolicy"] = None, + **kwargs + ): + super(UpgradePolicy, self).__init__(**kwargs) + self.mode = mode + self.rolling_upgrade_policy = rolling_upgrade_policy + self.automatic_os_upgrade_policy = automatic_os_upgrade_policy + + +class Usage(msrest.serialization.Model): + """Describes Compute Resource Usage. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar unit: Required. An enum describing the unit of usage measurement. Default value: "Count". + :vartype unit: str + :param current_value: Required. The current usage of the resource. + :type current_value: int + :param limit: Required. The maximum permitted usage of the resource. + :type limit: long + :param name: Required. The name of the type of usage. + :type name: ~azure.mgmt.compute.v2021_03_01.models.UsageName + """ + + _validation = { + 'unit': {'required': True, 'constant': True}, + 'current_value': {'required': True}, + 'limit': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'unit': {'key': 'unit', 'type': 'str'}, + 'current_value': {'key': 'currentValue', 'type': 'int'}, + 'limit': {'key': 'limit', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'UsageName'}, + } + + unit = "Count" + + def __init__( + self, + *, + current_value: int, + limit: int, + name: "UsageName", + **kwargs + ): + super(Usage, self).__init__(**kwargs) + self.current_value = current_value + self.limit = limit + self.name = name + + +class UsageName(msrest.serialization.Model): + """The Usage Names. + + :param value: The name of the resource. + :type value: str + :param localized_value: The localized name of the resource. + :type localized_value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[str] = None, + localized_value: Optional[str] = None, + **kwargs + ): + super(UsageName, self).__init__(**kwargs) + self.value = value + self.localized_value = localized_value + + +class UserAssignedIdentitiesValue(msrest.serialization.Model): + """UserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class VaultCertificate(msrest.serialization.Model): + """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM. + + :param 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 + certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. + :type certificate_url: str + :param certificate_store: For Windows VMs, specifies the certificate store on the Virtual + Machine to which the certificate should be added. The specified certificate store is implicitly + in the LocalMachine account. :code:`
    `:code:`
    `For Linux VMs, the certificate file is + placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt + for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of + these files are .pem formatted. + :type certificate_store: str + """ + + _attribute_map = { + 'certificate_url': {'key': 'certificateUrl', 'type': 'str'}, + 'certificate_store': {'key': 'certificateStore', 'type': 'str'}, + } + + def __init__( + self, + *, + certificate_url: Optional[str] = None, + certificate_store: Optional[str] = None, + **kwargs + ): + super(VaultCertificate, self).__init__(**kwargs) + self.certificate_url = certificate_url + self.certificate_store = certificate_store + + +class VaultSecretGroup(msrest.serialization.Model): + """Describes a set of certificates which are all in the same Key Vault. + + :param source_vault: The relative URL of the Key Vault containing all of the certificates in + VaultCertificates. + :type source_vault: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param vault_certificates: The list of key vault references in SourceVault which contain + certificates. + :type vault_certificates: list[~azure.mgmt.compute.v2021_03_01.models.VaultCertificate] + """ + + _attribute_map = { + 'source_vault': {'key': 'sourceVault', 'type': 'SubResource'}, + 'vault_certificates': {'key': 'vaultCertificates', 'type': '[VaultCertificate]'}, + } + + def __init__( + self, + *, + source_vault: Optional["SubResource"] = None, + vault_certificates: Optional[List["VaultCertificate"]] = None, + **kwargs + ): + super(VaultSecretGroup, self).__init__(**kwargs) + self.source_vault = source_vault + self.vault_certificates = vault_certificates + + +class VirtualHardDisk(msrest.serialization.Model): + """Describes the uri of a disk. + + :param uri: Specifies the virtual hard disk's uri. + :type uri: str + """ + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + } + + def __init__( + self, + *, + uri: Optional[str] = None, + **kwargs + ): + super(VirtualHardDisk, self).__init__(**kwargs) + self.uri = uri + + +class VirtualMachine(Resource): + """Describes a Virtual Machine. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param 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**. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.Plan + :ivar resources: The virtual machine child extension resources. + :vartype resources: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension] + :param identity: The identity of the virtual machine, if configured. + :type identity: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineIdentity + :param zones: The virtual machine zones. + :type zones: list[str] + :param extended_location: The extended location of the Virtual Machine. + :type extended_location: ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocation + :param hardware_profile: Specifies the hardware settings for the virtual machine. + :type hardware_profile: ~azure.mgmt.compute.v2021_03_01.models.HardwareProfile + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: ~azure.mgmt.compute.v2021_03_01.models.StorageProfile + :param additional_capabilities: Specifies additional capabilities enabled or disabled on the + virtual machine. + :type additional_capabilities: ~azure.mgmt.compute.v2021_03_01.models.AdditionalCapabilities + :param os_profile: Specifies the operating system settings used while creating the virtual + machine. Some of the settings cannot be changed once VM is provisioned. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.OSProfile + :param network_profile: Specifies the network interfaces of the virtual machine. + :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.NetworkProfile + :param security_profile: Specifies the Security related profile settings for the virtual + machine. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + :param diagnostics_profile: Specifies the boot diagnostic settings state. + :code:`
    `:code:`
    `Minimum api-version: 2015-06-15. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param 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 + sets, see `Availability sets overview + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation + time. The availability set to which the 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. + :code:`
    `:code:`
    `This property cannot exist along with a non-null + properties.virtualMachineScaleSet reference. + :type availability_set: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param 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. :code:`
    `:code:`
    `This property cannot exist along with a + non-null properties.availabilitySet reference. :code:`
    `:code:`
    `Minimum api‐version: + 2019‐03‐01. + :type virtual_machine_scale_set: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param proximity_placement_group: Specifies information about the proximity placement group + that the virtual machine should be assigned to. :code:`
    `:code:`
    `Minimum api-version: + 2018-04-01. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param priority: Specifies the priority for the virtual machine. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. Possible values include: "Regular", + "Low", "Spot". + :type priority: str or ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePriorityTypes + :param eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and + Azure Spot scale set. :code:`
    `:code:`
    `For Azure Spot virtual machines, both + 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. + :code:`
    `:code:`
    `For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported + and the minimum api-version is 2017-10-30-preview. Possible values include: "Deallocate", + "Delete". + :type eviction_policy: str or + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineEvictionPolicyTypes + :param billing_profile: Specifies the billing related details of a Azure Spot virtual machine. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + :type billing_profile: ~azure.mgmt.compute.v2021_03_01.models.BillingProfile + :param host: Specifies information about the dedicated host that the virtual machine resides + in. :code:`
    `:code:`
    `Minimum api-version: 2018-10-01. + :type host: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param host_group: Specifies information about the dedicated host group that the virtual + machine resides in. :code:`
    `:code:`
    `Minimum api-version: 2020-06-01. + :code:`
    `:code:`
    `NOTE: User cannot specify both host and hostGroup properties. + :type host_group: ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.VirtualMachineInstanceView + :param 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 + :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: + :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) + :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server + `_ + :code:`
    `:code:`
    ` `Azure Hybrid Use Benefit for Linux Server + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type license_type: str + :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and + stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. + :vartype vm_id: str + :param 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). :code:`
    `:code:`
    ` Minimum + api-version: 2020-06-01. + :type extensions_time_budget: str + :param platform_fault_domain: Specifies the scale set logical fault domain into which the + Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned + to a fault domain that best maintains balance across available fault + domains.:code:`
    `:code:`
  • `This is applicable only if the 'virtualMachineScaleSet' + property of this Virtual Machine is set.:code:`
  • `The Virtual Machine Scale Set that is + referenced, must have 'platformFaultDomainCount' > 1.:code:`
  • `This property cannot be + updated once the Virtual Machine is created.:code:`
  • `Fault domain assignment can be viewed + in the Virtual Machine Instance View.:code:`
    `:code:`
    `Minimum api‐version: 2020‐12‐01. + :type platform_fault_domain: int + :param scheduled_events_profile: Specifies Scheduled Event related configurations. + :type scheduled_events_profile: ~azure.mgmt.compute.v2021_03_01.models.ScheduledEventsProfile + :param 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. + :type user_data: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'resources': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, + 'vm_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'}, + 'identity': {'key': 'identity', 'type': 'VirtualMachineIdentity'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'}, + 'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'security_profile': {'key': 'properties.securityProfile', 'type': 'SecurityProfile'}, + 'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'}, + 'virtual_machine_scale_set': {'key': 'properties.virtualMachineScaleSet', 'type': 'SubResource'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + 'priority': {'key': 'properties.priority', 'type': 'str'}, + 'eviction_policy': {'key': 'properties.evictionPolicy', 'type': 'str'}, + 'billing_profile': {'key': 'properties.billingProfile', 'type': 'BillingProfile'}, + 'host': {'key': 'properties.host', 'type': 'SubResource'}, + 'host_group': {'key': 'properties.hostGroup', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'}, + 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'vm_id': {'key': 'properties.vmId', 'type': 'str'}, + 'extensions_time_budget': {'key': 'properties.extensionsTimeBudget', 'type': 'str'}, + 'platform_fault_domain': {'key': 'properties.platformFaultDomain', 'type': 'int'}, + 'scheduled_events_profile': {'key': 'properties.scheduledEventsProfile', 'type': 'ScheduledEventsProfile'}, + 'user_data': {'key': 'properties.userData', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + plan: Optional["Plan"] = None, + identity: Optional["VirtualMachineIdentity"] = None, + zones: Optional[List[str]] = None, + extended_location: Optional["ExtendedLocation"] = None, + hardware_profile: Optional["HardwareProfile"] = None, + storage_profile: Optional["StorageProfile"] = None, + additional_capabilities: Optional["AdditionalCapabilities"] = None, + os_profile: Optional["OSProfile"] = None, + network_profile: Optional["NetworkProfile"] = None, + security_profile: Optional["SecurityProfile"] = None, + diagnostics_profile: Optional["DiagnosticsProfile"] = None, + availability_set: Optional["SubResource"] = None, + virtual_machine_scale_set: Optional["SubResource"] = None, + proximity_placement_group: Optional["SubResource"] = None, + priority: Optional[Union[str, "VirtualMachinePriorityTypes"]] = None, + eviction_policy: Optional[Union[str, "VirtualMachineEvictionPolicyTypes"]] = None, + billing_profile: Optional["BillingProfile"] = None, + host: Optional["SubResource"] = None, + host_group: Optional["SubResource"] = None, + license_type: Optional[str] = None, + extensions_time_budget: Optional[str] = None, + platform_fault_domain: Optional[int] = None, + scheduled_events_profile: Optional["ScheduledEventsProfile"] = None, + user_data: Optional[str] = None, + **kwargs + ): + super(VirtualMachine, self).__init__(location=location, tags=tags, **kwargs) + self.plan = plan + self.resources = None + self.identity = identity + self.zones = zones + self.extended_location = extended_location + self.hardware_profile = hardware_profile + self.storage_profile = storage_profile + self.additional_capabilities = additional_capabilities + self.os_profile = os_profile + self.network_profile = network_profile + self.security_profile = security_profile + self.diagnostics_profile = diagnostics_profile + self.availability_set = availability_set + self.virtual_machine_scale_set = virtual_machine_scale_set + self.proximity_placement_group = proximity_placement_group + self.priority = priority + self.eviction_policy = eviction_policy + self.billing_profile = billing_profile + self.host = host + self.host_group = host_group + self.provisioning_state = None + self.instance_view = None + self.license_type = license_type + self.vm_id = None + self.extensions_time_budget = extensions_time_budget + self.platform_fault_domain = platform_fault_domain + self.scheduled_events_profile = scheduled_events_profile + self.user_data = user_data + + +class VirtualMachineAgentInstanceView(msrest.serialization.Model): + """The instance view of the VM Agent running on the virtual machine. + + :param vm_agent_version: The VM Agent full version. + :type vm_agent_version: str + :param extension_handlers: The virtual machine extension handler instance view. + :type extension_handlers: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionHandlerInstanceView] + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _attribute_map = { + 'vm_agent_version': {'key': 'vmAgentVersion', 'type': 'str'}, + 'extension_handlers': {'key': 'extensionHandlers', 'type': '[VirtualMachineExtensionHandlerInstanceView]'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + *, + vm_agent_version: Optional[str] = None, + extension_handlers: Optional[List["VirtualMachineExtensionHandlerInstanceView"]] = None, + statuses: Optional[List["InstanceViewStatus"]] = None, + **kwargs + ): + super(VirtualMachineAgentInstanceView, self).__init__(**kwargs) + self.vm_agent_version = vm_agent_version + self.extension_handlers = extension_handlers + self.statuses = statuses + + +class VirtualMachineAssessPatchesResult(msrest.serialization.Model): + """Describes the properties of an AssessPatches result. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", + or "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.compute.v2021_03_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 + :ivar reboot_pending: The overall reboot status of the VM. It will be true when partially + installed patches require a reboot to complete installation but the reboot has not yet + occurred. + :vartype reboot_pending: bool + :ivar critical_and_security_patch_count: The number of critical or security patches that have + been detected as available and not yet installed. + :vartype critical_and_security_patch_count: int + :ivar other_patch_count: The number of all available patches excluding critical and security. + :vartype other_patch_count: int + :ivar start_date_time: The UTC timestamp when the operation began. + :vartype start_date_time: ~datetime.datetime + :ivar available_patches: The list of patches that have been detected as available for + installation. + :vartype available_patches: + list[~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.ApiError + """ + + _validation = { + 'status': {'readonly': True}, + 'assessment_activity_id': {'readonly': True}, + 'reboot_pending': {'readonly': True}, + 'critical_and_security_patch_count': {'readonly': True}, + 'other_patch_count': {'readonly': True}, + 'start_date_time': {'readonly': True}, + 'available_patches': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'assessment_activity_id': {'key': 'assessmentActivityId', 'type': 'str'}, + 'reboot_pending': {'key': 'rebootPending', 'type': 'bool'}, + 'critical_and_security_patch_count': {'key': 'criticalAndSecurityPatchCount', 'type': 'int'}, + 'other_patch_count': {'key': 'otherPatchCount', 'type': 'int'}, + 'start_date_time': {'key': 'startDateTime', 'type': 'iso-8601'}, + 'available_patches': {'key': 'availablePatches', 'type': '[VirtualMachineSoftwarePatchProperties]'}, + 'error': {'key': 'error', 'type': 'ApiError'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineAssessPatchesResult, self).__init__(**kwargs) + self.status = None + self.assessment_activity_id = None + self.reboot_pending = None + self.critical_and_security_patch_count = None + self.other_patch_count = None + self.start_date_time = None + self.available_patches = None + self.error = None + + +class VirtualMachineCaptureParameters(msrest.serialization.Model): + """Capture Virtual Machine parameters. + + All required parameters must be populated in order to send to Azure. + + :param vhd_prefix: Required. The captured virtual hard disk's name prefix. + :type vhd_prefix: str + :param destination_container_name: Required. The destination container name. + :type destination_container_name: str + :param overwrite_vhds: Required. Specifies whether to overwrite the destination virtual hard + disk, in case of conflict. + :type overwrite_vhds: bool + """ + + _validation = { + 'vhd_prefix': {'required': True}, + 'destination_container_name': {'required': True}, + 'overwrite_vhds': {'required': True}, + } + + _attribute_map = { + 'vhd_prefix': {'key': 'vhdPrefix', 'type': 'str'}, + 'destination_container_name': {'key': 'destinationContainerName', 'type': 'str'}, + 'overwrite_vhds': {'key': 'overwriteVhds', 'type': 'bool'}, + } + + def __init__( + self, + *, + vhd_prefix: str, + destination_container_name: str, + overwrite_vhds: bool, + **kwargs + ): + super(VirtualMachineCaptureParameters, self).__init__(**kwargs) + self.vhd_prefix = vhd_prefix + self.destination_container_name = destination_container_name + self.overwrite_vhds = overwrite_vhds + + +class VirtualMachineCaptureResult(SubResource): + """Output of virtual machine capture operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param id: Resource Id. + :type id: str + :ivar schema: the schema of the captured virtual machine. + :vartype schema: str + :ivar content_version: the version of the content. + :vartype content_version: str + :ivar parameters: parameters of the captured virtual machine. + :vartype parameters: any + :ivar resources: a list of resource items of the captured virtual machine. + :vartype resources: list[any] + """ + + _validation = { + 'schema': {'readonly': True}, + 'content_version': {'readonly': True}, + 'parameters': {'readonly': True}, + 'resources': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'schema': {'key': '$schema', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'resources': {'key': 'resources', 'type': '[object]'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + **kwargs + ): + super(VirtualMachineCaptureResult, self).__init__(id=id, **kwargs) + self.schema = None + self.content_version = None + self.parameters = None + self.resources = None + + +class VirtualMachineExtension(Resource): + """Describes a Virtual Machine Extension. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param force_update_tag: How the extension handler should be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_type: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type_properties_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param instance_view: The virtual machine extension instance view. + :type instance_view: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionInstanceView + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + force_update_tag: Optional[str] = None, + publisher: Optional[str] = None, + type_properties_type: Optional[str] = None, + type_handler_version: Optional[str] = None, + auto_upgrade_minor_version: Optional[bool] = None, + enable_automatic_upgrade: Optional[bool] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, + instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, + **kwargs + ): + super(VirtualMachineExtension, self).__init__(location=location, tags=tags, **kwargs) + self.force_update_tag = force_update_tag + self.publisher = publisher + self.type_properties_type = type_properties_type + self.type_handler_version = type_handler_version + self.auto_upgrade_minor_version = auto_upgrade_minor_version + self.enable_automatic_upgrade = enable_automatic_upgrade + self.settings = settings + self.protected_settings = protected_settings + self.provisioning_state = None + self.instance_view = instance_view + + +class VirtualMachineExtensionHandlerInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine extension handler. + + :param type: Specifies the type of the extension; an example is "CustomScriptExtension". + :type type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param status: The extension handler status. + :type status: ~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'InstanceViewStatus'}, + } + + def __init__( + self, + *, + type: Optional[str] = None, + type_handler_version: Optional[str] = None, + status: Optional["InstanceViewStatus"] = None, + **kwargs + ): + super(VirtualMachineExtensionHandlerInstanceView, self).__init__(**kwargs) + self.type = type + self.type_handler_version = type_handler_version + self.status = status + + +class VirtualMachineExtensionImage(Resource): + """Describes a Virtual Machine Extension Image. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param operating_system: The operating system this extension supports. + :type operating_system: str + :param compute_role: The type of role (IaaS or PaaS) this extension supports. + :type compute_role: str + :param handler_schema: The schema defined by publisher, where extension consumers should + provide settings in a matching schema. + :type handler_schema: str + :param vm_scale_set_enabled: Whether the extension can be used on xRP VMScaleSets. By default + existing extensions are usable on scalesets, but there might be cases where a publisher wants + to explicitly indicate the extension is only enabled for CRP VMs but not VMSS. + :type vm_scale_set_enabled: bool + :param supports_multiple_extensions: Whether the handler can support multiple extensions. + :type supports_multiple_extensions: bool + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'operating_system': {'key': 'properties.operatingSystem', 'type': 'str'}, + 'compute_role': {'key': 'properties.computeRole', 'type': 'str'}, + 'handler_schema': {'key': 'properties.handlerSchema', 'type': 'str'}, + 'vm_scale_set_enabled': {'key': 'properties.vmScaleSetEnabled', 'type': 'bool'}, + 'supports_multiple_extensions': {'key': 'properties.supportsMultipleExtensions', 'type': 'bool'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + operating_system: Optional[str] = None, + compute_role: Optional[str] = None, + handler_schema: Optional[str] = None, + vm_scale_set_enabled: Optional[bool] = None, + supports_multiple_extensions: Optional[bool] = None, + **kwargs + ): + super(VirtualMachineExtensionImage, self).__init__(location=location, tags=tags, **kwargs) + self.operating_system = operating_system + self.compute_role = compute_role + self.handler_schema = handler_schema + self.vm_scale_set_enabled = vm_scale_set_enabled + self.supports_multiple_extensions = supports_multiple_extensions + + +class VirtualMachineExtensionInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine extension. + + :param name: The virtual machine extension name. + :type name: str + :param type: Specifies the type of the extension; an example is "CustomScriptExtension". + :type type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param substatuses: The resource status information. + :type substatuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'type_handler_version': {'key': 'typeHandlerVersion', 'type': 'str'}, + 'substatuses': {'key': 'substatuses', 'type': '[InstanceViewStatus]'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + type: Optional[str] = None, + type_handler_version: Optional[str] = None, + substatuses: Optional[List["InstanceViewStatus"]] = None, + statuses: Optional[List["InstanceViewStatus"]] = None, + **kwargs + ): + super(VirtualMachineExtensionInstanceView, self).__init__(**kwargs) + self.name = name + self.type = type + self.type_handler_version = type_handler_version + self.substatuses = substatuses + self.statuses = statuses + + +class VirtualMachineExtensionsListResult(msrest.serialization.Model): + """The List Extension operation response. + + :param value: The list of extensions. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachineExtension]'}, + } + + def __init__( + self, + *, + value: Optional[List["VirtualMachineExtension"]] = None, + **kwargs + ): + super(VirtualMachineExtensionsListResult, self).__init__(**kwargs) + self.value = value + + +class VirtualMachineExtensionUpdate(UpdateResource): + """Describes a Virtual Machine Extension. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param force_update_tag: How the extension handler should be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type: Specifies the type of the extension; an example is "CustomScriptExtension". + :type type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + force_update_tag: Optional[str] = None, + publisher: Optional[str] = None, + type: Optional[str] = None, + type_handler_version: Optional[str] = None, + auto_upgrade_minor_version: Optional[bool] = None, + enable_automatic_upgrade: Optional[bool] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, + **kwargs + ): + super(VirtualMachineExtensionUpdate, self).__init__(tags=tags, **kwargs) + self.force_update_tag = force_update_tag + self.publisher = publisher + self.type = type + self.type_handler_version = type_handler_version + self.auto_upgrade_minor_version = auto_upgrade_minor_version + self.enable_automatic_upgrade = enable_automatic_upgrade + self.settings = settings + self.protected_settings = protected_settings + + +class VirtualMachineHealthStatus(msrest.serialization.Model): + """The health status of the VM. + + 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.v2021_03_01.models.InstanceViewStatus + """ + + _validation = { + 'status': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'InstanceViewStatus'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineHealthStatus, self).__init__(**kwargs) + self.status = None + + +class VirtualMachineIdentity(msrest.serialization.Model): + """Identity for the virtual machine. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal id of virtual machine identity. This property will only be + provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the virtual machine. This property will only be + provided for a system assigned identity. + :vartype tenant_id: str + :param type: The type of identity used for the virtual machine. The type 'SystemAssigned, + 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. Possible + values include: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None". + :type type: str or ~azure.mgmt.compute.v2021_03_01.models.ResourceIdentityType + :param 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}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.compute.v2021_03_01.models.UserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentitiesValue}'}, + } + + def __init__( + self, + *, + type: Optional[Union[str, "ResourceIdentityType"]] = None, + user_assigned_identities: Optional[Dict[str, "UserAssignedIdentitiesValue"]] = None, + **kwargs + ): + super(VirtualMachineIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + self.user_assigned_identities = user_assigned_identities + + +class VirtualMachineImageResource(SubResource): + """Virtual machine image resource information. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource Id. + :type id: str + :param name: Required. The name of the resource. + :type name: str + :param location: Required. The supported Azure location of the resource. + :type location: str + :param tags: A set of tags. Specifies the tags that are assigned to the virtual machine. For + more information about using tags, see `Using tags to organize your Azure resources + `_. + :type tags: dict[str, str] + :param extended_location: The extended location of the Virtual Machine. + :type extended_location: ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocation + """ + + _validation = { + 'name': {'required': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + } + + def __init__( + self, + *, + name: str, + location: str, + id: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + extended_location: Optional["ExtendedLocation"] = None, + **kwargs + ): + super(VirtualMachineImageResource, self).__init__(id=id, **kwargs) + self.name = name + self.location = location + self.tags = tags + self.extended_location = extended_location + + +class VirtualMachineImage(VirtualMachineImageResource): + """Describes a Virtual Machine Image. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource Id. + :type id: str + :param name: Required. The name of the resource. + :type name: str + :param location: Required. The supported Azure location of the resource. + :type location: str + :param tags: A set of tags. Specifies the tags that are assigned to the virtual machine. For + more information about using tags, see `Using tags to organize your Azure resources + `_. + :type tags: dict[str, str] + :param extended_location: The extended location of the Virtual Machine. + :type extended_location: ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocation + :param plan: Used for establishing the purchase context of any 3rd Party artifact through + MarketPlace. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.PurchasePlan + :param os_disk_image: Contains the os disk image information. + :type os_disk_image: ~azure.mgmt.compute.v2021_03_01.models.OSDiskImage + :param data_disk_images: + :type data_disk_images: list[~azure.mgmt.compute.v2021_03_01.models.DataDiskImage] + :param automatic_os_upgrade_properties: Describes automatic OS upgrade properties on the image. + :type automatic_os_upgrade_properties: + ~azure.mgmt.compute.v2021_03_01.models.AutomaticOSUpgradeProperties + :param hyper_v_generation: Specifies the HyperVGeneration Type. Possible values include: "V1", + "V2". + :type hyper_v_generation: str or ~azure.mgmt.compute.v2021_03_01.models.HyperVGenerationTypes + :param disallowed: Specifies disallowed configuration for the VirtualMachine created from the + image. + :type disallowed: ~azure.mgmt.compute.v2021_03_01.models.DisallowedConfiguration + :param features: + :type features: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageFeature] + """ + + _validation = { + 'name': {'required': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'plan': {'key': 'properties.plan', 'type': 'PurchasePlan'}, + 'os_disk_image': {'key': 'properties.osDiskImage', 'type': 'OSDiskImage'}, + 'data_disk_images': {'key': 'properties.dataDiskImages', 'type': '[DataDiskImage]'}, + 'automatic_os_upgrade_properties': {'key': 'properties.automaticOSUpgradeProperties', 'type': 'AutomaticOSUpgradeProperties'}, + 'hyper_v_generation': {'key': 'properties.hyperVGeneration', 'type': 'str'}, + 'disallowed': {'key': 'properties.disallowed', 'type': 'DisallowedConfiguration'}, + 'features': {'key': 'properties.features', 'type': '[VirtualMachineImageFeature]'}, + } + + def __init__( + self, + *, + name: str, + location: str, + id: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + extended_location: Optional["ExtendedLocation"] = None, + plan: Optional["PurchasePlan"] = None, + os_disk_image: Optional["OSDiskImage"] = None, + data_disk_images: Optional[List["DataDiskImage"]] = None, + automatic_os_upgrade_properties: Optional["AutomaticOSUpgradeProperties"] = None, + hyper_v_generation: Optional[Union[str, "HyperVGenerationTypes"]] = None, + disallowed: Optional["DisallowedConfiguration"] = None, + features: Optional[List["VirtualMachineImageFeature"]] = None, + **kwargs + ): + super(VirtualMachineImage, self).__init__(id=id, name=name, location=location, tags=tags, extended_location=extended_location, **kwargs) + self.plan = plan + self.os_disk_image = os_disk_image + self.data_disk_images = data_disk_images + self.automatic_os_upgrade_properties = automatic_os_upgrade_properties + self.hyper_v_generation = hyper_v_generation + self.disallowed = disallowed + self.features = features + + +class VirtualMachineImageFeature(msrest.serialization.Model): + """Specifies additional capabilities supported by the image. + + :param name: The name of the feature. + :type name: str + :param value: The corresponding value for the feature. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + value: Optional[str] = None, + **kwargs + ): + super(VirtualMachineImageFeature, self).__init__(**kwargs) + self.name = name + self.value = value + + +class VirtualMachineInstallPatchesParameters(msrest.serialization.Model): + """Input for InstallPatches as directly received by the API. + + All required parameters must be populated in order to send to Azure. + + :param maximum_duration: Required. Specifies the maximum amount of time that the operation will + run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours). + :type maximum_duration: str + :param reboot_setting: Required. Defines when it is acceptable to reboot a VM during a software + update operation. Possible values include: "IfRequired", "Never", "Always". + :type reboot_setting: str or ~azure.mgmt.compute.v2021_03_01.models.VMGuestPatchRebootSetting + :param windows_parameters: Input for InstallPatches on a Windows VM, as directly received by + the API. + :type windows_parameters: ~azure.mgmt.compute.v2021_03_01.models.WindowsParameters + :param linux_parameters: Input for InstallPatches on a Linux VM, as directly received by the + API. + :type linux_parameters: ~azure.mgmt.compute.v2021_03_01.models.LinuxParameters + """ + + _validation = { + 'maximum_duration': {'required': True}, + 'reboot_setting': {'required': True}, + } + + _attribute_map = { + 'maximum_duration': {'key': 'maximumDuration', 'type': 'str'}, + 'reboot_setting': {'key': 'rebootSetting', 'type': 'str'}, + 'windows_parameters': {'key': 'windowsParameters', 'type': 'WindowsParameters'}, + 'linux_parameters': {'key': 'linuxParameters', 'type': 'LinuxParameters'}, + } + + def __init__( + self, + *, + maximum_duration: str, + reboot_setting: Union[str, "VMGuestPatchRebootSetting"], + windows_parameters: Optional["WindowsParameters"] = None, + linux_parameters: Optional["LinuxParameters"] = None, + **kwargs + ): + super(VirtualMachineInstallPatchesParameters, self).__init__(**kwargs) + self.maximum_duration = maximum_duration + self.reboot_setting = reboot_setting + self.windows_parameters = windows_parameters + self.linux_parameters = linux_parameters + + +class VirtualMachineInstallPatchesResult(msrest.serialization.Model): + """The result summary of an installation operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar status: The overall success or failure status of the operation. It remains "InProgress" + until the operation completes. At that point it will become "Failed", "Succeeded", "Unknown" or + "CompletedWithWarnings.". Possible values include: "Unknown", "InProgress", "Failed", + "Succeeded", "CompletedWithWarnings". + :vartype status: str or ~azure.mgmt.compute.v2021_03_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. Possible + values include: "Unknown", "NotNeeded", "Required", "Started", "Failed", "Completed". + :vartype reboot_status: str or ~azure.mgmt.compute.v2021_03_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 + :ivar excluded_patch_count: The number of patches that were not installed due to the user + blocking their installation. + :vartype excluded_patch_count: int + :ivar not_selected_patch_count: The number of patches that were detected as available for + install, but did not meet the operation's criteria. + :vartype not_selected_patch_count: int + :ivar pending_patch_count: The number of patches that were identified as meeting the + installation criteria, but were not able to be installed. Typically this happens when + maintenanceWindowExceeded == true. + :vartype pending_patch_count: int + :ivar installed_patch_count: The number of patches successfully installed. + :vartype installed_patch_count: int + :ivar failed_patch_count: The number of patches that could not be installed due to some issue. + 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.v2021_03_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.v2021_03_01.models.ApiError + """ + + _validation = { + 'status': {'readonly': True}, + 'installation_activity_id': {'readonly': True}, + 'reboot_status': {'readonly': True}, + 'maintenance_window_exceeded': {'readonly': True}, + 'excluded_patch_count': {'readonly': True}, + 'not_selected_patch_count': {'readonly': True}, + 'pending_patch_count': {'readonly': True}, + 'installed_patch_count': {'readonly': True}, + 'failed_patch_count': {'readonly': True}, + 'patches': {'readonly': True}, + 'start_date_time': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'installation_activity_id': {'key': 'installationActivityId', 'type': 'str'}, + 'reboot_status': {'key': 'rebootStatus', 'type': 'str'}, + 'maintenance_window_exceeded': {'key': 'maintenanceWindowExceeded', 'type': 'bool'}, + 'excluded_patch_count': {'key': 'excludedPatchCount', 'type': 'int'}, + 'not_selected_patch_count': {'key': 'notSelectedPatchCount', 'type': 'int'}, + 'pending_patch_count': {'key': 'pendingPatchCount', 'type': 'int'}, + 'installed_patch_count': {'key': 'installedPatchCount', 'type': 'int'}, + 'failed_patch_count': {'key': 'failedPatchCount', 'type': 'int'}, + 'patches': {'key': 'patches', 'type': '[PatchInstallationDetail]'}, + 'start_date_time': {'key': 'startDateTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'ApiError'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineInstallPatchesResult, self).__init__(**kwargs) + self.status = None + self.installation_activity_id = None + self.reboot_status = None + self.maintenance_window_exceeded = None + self.excluded_patch_count = None + self.not_selected_patch_count = None + self.pending_patch_count = None + self.installed_patch_count = None + self.failed_patch_count = None + self.patches = None + self.start_date_time = None + self.error = None + + +class VirtualMachineInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param platform_update_domain: Specifies the update domain of the virtual machine. + :type platform_update_domain: int + :param platform_fault_domain: Specifies the fault domain of the virtual machine. + :type platform_fault_domain: int + :param computer_name: The computer name assigned to the virtual machine. + :type computer_name: str + :param os_name: The Operating System running on the virtual machine. + :type os_name: str + :param os_version: The version of Operating System running on the virtual machine. + :type os_version: str + :param hyper_v_generation: Specifies the HyperVGeneration Type associated with a resource. + Possible values include: "V1", "V2". + :type hyper_v_generation: str or ~azure.mgmt.compute.v2021_03_01.models.HyperVGenerationType + :param rdp_thumb_print: The Remote desktop certificate thumbprint. + :type rdp_thumb_print: str + :param vm_agent: The VM Agent running on the virtual machine. + :type vm_agent: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineAgentInstanceView + :param maintenance_redeploy_status: The Maintenance Operation status on the virtual machine. + :type maintenance_redeploy_status: + ~azure.mgmt.compute.v2021_03_01.models.MaintenanceRedeployStatus + :param disks: The virtual machine disk information. + :type disks: list[~azure.mgmt.compute.v2021_03_01.models.DiskInstanceView] + :param extensions: The extensions information. + :type extensions: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionInstanceView] + :ivar vm_health: The health status for the VM. + :vartype vm_health: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineHealthStatus + :param boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view + Console Output and Screenshot to diagnose VM status. :code:`
    `:code:`
    ` You can easily + view the output of your console log. :code:`
    `:code:`
    ` Azure also enables you to see a + screenshot of the VM from the hypervisor. + :type boot_diagnostics: ~azure.mgmt.compute.v2021_03_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. :code:`
    `:code:`
    `Minimum api-version: + 2020-06-01. + :vartype assigned_host: str + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + :param patch_status: [Preview Feature] The status of virtual machine patch operations. + :type patch_status: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePatchStatus + """ + + _validation = { + 'vm_health': {'readonly': True}, + 'assigned_host': {'readonly': True}, + } + + _attribute_map = { + 'platform_update_domain': {'key': 'platformUpdateDomain', 'type': 'int'}, + 'platform_fault_domain': {'key': 'platformFaultDomain', 'type': 'int'}, + 'computer_name': {'key': 'computerName', 'type': 'str'}, + 'os_name': {'key': 'osName', 'type': 'str'}, + 'os_version': {'key': 'osVersion', 'type': 'str'}, + 'hyper_v_generation': {'key': 'hyperVGeneration', 'type': 'str'}, + 'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'}, + 'vm_agent': {'key': 'vmAgent', 'type': 'VirtualMachineAgentInstanceView'}, + 'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'}, + 'disks': {'key': 'disks', 'type': '[DiskInstanceView]'}, + 'extensions': {'key': 'extensions', 'type': '[VirtualMachineExtensionInstanceView]'}, + 'vm_health': {'key': 'vmHealth', 'type': 'VirtualMachineHealthStatus'}, + 'boot_diagnostics': {'key': 'bootDiagnostics', 'type': 'BootDiagnosticsInstanceView'}, + 'assigned_host': {'key': 'assignedHost', 'type': 'str'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + 'patch_status': {'key': 'patchStatus', 'type': 'VirtualMachinePatchStatus'}, + } + + def __init__( + self, + *, + platform_update_domain: Optional[int] = None, + platform_fault_domain: Optional[int] = None, + computer_name: Optional[str] = None, + os_name: Optional[str] = None, + os_version: Optional[str] = None, + hyper_v_generation: Optional[Union[str, "HyperVGenerationType"]] = None, + rdp_thumb_print: Optional[str] = None, + vm_agent: Optional["VirtualMachineAgentInstanceView"] = None, + maintenance_redeploy_status: Optional["MaintenanceRedeployStatus"] = None, + disks: Optional[List["DiskInstanceView"]] = None, + extensions: Optional[List["VirtualMachineExtensionInstanceView"]] = None, + boot_diagnostics: Optional["BootDiagnosticsInstanceView"] = None, + statuses: Optional[List["InstanceViewStatus"]] = None, + patch_status: Optional["VirtualMachinePatchStatus"] = None, + **kwargs + ): + super(VirtualMachineInstanceView, self).__init__(**kwargs) + self.platform_update_domain = platform_update_domain + self.platform_fault_domain = platform_fault_domain + self.computer_name = computer_name + self.os_name = os_name + self.os_version = os_version + self.hyper_v_generation = hyper_v_generation + self.rdp_thumb_print = rdp_thumb_print + self.vm_agent = vm_agent + self.maintenance_redeploy_status = maintenance_redeploy_status + self.disks = disks + self.extensions = extensions + self.vm_health = None + self.boot_diagnostics = boot_diagnostics + self.assigned_host = None + self.statuses = statuses + self.patch_status = patch_status + + +class VirtualMachineIpTag(msrest.serialization.Model): + """Contains the IP tag associated with the public IP address. + + :param ip_tag_type: IP tag type. Example: FirstPartyUsage. + :type ip_tag_type: str + :param tag: IP tag associated with the public IP. Example: SQL, Storage etc. + :type tag: str + """ + + _attribute_map = { + 'ip_tag_type': {'key': 'ipTagType', 'type': 'str'}, + 'tag': {'key': 'tag', 'type': 'str'}, + } + + def __init__( + self, + *, + ip_tag_type: Optional[str] = None, + tag: Optional[str] = None, + **kwargs + ): + super(VirtualMachineIpTag, self).__init__(**kwargs) + self.ip_tag_type = ip_tag_type + self.tag = tag + + +class VirtualMachineListResult(msrest.serialization.Model): + """The List Virtual Machine operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of virtual machines. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachine] + :param next_link: The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch + the next page of Virtual Machines. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachine]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["VirtualMachine"], + next_link: Optional[str] = None, + **kwargs + ): + super(VirtualMachineListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class VirtualMachineNetworkInterfaceConfiguration(msrest.serialization.Model): + """Describes a virtual machine network interface configurations. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The network interface configuration name. + :type name: str + :param primary: Specifies the primary network interface in case the virtual machine has more + than 1 network interface. + :type primary: bool + :param delete_option: Specify what happens to the network interface when the VM is deleted. + Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions + :param enable_accelerated_networking: Specifies whether the network interface is accelerated + networking-enabled. + :type enable_accelerated_networking: bool + :param enable_fpga: Specifies whether the network interface is FPGA networking-enabled. + :type enable_fpga: bool + :param enable_ip_forwarding: Whether IP forwarding enabled on this NIC. + :type enable_ip_forwarding: bool + :param network_security_group: The network security group. + :type network_security_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param dns_settings: The dns settings to be applied on the network interfaces. + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration + :param ip_configurations: Specifies the IP configurations of the network interface. + :type ip_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineNetworkInterfaceIPConfiguration] + :param dscp_configuration: + :type dscp_configuration: ~azure.mgmt.compute.v2021_03_01.models.SubResource + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, + 'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'}, + 'enable_fpga': {'key': 'properties.enableFpga', 'type': 'bool'}, + 'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'SubResource'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineNetworkInterfaceDnsSettingsConfiguration'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[VirtualMachineNetworkInterfaceIPConfiguration]'}, + 'dscp_configuration': {'key': 'properties.dscpConfiguration', 'type': 'SubResource'}, + } + + def __init__( + self, + *, + name: str, + primary: Optional[bool] = None, + delete_option: Optional[Union[str, "DeleteOptions"]] = None, + enable_accelerated_networking: Optional[bool] = None, + enable_fpga: Optional[bool] = None, + enable_ip_forwarding: Optional[bool] = None, + network_security_group: Optional["SubResource"] = None, + dns_settings: Optional["VirtualMachineNetworkInterfaceDnsSettingsConfiguration"] = None, + ip_configurations: Optional[List["VirtualMachineNetworkInterfaceIPConfiguration"]] = None, + dscp_configuration: Optional["SubResource"] = None, + **kwargs + ): + super(VirtualMachineNetworkInterfaceConfiguration, self).__init__(**kwargs) + self.name = name + self.primary = primary + self.delete_option = delete_option + self.enable_accelerated_networking = enable_accelerated_networking + self.enable_fpga = enable_fpga + self.enable_ip_forwarding = enable_ip_forwarding + self.network_security_group = network_security_group + self.dns_settings = dns_settings + self.ip_configurations = ip_configurations + self.dscp_configuration = dscp_configuration + + +class VirtualMachineNetworkInterfaceDnsSettingsConfiguration(msrest.serialization.Model): + """Describes a virtual machines network configuration's DNS settings. + + :param dns_servers: List of DNS servers IP addresses. + :type dns_servers: list[str] + """ + + _attribute_map = { + 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, + } + + def __init__( + self, + *, + dns_servers: Optional[List[str]] = None, + **kwargs + ): + super(VirtualMachineNetworkInterfaceDnsSettingsConfiguration, self).__init__(**kwargs) + self.dns_servers = dns_servers + + +class VirtualMachineNetworkInterfaceIPConfiguration(msrest.serialization.Model): + """Describes a virtual machine network profile's IP configuration. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The IP configuration name. + :type name: str + :param subnet: Specifies the identifier of the subnet. + :type subnet: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param primary: Specifies the primary network interface in case the virtual machine has more + than 1 network interface. + :type primary: bool + :param public_ip_address_configuration: The publicIPAddressConfiguration. + :type public_ip_address_configuration: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePublicIPAddressConfiguration + :param 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'. Possible values include: "IPv4", "IPv6". + :type private_ip_address_version: str or ~azure.mgmt.compute.v2021_03_01.models.IPVersions + :param application_security_groups: Specifies an array of references to application security + group. + :type application_security_groups: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param 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. + :type application_gateway_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param 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]. + :type load_balancer_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'public_ip_address_configuration': {'key': 'properties.publicIPAddressConfiguration', 'type': 'VirtualMachinePublicIPAddressConfiguration'}, + 'private_ip_address_version': {'key': 'properties.privateIPAddressVersion', 'type': 'str'}, + 'application_security_groups': {'key': 'properties.applicationSecurityGroups', 'type': '[SubResource]'}, + 'application_gateway_backend_address_pools': {'key': 'properties.applicationGatewayBackendAddressPools', 'type': '[SubResource]'}, + 'load_balancer_backend_address_pools': {'key': 'properties.loadBalancerBackendAddressPools', 'type': '[SubResource]'}, + } + + def __init__( + self, + *, + name: str, + subnet: Optional["SubResource"] = None, + primary: Optional[bool] = None, + public_ip_address_configuration: Optional["VirtualMachinePublicIPAddressConfiguration"] = None, + private_ip_address_version: Optional[Union[str, "IPVersions"]] = None, + application_security_groups: Optional[List["SubResource"]] = None, + application_gateway_backend_address_pools: Optional[List["SubResource"]] = None, + load_balancer_backend_address_pools: Optional[List["SubResource"]] = None, + **kwargs + ): + super(VirtualMachineNetworkInterfaceIPConfiguration, self).__init__(**kwargs) + self.name = name + self.subnet = subnet + self.primary = primary + self.public_ip_address_configuration = public_ip_address_configuration + self.private_ip_address_version = private_ip_address_version + self.application_security_groups = application_security_groups + self.application_gateway_backend_address_pools = application_gateway_backend_address_pools + self.load_balancer_backend_address_pools = load_balancer_backend_address_pools + + +class VirtualMachinePatchStatus(msrest.serialization.Model): + """The status of virtual machine patch operations. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param available_patch_summary: The available patch summary of the latest assessment operation + for the virtual machine. + :type available_patch_summary: ~azure.mgmt.compute.v2021_03_01.models.AvailablePatchSummary + :param last_patch_installation_summary: The installation summary of the latest installation + operation for the virtual machine. + :type last_patch_installation_summary: + ~azure.mgmt.compute.v2021_03_01.models.LastPatchInstallationSummary + :ivar configuration_statuses: The enablement status of the specified patchMode. + :vartype configuration_statuses: + list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _validation = { + 'configuration_statuses': {'readonly': True}, + } + + _attribute_map = { + 'available_patch_summary': {'key': 'availablePatchSummary', 'type': 'AvailablePatchSummary'}, + 'last_patch_installation_summary': {'key': 'lastPatchInstallationSummary', 'type': 'LastPatchInstallationSummary'}, + 'configuration_statuses': {'key': 'configurationStatuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + *, + available_patch_summary: Optional["AvailablePatchSummary"] = None, + last_patch_installation_summary: Optional["LastPatchInstallationSummary"] = None, + **kwargs + ): + super(VirtualMachinePatchStatus, self).__init__(**kwargs) + self.available_patch_summary = available_patch_summary + self.last_patch_installation_summary = last_patch_installation_summary + self.configuration_statuses = None + + +class VirtualMachinePublicIPAddressConfiguration(msrest.serialization.Model): + """Describes a virtual machines IP Configuration's PublicIPAddress configuration. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The publicIP address configuration name. + :type name: str + :param sku: Describes the public IP Sku. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.PublicIPAddressSku + :param idle_timeout_in_minutes: The idle timeout of the public IP address. + :type idle_timeout_in_minutes: int + :param delete_option: Specify what happens to the public IP address when the VM is deleted. + Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions + :param dns_settings: The dns settings to be applied on the publicIP addresses . + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePublicIPAddressDnsSettingsConfiguration + :param ip_tags: The list of IP tags associated with the public IP address. + :type ip_tags: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineIpTag] + :param public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. + :type public_ip_prefix: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param 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'. Possible values include: "IPv4", "IPv6". + :type public_ip_address_version: str or ~azure.mgmt.compute.v2021_03_01.models.IPVersions + :param public_ip_allocation_method: Specify the public IP allocation type. Possible values + include: "Dynamic", "Static". + :type public_ip_allocation_method: str or + ~azure.mgmt.compute.v2021_03_01.models.PublicIPAllocationMethod + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'PublicIPAddressSku'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachinePublicIPAddressDnsSettingsConfiguration'}, + 'ip_tags': {'key': 'properties.ipTags', 'type': '[VirtualMachineIpTag]'}, + 'public_ip_prefix': {'key': 'properties.publicIPPrefix', 'type': 'SubResource'}, + 'public_ip_address_version': {'key': 'properties.publicIPAddressVersion', 'type': 'str'}, + 'public_ip_allocation_method': {'key': 'properties.publicIPAllocationMethod', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + sku: Optional["PublicIPAddressSku"] = None, + idle_timeout_in_minutes: Optional[int] = None, + delete_option: Optional[Union[str, "DeleteOptions"]] = None, + dns_settings: Optional["VirtualMachinePublicIPAddressDnsSettingsConfiguration"] = None, + ip_tags: Optional[List["VirtualMachineIpTag"]] = None, + public_ip_prefix: Optional["SubResource"] = None, + public_ip_address_version: Optional[Union[str, "IPVersions"]] = None, + public_ip_allocation_method: Optional[Union[str, "PublicIPAllocationMethod"]] = None, + **kwargs + ): + super(VirtualMachinePublicIPAddressConfiguration, self).__init__(**kwargs) + self.name = name + self.sku = sku + self.idle_timeout_in_minutes = idle_timeout_in_minutes + self.delete_option = delete_option + self.dns_settings = dns_settings + self.ip_tags = ip_tags + self.public_ip_prefix = public_ip_prefix + self.public_ip_address_version = public_ip_address_version + self.public_ip_allocation_method = public_ip_allocation_method + + +class VirtualMachinePublicIPAddressDnsSettingsConfiguration(msrest.serialization.Model): + """Describes a virtual machines network configuration's DNS settings. + + All required parameters must be populated in order to send to Azure. + + :param domain_name_label: Required. The Domain name label prefix of the PublicIPAddress + resources that will be created. The generated name label is the concatenation of the domain + name label and vm network profile unique ID. + :type domain_name_label: str + """ + + _validation = { + 'domain_name_label': {'required': True}, + } + + _attribute_map = { + 'domain_name_label': {'key': 'domainNameLabel', 'type': 'str'}, + } + + def __init__( + self, + *, + domain_name_label: str, + **kwargs + ): + super(VirtualMachinePublicIPAddressDnsSettingsConfiguration, self).__init__(**kwargs) + self.domain_name_label = domain_name_label + + +class VirtualMachineReimageParameters(msrest.serialization.Model): + """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged. + + :param temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp + disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. + :type temp_disk: bool + """ + + _attribute_map = { + 'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, + } + + def __init__( + self, + *, + temp_disk: Optional[bool] = None, + **kwargs + ): + super(VirtualMachineReimageParameters, self).__init__(**kwargs) + self.temp_disk = temp_disk + + +class VirtualMachineRunCommand(Resource): + """Describes a Virtual Machine run command. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param source: The source of the run command script. + :type source: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandScriptSource + :param parameters: The parameters used by the script. + :type parameters: list[~azure.mgmt.compute.v2021_03_01.models.RunCommandInputParameter] + :param protected_parameters: The parameters used by the script. + :type protected_parameters: + list[~azure.mgmt.compute.v2021_03_01.models.RunCommandInputParameter] + :param async_execution: Optional. If set to true, provisioning will complete as soon as the + script starts and will not wait for script to complete. + :type async_execution: bool + :param run_as_user: Specifies the user account on the VM when executing the run command. + :type run_as_user: str + :param run_as_password: Specifies the user account password on the VM when executing the run + command. + :type run_as_password: str + :param timeout_in_seconds: The timeout in seconds to execute the run command. + :type timeout_in_seconds: int + :param output_blob_uri: Specifies the Azure storage blob where script output stream will be + uploaded. + :type output_blob_uri: str + :param error_blob_uri: Specifies the Azure storage blob where script error stream will be + uploaded. + :type error_blob_uri: str + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :ivar instance_view: The virtual machine run command instance view. + :vartype instance_view: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandInstanceView + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'VirtualMachineRunCommandScriptSource'}, + 'parameters': {'key': 'properties.parameters', 'type': '[RunCommandInputParameter]'}, + 'protected_parameters': {'key': 'properties.protectedParameters', 'type': '[RunCommandInputParameter]'}, + 'async_execution': {'key': 'properties.asyncExecution', 'type': 'bool'}, + 'run_as_user': {'key': 'properties.runAsUser', 'type': 'str'}, + 'run_as_password': {'key': 'properties.runAsPassword', 'type': 'str'}, + 'timeout_in_seconds': {'key': 'properties.timeoutInSeconds', 'type': 'int'}, + 'output_blob_uri': {'key': 'properties.outputBlobUri', 'type': 'str'}, + 'error_blob_uri': {'key': 'properties.errorBlobUri', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineRunCommandInstanceView'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + source: Optional["VirtualMachineRunCommandScriptSource"] = None, + parameters: Optional[List["RunCommandInputParameter"]] = None, + protected_parameters: Optional[List["RunCommandInputParameter"]] = None, + async_execution: Optional[bool] = False, + run_as_user: Optional[str] = None, + run_as_password: Optional[str] = None, + timeout_in_seconds: Optional[int] = None, + output_blob_uri: Optional[str] = None, + error_blob_uri: Optional[str] = None, + **kwargs + ): + super(VirtualMachineRunCommand, self).__init__(location=location, tags=tags, **kwargs) + self.source = source + self.parameters = parameters + self.protected_parameters = protected_parameters + self.async_execution = async_execution + self.run_as_user = run_as_user + self.run_as_password = run_as_password + self.timeout_in_seconds = timeout_in_seconds + self.output_blob_uri = output_blob_uri + self.error_blob_uri = error_blob_uri + self.provisioning_state = None + self.instance_view = None + + +class VirtualMachineRunCommandInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine run command. + + :param execution_state: Script execution status. Possible values include: "Unknown", "Pending", + "Running", "Failed", "Succeeded", "TimedOut", "Canceled". + :type execution_state: str or ~azure.mgmt.compute.v2021_03_01.models.ExecutionState + :param execution_message: Communicate script configuration errors or execution messages. + :type execution_message: str + :param exit_code: Exit code returned from script execution. + :type exit_code: int + :param output: Script output stream. + :type output: str + :param error: Script error stream. + :type error: str + :param start_time: Script start time. + :type start_time: ~datetime.datetime + :param end_time: Script end time. + :type end_time: ~datetime.datetime + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + """ + + _attribute_map = { + 'execution_state': {'key': 'executionState', 'type': 'str'}, + 'execution_message': {'key': 'executionMessage', 'type': 'str'}, + 'exit_code': {'key': 'exitCode', 'type': 'int'}, + 'output': {'key': 'output', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + } + + def __init__( + self, + *, + execution_state: Optional[Union[str, "ExecutionState"]] = None, + execution_message: Optional[str] = None, + exit_code: Optional[int] = None, + output: Optional[str] = None, + error: Optional[str] = None, + start_time: Optional[datetime.datetime] = None, + end_time: Optional[datetime.datetime] = None, + statuses: Optional[List["InstanceViewStatus"]] = None, + **kwargs + ): + super(VirtualMachineRunCommandInstanceView, self).__init__(**kwargs) + self.execution_state = execution_state + self.execution_message = execution_message + self.exit_code = exit_code + self.output = output + self.error = error + self.start_time = start_time + self.end_time = end_time + self.statuses = statuses + + +class VirtualMachineRunCommandScriptSource(msrest.serialization.Model): + """Describes the script sources for run command. + + :param script: Specifies the script content to be executed on the VM. + :type script: str + :param script_uri: Specifies the script download location. + :type script_uri: str + :param command_id: Specifies a commandId of predefined built-in script. + :type command_id: str + """ + + _attribute_map = { + 'script': {'key': 'script', 'type': 'str'}, + 'script_uri': {'key': 'scriptUri', 'type': 'str'}, + 'command_id': {'key': 'commandId', 'type': 'str'}, + } + + def __init__( + self, + *, + script: Optional[str] = None, + script_uri: Optional[str] = None, + command_id: Optional[str] = None, + **kwargs + ): + super(VirtualMachineRunCommandScriptSource, self).__init__(**kwargs) + self.script = script + self.script_uri = script_uri + self.command_id = command_id + + +class VirtualMachineRunCommandsListResult(msrest.serialization.Model): + """The List run command operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of run commands. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand] + :param next_link: The uri to fetch the next page of run commands. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachineRunCommand]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["VirtualMachineRunCommand"], + next_link: Optional[str] = None, + **kwargs + ): + super(VirtualMachineRunCommandsListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class VirtualMachineRunCommandUpdate(UpdateResource): + """Describes a Virtual Machine run command. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param source: The source of the run command script. + :type source: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandScriptSource + :param parameters: The parameters used by the script. + :type parameters: list[~azure.mgmt.compute.v2021_03_01.models.RunCommandInputParameter] + :param protected_parameters: The parameters used by the script. + :type protected_parameters: + list[~azure.mgmt.compute.v2021_03_01.models.RunCommandInputParameter] + :param async_execution: Optional. If set to true, provisioning will complete as soon as the + script starts and will not wait for script to complete. + :type async_execution: bool + :param run_as_user: Specifies the user account on the VM when executing the run command. + :type run_as_user: str + :param run_as_password: Specifies the user account password on the VM when executing the run + command. + :type run_as_password: str + :param timeout_in_seconds: The timeout in seconds to execute the run command. + :type timeout_in_seconds: int + :param output_blob_uri: Specifies the Azure storage blob where script output stream will be + uploaded. + :type output_blob_uri: str + :param error_blob_uri: Specifies the Azure storage blob where script error stream will be + uploaded. + :type error_blob_uri: str + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :ivar instance_view: The virtual machine run command instance view. + :vartype instance_view: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandInstanceView + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'VirtualMachineRunCommandScriptSource'}, + 'parameters': {'key': 'properties.parameters', 'type': '[RunCommandInputParameter]'}, + 'protected_parameters': {'key': 'properties.protectedParameters', 'type': '[RunCommandInputParameter]'}, + 'async_execution': {'key': 'properties.asyncExecution', 'type': 'bool'}, + 'run_as_user': {'key': 'properties.runAsUser', 'type': 'str'}, + 'run_as_password': {'key': 'properties.runAsPassword', 'type': 'str'}, + 'timeout_in_seconds': {'key': 'properties.timeoutInSeconds', 'type': 'int'}, + 'output_blob_uri': {'key': 'properties.outputBlobUri', 'type': 'str'}, + 'error_blob_uri': {'key': 'properties.errorBlobUri', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineRunCommandInstanceView'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + source: Optional["VirtualMachineRunCommandScriptSource"] = None, + parameters: Optional[List["RunCommandInputParameter"]] = None, + protected_parameters: Optional[List["RunCommandInputParameter"]] = None, + async_execution: Optional[bool] = False, + run_as_user: Optional[str] = None, + run_as_password: Optional[str] = None, + timeout_in_seconds: Optional[int] = None, + output_blob_uri: Optional[str] = None, + error_blob_uri: Optional[str] = None, + **kwargs + ): + super(VirtualMachineRunCommandUpdate, self).__init__(tags=tags, **kwargs) + self.source = source + self.parameters = parameters + self.protected_parameters = protected_parameters + self.async_execution = async_execution + self.run_as_user = run_as_user + self.run_as_password = run_as_password + self.timeout_in_seconds = timeout_in_seconds + self.output_blob_uri = output_blob_uri + self.error_blob_uri = error_blob_uri + self.provisioning_state = None + self.instance_view = None + + +class VirtualMachineScaleSet(Resource): + """Describes a Virtual Machine Scale Set. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param sku: The virtual machine scale set sku. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param 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**. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.Plan + :param identity: The identity of the virtual machine scale set, if configured. + :type identity: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetIdentity + :param zones: The virtual machine scale set zones. NOTE: Availability zones can only be set + when you create the scale set. + :type zones: list[str] + :param extended_location: The extended location of the Virtual Machine Scale Set. + :type extended_location: ~azure.mgmt.compute.v2021_03_01.models.ExtendedLocation + :param upgrade_policy: The upgrade policy. + :type upgrade_policy: ~azure.mgmt.compute.v2021_03_01.models.UpgradePolicy + :param automatic_repairs_policy: Policy for automatic repairs. + :type automatic_repairs_policy: ~azure.mgmt.compute.v2021_03_01.models.AutomaticRepairsPolicy + :param virtual_machine_profile: The virtual machine profile. + :type virtual_machine_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMProfile + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param overprovision: Specifies whether the Virtual Machine Scale Set should be + overprovisioned. + :type overprovision: bool + :param do_not_run_extensions_on_overprovisioned_v_ms: When Overprovision is enabled, extensions + are launched only on the requested number of VMs which are finally kept. This property will + hence ensure that the extensions do not run on the extra overprovisioned VMs. + :type do_not_run_extensions_on_overprovisioned_v_ms: bool + :ivar unique_id: Specifies the ID which uniquely identifies a Virtual Machine Scale Set. + :vartype unique_id: str + :param single_placement_group: When true this limits the scale set to a single placement group, + of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to + false. However, if singlePlacementGroup is false, it may not be modified to true. + :type single_placement_group: bool + :param zone_balance: Whether to force strictly even Virtual Machine distribution cross x-zones + in case there is zone outage. + :type zone_balance: bool + :param platform_fault_domain_count: Fault Domain count for each placement group. + :type platform_fault_domain_count: int + :param 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. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param host_group: Specifies information about the dedicated host group that the virtual + machine scale set resides in. :code:`
    `:code:`
    `Minimum api-version: 2020-06-01. + :type host_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param 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. + :type additional_capabilities: ~azure.mgmt.compute.v2021_03_01.models.AdditionalCapabilities + :param scale_in_policy: Specifies the scale-in policy that decides which virtual machines are + chosen for removal when a Virtual Machine Scale Set is scaled-in. + :type scale_in_policy: ~azure.mgmt.compute.v2021_03_01.models.ScaleInPolicy + :param orchestration_mode: Specifies the orchestration mode for the virtual machine scale set. + Possible values include: "Uniform", "Flexible". + :type orchestration_mode: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationMode + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'unique_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'extended_location': {'key': 'extendedLocation', 'type': 'ExtendedLocation'}, + 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'UpgradePolicy'}, + 'automatic_repairs_policy': {'key': 'properties.automaticRepairsPolicy', 'type': 'AutomaticRepairsPolicy'}, + 'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetVMProfile'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'overprovision': {'key': 'properties.overprovision', 'type': 'bool'}, + 'do_not_run_extensions_on_overprovisioned_v_ms': {'key': 'properties.doNotRunExtensionsOnOverprovisionedVMs', 'type': 'bool'}, + 'unique_id': {'key': 'properties.uniqueId', 'type': 'str'}, + 'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'}, + 'zone_balance': {'key': 'properties.zoneBalance', 'type': 'bool'}, + 'platform_fault_domain_count': {'key': 'properties.platformFaultDomainCount', 'type': 'int'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + 'host_group': {'key': 'properties.hostGroup', 'type': 'SubResource'}, + 'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'}, + 'scale_in_policy': {'key': 'properties.scaleInPolicy', 'type': 'ScaleInPolicy'}, + 'orchestration_mode': {'key': 'properties.orchestrationMode', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + sku: Optional["Sku"] = None, + plan: Optional["Plan"] = None, + identity: Optional["VirtualMachineScaleSetIdentity"] = None, + zones: Optional[List[str]] = None, + extended_location: Optional["ExtendedLocation"] = None, + upgrade_policy: Optional["UpgradePolicy"] = None, + automatic_repairs_policy: Optional["AutomaticRepairsPolicy"] = None, + virtual_machine_profile: Optional["VirtualMachineScaleSetVMProfile"] = None, + overprovision: Optional[bool] = None, + do_not_run_extensions_on_overprovisioned_v_ms: Optional[bool] = None, + single_placement_group: Optional[bool] = None, + zone_balance: Optional[bool] = None, + platform_fault_domain_count: Optional[int] = None, + proximity_placement_group: Optional["SubResource"] = None, + host_group: Optional["SubResource"] = None, + additional_capabilities: Optional["AdditionalCapabilities"] = None, + scale_in_policy: Optional["ScaleInPolicy"] = None, + orchestration_mode: Optional[Union[str, "OrchestrationMode"]] = None, + **kwargs + ): + super(VirtualMachineScaleSet, self).__init__(location=location, tags=tags, **kwargs) + self.sku = sku + self.plan = plan + self.identity = identity + self.zones = zones + self.extended_location = extended_location + self.upgrade_policy = upgrade_policy + self.automatic_repairs_policy = automatic_repairs_policy + self.virtual_machine_profile = virtual_machine_profile + self.provisioning_state = None + self.overprovision = overprovision + self.do_not_run_extensions_on_overprovisioned_v_ms = do_not_run_extensions_on_overprovisioned_v_ms + self.unique_id = None + self.single_placement_group = single_placement_group + self.zone_balance = zone_balance + self.platform_fault_domain_count = platform_fault_domain_count + self.proximity_placement_group = proximity_placement_group + self.host_group = host_group + self.additional_capabilities = additional_capabilities + self.scale_in_policy = scale_in_policy + self.orchestration_mode = orchestration_mode - :param value: Required. - :type value: list[~azure.mgmt.compute.v2021_03_01.models.CloudService] - :param next_link: + +class VirtualMachineScaleSetDataDisk(msrest.serialization.Model): + """Describes a virtual machine scale set data disk. + + All required parameters must be populated in order to send to Azure. + + :param name: The disk name. + :type name: str + :param lun: Required. 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. + :type lun: int + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or + disabled on the disk. + :type write_accelerator_enabled: bool + :param create_option: Required. The create option. Possible values include: "FromImage", + "Empty", "Attach". + :type create_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskCreateOptionTypes + :param 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:`
    ` + This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param managed_disk: The managed disk parameters. + :type managed_disk: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetManagedDiskParameters + :param 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. + :type disk_iops_read_write: long + :param disk_m_bps_read_write: Specifies the bandwidth in MB per second 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. + :type disk_m_bps_read_write: long + """ + + _validation = { + 'lun': {'required': True}, + 'create_option': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'lun': {'key': 'lun', 'type': 'int'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'}, + 'create_option': {'key': 'createOption', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'}, + 'disk_iops_read_write': {'key': 'diskIOPSReadWrite', 'type': 'long'}, + 'disk_m_bps_read_write': {'key': 'diskMBpsReadWrite', 'type': 'long'}, + } + + def __init__( + self, + *, + lun: int, + create_option: Union[str, "DiskCreateOptionTypes"], + name: Optional[str] = None, + caching: Optional[Union[str, "CachingTypes"]] = None, + write_accelerator_enabled: Optional[bool] = None, + disk_size_gb: Optional[int] = None, + managed_disk: Optional["VirtualMachineScaleSetManagedDiskParameters"] = None, + disk_iops_read_write: Optional[int] = None, + disk_m_bps_read_write: Optional[int] = None, + **kwargs + ): + super(VirtualMachineScaleSetDataDisk, self).__init__(**kwargs) + self.name = name + self.lun = lun + self.caching = caching + self.write_accelerator_enabled = write_accelerator_enabled + self.create_option = create_option + self.disk_size_gb = disk_size_gb + self.managed_disk = managed_disk + self.disk_iops_read_write = disk_iops_read_write + self.disk_m_bps_read_write = disk_m_bps_read_write + + +class VirtualMachineScaleSetExtension(SubResourceReadOnly): + """Describes a Virtual Machine Scale Set Extension. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :param name: The name of the extension. + :type name: str + :ivar type: Resource type. + :vartype type: str + :param force_update_tag: If a value is provided and is different from the previous value, the + extension handler will be forced to update even if the extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_type: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type_properties_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param provision_after_extensions: Collection of extension names after which this extension + needs to be provisioned. + :type provision_after_extensions: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + force_update_tag: Optional[str] = None, + publisher: Optional[str] = None, + type_properties_type: Optional[str] = None, + type_handler_version: Optional[str] = None, + auto_upgrade_minor_version: Optional[bool] = None, + enable_automatic_upgrade: Optional[bool] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, + provision_after_extensions: Optional[List[str]] = None, + **kwargs + ): + super(VirtualMachineScaleSetExtension, self).__init__(**kwargs) + self.name = name + self.type = None + self.force_update_tag = force_update_tag + self.publisher = publisher + self.type_properties_type = type_properties_type + self.type_handler_version = type_handler_version + self.auto_upgrade_minor_version = auto_upgrade_minor_version + self.enable_automatic_upgrade = enable_automatic_upgrade + self.settings = settings + self.protected_settings = protected_settings + self.provisioning_state = None + self.provision_after_extensions = provision_after_extensions + + +class VirtualMachineScaleSetExtensionListResult(msrest.serialization.Model): + """The List VM scale set extension operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of VM scale set extensions. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension] + :param 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. :type next_link: str """ @@ -310,235 +9323,479 @@ class CloudServiceListResult(msrest.serialization.Model): } _attribute_map = { - 'value': {'key': 'value', 'type': '[CloudService]'}, + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSetExtension]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, - value: List["CloudService"], + value: List["VirtualMachineScaleSetExtension"], next_link: Optional[str] = None, **kwargs ): - super(CloudServiceListResult, self).__init__(**kwargs) + super(VirtualMachineScaleSetExtensionListResult, self).__init__(**kwargs) self.value = value self.next_link = next_link -class CloudServiceNetworkProfile(msrest.serialization.Model): - """Network Profile for the cloud service. +class VirtualMachineScaleSetExtensionProfile(msrest.serialization.Model): + """Describes a virtual machine scale set extension profile. - :param load_balancer_configurations: List of Load balancer configurations. Cloud service can - have up to two load balancer configurations, corresponding to a Public Load Balancer and an - Internal Load Balancer. - :type load_balancer_configurations: - list[~azure.mgmt.compute.v2021_03_01.models.LoadBalancerConfiguration] - :param swappable_cloud_service: The id reference of the cloud service containing the target IP - with which the subject cloud service can perform a swap. This property cannot be updated once - it is set. The swappable cloud service referred by this id must be present otherwise an error - will be thrown. - :type swappable_cloud_service: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param extensions: The virtual machine scale set child extension resources. + :type extensions: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension] + :param 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). :code:`
    `:code:`
    ` Minimum + api-version: 2020-06-01. + :type extensions_time_budget: str """ _attribute_map = { - 'load_balancer_configurations': {'key': 'loadBalancerConfigurations', 'type': '[LoadBalancerConfiguration]'}, - 'swappable_cloud_service': {'key': 'swappableCloudService', 'type': 'SubResource'}, + 'extensions': {'key': 'extensions', 'type': '[VirtualMachineScaleSetExtension]'}, + 'extensions_time_budget': {'key': 'extensionsTimeBudget', 'type': 'str'}, } def __init__( self, *, - load_balancer_configurations: Optional[List["LoadBalancerConfiguration"]] = None, - swappable_cloud_service: Optional["SubResource"] = None, + extensions: Optional[List["VirtualMachineScaleSetExtension"]] = None, + extensions_time_budget: Optional[str] = None, + **kwargs + ): + super(VirtualMachineScaleSetExtensionProfile, self).__init__(**kwargs) + self.extensions = extensions + self.extensions_time_budget = extensions_time_budget + + +class VirtualMachineScaleSetExtensionUpdate(SubResourceReadOnly): + """Describes a Virtual Machine Scale Set Extension. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: The name of the extension. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param force_update_tag: If a value is provided and is different from the previous value, the + extension handler will be forced to update even if the extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_type: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type_properties_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param provision_after_extensions: Collection of extension names after which this extension + needs to be provisioned. + :type provision_after_extensions: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'provision_after_extensions': {'key': 'properties.provisionAfterExtensions', 'type': '[str]'}, + } + + def __init__( + self, + *, + force_update_tag: Optional[str] = None, + publisher: Optional[str] = None, + type_properties_type: Optional[str] = None, + type_handler_version: Optional[str] = None, + auto_upgrade_minor_version: Optional[bool] = None, + enable_automatic_upgrade: Optional[bool] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, + provision_after_extensions: Optional[List[str]] = None, + **kwargs + ): + super(VirtualMachineScaleSetExtensionUpdate, self).__init__(**kwargs) + self.name = None + self.type = None + self.force_update_tag = force_update_tag + self.publisher = publisher + self.type_properties_type = type_properties_type + self.type_handler_version = type_handler_version + self.auto_upgrade_minor_version = auto_upgrade_minor_version + self.enable_automatic_upgrade = enable_automatic_upgrade + self.settings = settings + self.protected_settings = protected_settings + self.provisioning_state = None + self.provision_after_extensions = provision_after_extensions + + +class VirtualMachineScaleSetIdentity(msrest.serialization.Model): + """Identity for the virtual machine scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal id of virtual machine scale set identity. This property will + only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the virtual machine scale set. This property + will only be provided for a system assigned identity. + :vartype tenant_id: str + :param type: 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 identities. The type 'None' will remove any identities from the virtual machine scale + set. Possible values include: "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", + "None". + :type type: str or ~azure.mgmt.compute.v2021_03_01.models.ResourceIdentityType + :param 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}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue}'}, + } + + def __init__( + self, + *, + type: Optional[Union[str, "ResourceIdentityType"]] = None, + user_assigned_identities: Optional[Dict[str, "VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue"]] = None, + **kwargs + ): + super(VirtualMachineScaleSetIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + self.user_assigned_identities = user_assigned_identities + + +class VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue(msrest.serialization.Model): + """VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class VirtualMachineScaleSetInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar virtual_machine: The instance view status summary for the virtual machine scale set. + :vartype virtual_machine: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetInstanceViewStatusesSummary + :ivar extensions: The extensions information. + :vartype extensions: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtensionsSummary] + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_01.models.InstanceViewStatus] + :ivar orchestration_services: The orchestration services information. + :vartype orchestration_services: + list[~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceSummary] + """ + + _validation = { + 'virtual_machine': {'readonly': True}, + 'extensions': {'readonly': True}, + 'orchestration_services': {'readonly': True}, + } + + _attribute_map = { + 'virtual_machine': {'key': 'virtualMachine', 'type': 'VirtualMachineScaleSetInstanceViewStatusesSummary'}, + 'extensions': {'key': 'extensions', 'type': '[VirtualMachineScaleSetVMExtensionsSummary]'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + 'orchestration_services': {'key': 'orchestrationServices', 'type': '[OrchestrationServiceSummary]'}, + } + + def __init__( + self, + *, + statuses: Optional[List["InstanceViewStatus"]] = None, + **kwargs + ): + super(VirtualMachineScaleSetInstanceView, self).__init__(**kwargs) + self.virtual_machine = None + self.extensions = None + self.statuses = statuses + self.orchestration_services = None + + +class VirtualMachineScaleSetInstanceViewStatusesSummary(msrest.serialization.Model): + """Instance view statuses summary for virtual machines of a virtual machine scale set. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar statuses_summary: The extensions information. + :vartype statuses_summary: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineStatusCodeCount] + """ + + _validation = { + 'statuses_summary': {'readonly': True}, + } + + _attribute_map = { + 'statuses_summary': {'key': 'statusesSummary', 'type': '[VirtualMachineStatusCodeCount]'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineScaleSetInstanceViewStatusesSummary, self).__init__(**kwargs) + self.statuses_summary = None + + +class VirtualMachineScaleSetIPConfiguration(SubResource): + """Describes a virtual machine scale set network profile's IP configuration. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource Id. + :type id: str + :param name: Required. The IP configuration name. + :type name: str + :param subnet: Specifies the identifier of the subnet. + :type subnet: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + :param primary: Specifies the primary network interface in case the virtual machine has more + than 1 network interface. + :type primary: bool + :param public_ip_address_configuration: The publicIPAddressConfiguration. + :type public_ip_address_configuration: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetPublicIPAddressConfiguration + :param 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'. Possible values include: "IPv4", "IPv6". + :type private_ip_address_version: str or ~azure.mgmt.compute.v2021_03_01.models.IPVersion + :param 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. + :type application_gateway_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param application_security_groups: Specifies an array of references to application security + group. + :type application_security_groups: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param 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. + :type load_balancer_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param 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. + :type load_balancer_inbound_nat_pools: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'ApiEntityReference'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'public_ip_address_configuration': {'key': 'properties.publicIPAddressConfiguration', 'type': 'VirtualMachineScaleSetPublicIPAddressConfiguration'}, + 'private_ip_address_version': {'key': 'properties.privateIPAddressVersion', 'type': 'str'}, + 'application_gateway_backend_address_pools': {'key': 'properties.applicationGatewayBackendAddressPools', 'type': '[SubResource]'}, + 'application_security_groups': {'key': 'properties.applicationSecurityGroups', 'type': '[SubResource]'}, + 'load_balancer_backend_address_pools': {'key': 'properties.loadBalancerBackendAddressPools', 'type': '[SubResource]'}, + 'load_balancer_inbound_nat_pools': {'key': 'properties.loadBalancerInboundNatPools', 'type': '[SubResource]'}, + } + + def __init__( + self, + *, + name: str, + id: Optional[str] = None, + subnet: Optional["ApiEntityReference"] = None, + primary: Optional[bool] = None, + public_ip_address_configuration: Optional["VirtualMachineScaleSetPublicIPAddressConfiguration"] = None, + private_ip_address_version: Optional[Union[str, "IPVersion"]] = None, + application_gateway_backend_address_pools: Optional[List["SubResource"]] = None, + application_security_groups: Optional[List["SubResource"]] = None, + load_balancer_backend_address_pools: Optional[List["SubResource"]] = None, + load_balancer_inbound_nat_pools: Optional[List["SubResource"]] = None, **kwargs ): - super(CloudServiceNetworkProfile, self).__init__(**kwargs) - self.load_balancer_configurations = load_balancer_configurations - self.swappable_cloud_service = swappable_cloud_service - - -class CloudServiceOsProfile(msrest.serialization.Model): - """Describes the OS profile for the cloud service. - - :param secrets: Specifies set of certificates that should be installed onto the role instances. - :type secrets: list[~azure.mgmt.compute.v2021_03_01.models.CloudServiceVaultSecretGroup] + super(VirtualMachineScaleSetIPConfiguration, self).__init__(id=id, **kwargs) + self.name = name + self.subnet = subnet + self.primary = primary + self.public_ip_address_configuration = public_ip_address_configuration + self.private_ip_address_version = private_ip_address_version + self.application_gateway_backend_address_pools = application_gateway_backend_address_pools + self.application_security_groups = application_security_groups + self.load_balancer_backend_address_pools = load_balancer_backend_address_pools + self.load_balancer_inbound_nat_pools = load_balancer_inbound_nat_pools + + +class VirtualMachineScaleSetIpTag(msrest.serialization.Model): + """Contains the IP tag associated with the public IP address. + + :param ip_tag_type: IP tag type. Example: FirstPartyUsage. + :type ip_tag_type: str + :param tag: IP tag associated with the public IP. Example: SQL, Storage etc. + :type tag: str """ _attribute_map = { - 'secrets': {'key': 'secrets', 'type': '[CloudServiceVaultSecretGroup]'}, + 'ip_tag_type': {'key': 'ipTagType', 'type': 'str'}, + 'tag': {'key': 'tag', 'type': 'str'}, } def __init__( self, *, - secrets: Optional[List["CloudServiceVaultSecretGroup"]] = None, + ip_tag_type: Optional[str] = None, + tag: Optional[str] = None, **kwargs ): - super(CloudServiceOsProfile, self).__init__(**kwargs) - self.secrets = secrets + super(VirtualMachineScaleSetIpTag, self).__init__(**kwargs) + self.ip_tag_type = ip_tag_type + self.tag = tag -class CloudServiceProperties(msrest.serialization.Model): - """Cloud service properties. +class VirtualMachineScaleSetListOSUpgradeHistory(msrest.serialization.Model): + """List of Virtual Machine Scale Set OS Upgrade History operation response. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :param package_url: Specifies a URL that refers to the location of the service package in the - Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage - account. - This is a write-only property and is not returned in GET calls. - :type package_url: str - :param configuration: Specifies the XML service configuration (.cscfg) for the cloud service. - :type configuration: str - :param configuration_url: Specifies a URL that refers to the location of the service - configuration in the Blob service. The service package URL can be Shared Access Signature - (SAS) URI from any storage account. - This is a write-only property and is not returned in GET calls. - :type configuration_url: str - :param start_cloud_service: (Optional) Indicates whether to start the cloud service immediately - after it is created. The default value is ``true``. - If false, the service model is still deployed, but the code is not run immediately. Instead, - the service is PoweredOff until you call Start, at which time the service will be started. A - deployed service still incurs charges, even if it is poweredoff. - :type start_cloud_service: bool - :param allow_model_override: (Optional) Indicates whether the role sku properties - (roleProfile.roles.sku) specified in the model/template should override the role instance count - and vm size specified in the .cscfg and .csdef respectively. - The default value is ``false``. - :type allow_model_override: bool - :param upgrade_mode: Update mode for the cloud service. Role instances are allocated to update - domains when the service is deployed. Updates can be initiated manually in each update domain - or initiated automatically in all update domains. - Possible Values are :code:`
    `:code:`
    `\ **Auto**\ :code:`
    `:code:`
    `\ - **Manual** :code:`
    `:code:`
    `\ **Simultaneous**\ :code:`
    `:code:`
    ` - If not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called - to apply the update. If set to Auto, the update is automatically applied to each update domain - in sequence. Possible values include: "Auto", "Manual", "Simultaneous". - :type upgrade_mode: str or ~azure.mgmt.compute.v2021_03_01.models.CloudServiceUpgradeMode - :param role_profile: Describes the role profile for the cloud service. - :type role_profile: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceRoleProfile - :param os_profile: Describes the OS profile for the cloud service. - :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceOsProfile - :param network_profile: Network Profile for the cloud service. - :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceNetworkProfile - :param extension_profile: Describes a cloud service extension profile. - :type extension_profile: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceExtensionProfile - :ivar provisioning_state: The provisioning state, which only appears in the response. - :vartype provisioning_state: str - :ivar unique_id: The unique identifier for the cloud service. - :vartype unique_id: str + :param value: Required. The list of OS upgrades performed on the virtual machine scale set. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.UpgradeOperationHistoricalStatusInfo] + :param 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. + :type next_link: str """ _validation = { - 'provisioning_state': {'readonly': True}, - 'unique_id': {'readonly': True}, + 'value': {'required': True}, } _attribute_map = { - 'package_url': {'key': 'packageUrl', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'str'}, - 'configuration_url': {'key': 'configurationUrl', 'type': 'str'}, - 'start_cloud_service': {'key': 'startCloudService', 'type': 'bool'}, - 'allow_model_override': {'key': 'allowModelOverride', 'type': 'bool'}, - 'upgrade_mode': {'key': 'upgradeMode', 'type': 'str'}, - 'role_profile': {'key': 'roleProfile', 'type': 'CloudServiceRoleProfile'}, - 'os_profile': {'key': 'osProfile', 'type': 'CloudServiceOsProfile'}, - 'network_profile': {'key': 'networkProfile', 'type': 'CloudServiceNetworkProfile'}, - 'extension_profile': {'key': 'extensionProfile', 'type': 'CloudServiceExtensionProfile'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'unique_id': {'key': 'uniqueId', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[UpgradeOperationHistoricalStatusInfo]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, - package_url: Optional[str] = None, - configuration: Optional[str] = None, - configuration_url: Optional[str] = None, - start_cloud_service: Optional[bool] = None, - allow_model_override: Optional[bool] = None, - upgrade_mode: Optional[Union[str, "CloudServiceUpgradeMode"]] = None, - role_profile: Optional["CloudServiceRoleProfile"] = None, - os_profile: Optional["CloudServiceOsProfile"] = None, - network_profile: Optional["CloudServiceNetworkProfile"] = None, - extension_profile: Optional["CloudServiceExtensionProfile"] = None, + value: List["UpgradeOperationHistoricalStatusInfo"], + next_link: Optional[str] = None, **kwargs ): - super(CloudServiceProperties, self).__init__(**kwargs) - self.package_url = package_url - self.configuration = configuration - self.configuration_url = configuration_url - self.start_cloud_service = start_cloud_service - self.allow_model_override = allow_model_override - self.upgrade_mode = upgrade_mode - self.role_profile = role_profile - self.os_profile = os_profile - self.network_profile = network_profile - self.extension_profile = extension_profile - self.provisioning_state = None - self.unique_id = None + super(VirtualMachineScaleSetListOSUpgradeHistory, self).__init__(**kwargs) + self.value = value + self.next_link = next_link -class CloudServiceRole(msrest.serialization.Model): - """Describes a role of the cloud service. +class VirtualMachineScaleSetListResult(msrest.serialization.Model): + """The List Virtual Machine operation response. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar id: Resource id. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :param sku: Describes the cloud service role sku. - :type sku: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceRoleSku - :param properties: - :type properties: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceRoleProperties + :param value: Required. The list of virtual machine scale sets. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet] + :param 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. + :type next_link: str """ _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, + 'value': {'required': True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'CloudServiceRoleSku'}, - 'properties': {'key': 'properties', 'type': 'CloudServiceRoleProperties'}, + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSet]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, - sku: Optional["CloudServiceRoleSku"] = None, - properties: Optional["CloudServiceRoleProperties"] = None, + value: List["VirtualMachineScaleSet"], + next_link: Optional[str] = None, **kwargs ): - super(CloudServiceRole, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = None - self.sku = sku - self.properties = properties + super(VirtualMachineScaleSetListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link -class CloudServiceRoleListResult(msrest.serialization.Model): - """CloudServiceRoleListResult. +class VirtualMachineScaleSetListSkusResult(msrest.serialization.Model): + """The Virtual Machine Scale Set List Skus operation response. All required parameters must be populated in order to send to Azure. - :param value: Required. - :type value: list[~azure.mgmt.compute.v2021_03_01.models.CloudServiceRole] - :param next_link: + :param value: Required. The list of skus available for the virtual machine scale set. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetSku] + :param 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. :type next_link: str """ @@ -547,858 +9804,1710 @@ class CloudServiceRoleListResult(msrest.serialization.Model): } _attribute_map = { - 'value': {'key': 'value', 'type': '[CloudServiceRole]'}, + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSetSku]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, - value: List["CloudServiceRole"], + value: List["VirtualMachineScaleSetSku"], next_link: Optional[str] = None, **kwargs ): - super(CloudServiceRoleListResult, self).__init__(**kwargs) + super(VirtualMachineScaleSetListSkusResult, self).__init__(**kwargs) self.value = value self.next_link = next_link -class CloudServiceRoleProfile(msrest.serialization.Model): - """Describes the role profile for the cloud service. +class VirtualMachineScaleSetListWithLinkResult(msrest.serialization.Model): + """The List Virtual Machine operation response. - :param roles: List of roles for the cloud service. - :type roles: list[~azure.mgmt.compute.v2021_03_01.models.CloudServiceRoleProfileProperties] + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of virtual machine scale sets. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet] + :param 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. + :type next_link: str """ + _validation = { + 'value': {'required': True}, + } + _attribute_map = { - 'roles': {'key': 'roles', 'type': '[CloudServiceRoleProfileProperties]'}, + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSet]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, - roles: Optional[List["CloudServiceRoleProfileProperties"]] = None, + value: List["VirtualMachineScaleSet"], + next_link: Optional[str] = None, **kwargs ): - super(CloudServiceRoleProfile, self).__init__(**kwargs) - self.roles = roles + super(VirtualMachineScaleSetListWithLinkResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link -class CloudServiceRoleProfileProperties(msrest.serialization.Model): - """Describes the role properties. +class VirtualMachineScaleSetManagedDiskParameters(msrest.serialization.Model): + """Describes the parameters of a ScaleSet managed disk. - :param name: Resource name. - :type name: str - :param sku: Describes the cloud service role sku. - :type sku: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceRoleSku + :param storage_account_type: Specifies the storage account type for the managed disk. NOTE: + UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Possible values + include: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", + "StandardSSD_ZRS". + :type storage_account_type: str or ~azure.mgmt.compute.v2021_03_01.models.StorageAccountTypes + :param disk_encryption_set: Specifies the customer managed disk encryption set resource id for + the managed disk. + :type disk_encryption_set: ~azure.mgmt.compute.v2021_03_01.models.DiskEncryptionSetParameters """ _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'CloudServiceRoleSku'}, + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_encryption_set': {'key': 'diskEncryptionSet', 'type': 'DiskEncryptionSetParameters'}, } def __init__( self, *, - name: Optional[str] = None, - sku: Optional["CloudServiceRoleSku"] = None, + storage_account_type: Optional[Union[str, "StorageAccountTypes"]] = None, + disk_encryption_set: Optional["DiskEncryptionSetParameters"] = None, **kwargs ): - super(CloudServiceRoleProfileProperties, self).__init__(**kwargs) - self.name = name - self.sku = sku + super(VirtualMachineScaleSetManagedDiskParameters, self).__init__(**kwargs) + self.storage_account_type = storage_account_type + self.disk_encryption_set = disk_encryption_set -class CloudServiceRoleProperties(msrest.serialization.Model): - """CloudServiceRoleProperties. +class VirtualMachineScaleSetNetworkConfiguration(SubResource): + """Describes a virtual machine scale set network profile's network configurations. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar unique_id: Specifies the ID which uniquely identifies a cloud service role. - :vartype unique_id: str + :param id: Resource Id. + :type id: str + :param name: Required. The network configuration name. + :type name: str + :param primary: Specifies the primary network interface in case the virtual machine has more + than 1 network interface. + :type primary: bool + :param enable_accelerated_networking: Specifies whether the network interface is accelerated + networking-enabled. + :type enable_accelerated_networking: bool + :param enable_fpga: Specifies whether the network interface is FPGA networking-enabled. + :type enable_fpga: bool + :param network_security_group: The network security group. + :type network_security_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param dns_settings: The dns settings to be applied on the network interfaces. + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings + :param ip_configurations: Specifies the IP configurations of the network interface. + :type ip_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetIPConfiguration] + :param enable_ip_forwarding: Whether IP forwarding enabled on this NIC. + :type enable_ip_forwarding: bool + :param delete_option: Specify what happens to the network interface when the VM is deleted. + Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions """ _validation = { - 'unique_id': {'readonly': True}, + 'name': {'required': True}, } _attribute_map = { - 'unique_id': {'key': 'uniqueId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'}, + 'enable_fpga': {'key': 'properties.enableFpga', 'type': 'bool'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'SubResource'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineScaleSetNetworkConfigurationDnsSettings'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[VirtualMachineScaleSetIPConfiguration]'}, + 'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, } def __init__( self, + *, + name: str, + id: Optional[str] = None, + primary: Optional[bool] = None, + enable_accelerated_networking: Optional[bool] = None, + enable_fpga: Optional[bool] = None, + network_security_group: Optional["SubResource"] = None, + dns_settings: Optional["VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, + ip_configurations: Optional[List["VirtualMachineScaleSetIPConfiguration"]] = None, + enable_ip_forwarding: Optional[bool] = None, + delete_option: Optional[Union[str, "DeleteOptions"]] = None, **kwargs ): - super(CloudServiceRoleProperties, self).__init__(**kwargs) - self.unique_id = None + super(VirtualMachineScaleSetNetworkConfiguration, self).__init__(id=id, **kwargs) + self.name = name + self.primary = primary + self.enable_accelerated_networking = enable_accelerated_networking + self.enable_fpga = enable_fpga + self.network_security_group = network_security_group + self.dns_settings = dns_settings + self.ip_configurations = ip_configurations + self.enable_ip_forwarding = enable_ip_forwarding + self.delete_option = delete_option -class CloudServiceRoleSku(msrest.serialization.Model): - """Describes the cloud service role sku. +class VirtualMachineScaleSetNetworkConfigurationDnsSettings(msrest.serialization.Model): + """Describes a virtual machines scale sets network configuration's DNS settings. - :param name: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud - service is currently on, you need to delete and recreate the cloud service or move back to the - old sku. - :type name: str - :param tier: Specifies the tier of the cloud service. Possible Values are :code:`
    `:code:`
    ` **Standard** :code:`
    `:code:`
    ` **Basic**. - :type tier: str - :param capacity: Specifies the number of role instances in the cloud service. - :type capacity: long + :param dns_servers: List of DNS servers IP addresses. + :type dns_servers: list[str] """ _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'long'}, + 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, } def __init__( self, *, - name: Optional[str] = None, - tier: Optional[str] = None, - capacity: Optional[int] = None, + dns_servers: Optional[List[str]] = None, **kwargs ): - super(CloudServiceRoleSku, self).__init__(**kwargs) - self.name = name - self.tier = tier - self.capacity = capacity - - -class CloudServiceUpdate(msrest.serialization.Model): - """CloudServiceUpdate. - - :param tags: A set of tags. Resource tags. - :type tags: dict[str, str] + super(VirtualMachineScaleSetNetworkConfigurationDnsSettings, self).__init__(**kwargs) + self.dns_servers = dns_servers + + +class VirtualMachineScaleSetNetworkProfile(msrest.serialization.Model): + """Describes a virtual machine scale set network profile. + + :param 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}'. + :type health_probe: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + :param network_interface_configurations: The list of network configurations. + :type network_interface_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetNetworkConfiguration] + :param 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'. Possible values include: "2020-11-01". + :type network_api_version: str or ~azure.mgmt.compute.v2021_03_01.models.NetworkApiVersion """ _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, + 'health_probe': {'key': 'healthProbe', 'type': 'ApiEntityReference'}, + 'network_interface_configurations': {'key': 'networkInterfaceConfigurations', 'type': '[VirtualMachineScaleSetNetworkConfiguration]'}, + 'network_api_version': {'key': 'networkApiVersion', 'type': 'str'}, } def __init__( self, *, - tags: Optional[Dict[str, str]] = None, + health_probe: Optional["ApiEntityReference"] = None, + network_interface_configurations: Optional[List["VirtualMachineScaleSetNetworkConfiguration"]] = None, + network_api_version: Optional[Union[str, "NetworkApiVersion"]] = None, **kwargs ): - super(CloudServiceUpdate, self).__init__(**kwargs) - self.tags = tags + super(VirtualMachineScaleSetNetworkProfile, self).__init__(**kwargs) + self.health_probe = health_probe + self.network_interface_configurations = network_interface_configurations + self.network_api_version = network_api_version -class CloudServiceVaultAndSecretReference(msrest.serialization.Model): - """CloudServiceVaultAndSecretReference. +class VirtualMachineScaleSetOSDisk(msrest.serialization.Model): + """Describes a virtual machine scale set operating system disk. + + All required parameters must be populated in order to send to Azure. + + :param name: The disk name. + :type name: str + :param caching: Specifies the caching requirements. :code:`
    `:code:`
    ` Possible values + are: :code:`
    `:code:`
    ` **None** :code:`
    `:code:`
    ` **ReadOnly** + :code:`
    `:code:`
    ` **ReadWrite** :code:`
    `:code:`
    ` Default: **None for Standard + storage. ReadOnly for Premium storage**. Possible values include: "None", "ReadOnly", + "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or + disabled on the disk. + :type write_accelerator_enabled: bool + :param create_option: Required. Specifies how the virtual machines in the scale set should be + created.:code:`
    `:code:`
    ` The only allowed value is: **FromImage** \u2013 This value is + used when you are using an image to create the virtual machine. If you are using a platform + image, you also use the imageReference element described above. If you are using a marketplace + image, you also use the plan element previously described. Possible values include: + "FromImage", "Empty", "Attach". + :type create_option: str or ~azure.mgmt.compute.v2021_03_01.models.DiskCreateOptionTypes + :param diff_disk_settings: Specifies the ephemeral disk Settings for the operating system disk + used by the virtual machine scale set. + :type diff_disk_settings: ~azure.mgmt.compute.v2021_03_01.models.DiffDiskSettings + :param disk_size_gb: Specifies the size of the operating system disk in gigabytes. This element + can be used to overwrite the size of the disk in a virtual machine image. + :code:`
    `:code:`
    ` This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param 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. :code:`
    `:code:`
    ` Possible + values are: :code:`
    `:code:`
    ` **Windows** :code:`
    `:code:`
    ` **Linux**. Possible + values include: "Windows", "Linux". + :type os_type: str or ~azure.mgmt.compute.v2021_03_01.models.OperatingSystemTypes + :param image: Specifies information about the unmanaged user image to base the scale set on. + :type image: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param vhd_containers: Specifies the container urls that are used to store operating system + disks for the scale set. + :type vhd_containers: list[str] + :param managed_disk: The managed disk parameters. + :type managed_disk: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetManagedDiskParameters + """ + + _validation = { + 'create_option': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'caching': {'key': 'caching', 'type': 'str'}, + 'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'}, + 'create_option': {'key': 'createOption', 'type': 'str'}, + 'diff_disk_settings': {'key': 'diffDiskSettings', 'type': 'DiffDiskSettings'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'VirtualHardDisk'}, + 'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'}, + } - :param source_vault: - :type source_vault: ~azure.mgmt.compute.v2021_03_01.models.SubResource - :param secret_url: - :type secret_url: str + def __init__( + self, + *, + create_option: Union[str, "DiskCreateOptionTypes"], + name: Optional[str] = None, + caching: Optional[Union[str, "CachingTypes"]] = None, + write_accelerator_enabled: Optional[bool] = None, + diff_disk_settings: Optional["DiffDiskSettings"] = None, + disk_size_gb: Optional[int] = None, + os_type: Optional[Union[str, "OperatingSystemTypes"]] = None, + image: Optional["VirtualHardDisk"] = None, + vhd_containers: Optional[List[str]] = None, + managed_disk: Optional["VirtualMachineScaleSetManagedDiskParameters"] = None, + **kwargs + ): + super(VirtualMachineScaleSetOSDisk, self).__init__(**kwargs) + self.name = name + self.caching = caching + self.write_accelerator_enabled = write_accelerator_enabled + self.create_option = create_option + self.diff_disk_settings = diff_disk_settings + self.disk_size_gb = disk_size_gb + self.os_type = os_type + self.image = image + self.vhd_containers = vhd_containers + self.managed_disk = managed_disk + + +class VirtualMachineScaleSetOSProfile(msrest.serialization.Model): + """Describes a virtual machine scale set OS profile. + + :param computer_name_prefix: Specifies the computer name prefix for all of the virtual machines + in the scale set. Computer name prefixes must be 1 to 15 characters long. + :type computer_name_prefix: str + :param admin_username: Specifies the name of the administrator account. + :code:`
    `:code:`
    ` **Windows-only restriction:** Cannot end in "." + :code:`
    `:code:`
    ` **Disallowed values:** "administrator", "admin", "user", "user1", + "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", + "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", + "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". + :code:`
    `:code:`
    ` **Minimum-length (Linux):** 1 character :code:`
    `:code:`
    ` + **Max-length (Linux):** 64 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 20 + characters. + :type admin_username: str + :param admin_password: Specifies the password of the administrator account. + :code:`
    `:code:`
    ` **Minimum-length (Windows):** 8 characters :code:`
    `:code:`
    ` + **Minimum-length (Linux):** 6 characters :code:`
    `:code:`
    ` **Max-length (Windows):** 123 + characters :code:`
    `:code:`
    ` **Max-length (Linux):** 72 characters + :code:`
    `:code:`
    ` **Complexity requirements:** 3 out of 4 conditions below need to be + fulfilled :code:`
    ` Has lower characters :code:`
    `Has upper characters :code:`
    ` Has a + digit :code:`
    ` Has a special character (Regex match [\W_]) :code:`
    `:code:`
    ` + **Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", + "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`
    `:code:`
    ` For + resetting the password, see `How to reset the Remote Desktop service or its login password in a + Windows VM `_ + :code:`
    `:code:`
    ` For resetting root password, see `Manage users, SSH, and check or + repair disks on Azure Linux VMs using the VMAccess Extension + `_. + :type admin_password: str + :param custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded + string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum + length of the binary array is 65535 bytes. :code:`
    `:code:`
    ` For using cloud-init for + your VM, see `Using cloud-init to customize a Linux VM during creation + `_. + :type custom_data: str + :param windows_configuration: Specifies Windows operating system settings on the virtual + machine. + :type windows_configuration: ~azure.mgmt.compute.v2021_03_01.models.WindowsConfiguration + :param linux_configuration: Specifies the Linux operating system settings on the virtual + machine. :code:`
    `:code:`
    `For a list of supported Linux distributions, see `Linux on + Azure-Endorsed Distributions + `_. + :type linux_configuration: ~azure.mgmt.compute.v2021_03_01.models.LinuxConfiguration + :param secrets: Specifies set of certificates that should be installed onto the virtual + machines in the scale set. + :type secrets: list[~azure.mgmt.compute.v2021_03_01.models.VaultSecretGroup] """ _attribute_map = { - 'source_vault': {'key': 'sourceVault', 'type': 'SubResource'}, - 'secret_url': {'key': 'secretUrl', 'type': 'str'}, + 'computer_name_prefix': {'key': 'computerNamePrefix', 'type': 'str'}, + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'admin_password': {'key': 'adminPassword', 'type': 'str'}, + 'custom_data': {'key': 'customData', 'type': 'str'}, + 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'WindowsConfiguration'}, + 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'LinuxConfiguration'}, + 'secrets': {'key': 'secrets', 'type': '[VaultSecretGroup]'}, } def __init__( self, *, - source_vault: Optional["SubResource"] = None, - secret_url: Optional[str] = None, + computer_name_prefix: Optional[str] = None, + admin_username: Optional[str] = None, + admin_password: Optional[str] = None, + custom_data: Optional[str] = None, + windows_configuration: Optional["WindowsConfiguration"] = None, + linux_configuration: Optional["LinuxConfiguration"] = None, + secrets: Optional[List["VaultSecretGroup"]] = None, **kwargs ): - super(CloudServiceVaultAndSecretReference, self).__init__(**kwargs) - self.source_vault = source_vault - self.secret_url = secret_url + super(VirtualMachineScaleSetOSProfile, self).__init__(**kwargs) + self.computer_name_prefix = computer_name_prefix + self.admin_username = admin_username + self.admin_password = admin_password + self.custom_data = custom_data + self.windows_configuration = windows_configuration + self.linux_configuration = linux_configuration + self.secrets = secrets -class CloudServiceVaultCertificate(msrest.serialization.Model): - """Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance. +class VirtualMachineScaleSetPublicIPAddressConfiguration(msrest.serialization.Model): + """Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. - :param certificate_url: This is the URL of a certificate that has been uploaded to Key Vault as - a secret. - :type certificate_url: str + All required parameters must be populated in order to send to Azure. + + :param name: Required. The publicIP address configuration name. + :type name: str + :param sku: Describes the public IP Sku. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.PublicIPAddressSku + :param idle_timeout_in_minutes: The idle timeout of the public IP address. + :type idle_timeout_in_minutes: int + :param dns_settings: The dns settings to be applied on the publicIP addresses . + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + :param ip_tags: The list of IP tags associated with the public IP address. + :type ip_tags: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetIpTag] + :param public_ip_prefix: The PublicIPPrefix from which to allocate publicIP addresses. + :type public_ip_prefix: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param 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'. Possible values include: "IPv4", "IPv6". + :type public_ip_address_version: str or ~azure.mgmt.compute.v2021_03_01.models.IPVersion + :param delete_option: Specify what happens to the public IP when the VM is deleted. Possible + values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions """ + _validation = { + 'name': {'required': True}, + } + _attribute_map = { - 'certificate_url': {'key': 'certificateUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'PublicIPAddressSku'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings'}, + 'ip_tags': {'key': 'properties.ipTags', 'type': '[VirtualMachineScaleSetIpTag]'}, + 'public_ip_prefix': {'key': 'properties.publicIPPrefix', 'type': 'SubResource'}, + 'public_ip_address_version': {'key': 'properties.publicIPAddressVersion', 'type': 'str'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, } def __init__( self, *, - certificate_url: Optional[str] = None, + name: str, + sku: Optional["PublicIPAddressSku"] = None, + idle_timeout_in_minutes: Optional[int] = None, + dns_settings: Optional["VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, + ip_tags: Optional[List["VirtualMachineScaleSetIpTag"]] = None, + public_ip_prefix: Optional["SubResource"] = None, + public_ip_address_version: Optional[Union[str, "IPVersion"]] = None, + delete_option: Optional[Union[str, "DeleteOptions"]] = None, **kwargs ): - super(CloudServiceVaultCertificate, self).__init__(**kwargs) - self.certificate_url = certificate_url + super(VirtualMachineScaleSetPublicIPAddressConfiguration, self).__init__(**kwargs) + self.name = name + self.sku = sku + self.idle_timeout_in_minutes = idle_timeout_in_minutes + self.dns_settings = dns_settings + self.ip_tags = ip_tags + self.public_ip_prefix = public_ip_prefix + self.public_ip_address_version = public_ip_address_version + self.delete_option = delete_option -class CloudServiceVaultSecretGroup(msrest.serialization.Model): - """Describes a set of certificates which are all in the same Key Vault. +class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(msrest.serialization.Model): + """Describes a virtual machines scale sets network configuration's DNS settings. - :param source_vault: The relative URL of the Key Vault containing all of the certificates in - VaultCertificates. - :type source_vault: ~azure.mgmt.compute.v2021_03_01.models.SubResource - :param vault_certificates: The list of key vault references in SourceVault which contain - certificates. - :type vault_certificates: - list[~azure.mgmt.compute.v2021_03_01.models.CloudServiceVaultCertificate] + All required parameters must be populated in order to send to Azure. + + :param domain_name_label: Required. The Domain name label.The concatenation of the domain name + label and vm index will be the domain name labels of the PublicIPAddress resources that will be + created. + :type domain_name_label: str """ + _validation = { + 'domain_name_label': {'required': True}, + } + _attribute_map = { - 'source_vault': {'key': 'sourceVault', 'type': 'SubResource'}, - 'vault_certificates': {'key': 'vaultCertificates', 'type': '[CloudServiceVaultCertificate]'}, + 'domain_name_label': {'key': 'domainNameLabel', 'type': 'str'}, } def __init__( self, *, - source_vault: Optional["SubResource"] = None, - vault_certificates: Optional[List["CloudServiceVaultCertificate"]] = None, + domain_name_label: str, **kwargs ): - super(CloudServiceVaultSecretGroup, self).__init__(**kwargs) - self.source_vault = source_vault - self.vault_certificates = vault_certificates + super(VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, self).__init__(**kwargs) + self.domain_name_label = domain_name_label -class Extension(msrest.serialization.Model): - """Describes a cloud service Extension. +class VirtualMachineScaleSetVMReimageParameters(VirtualMachineReimageParameters): + """Describes a Virtual Machine Scale Set VM Reimage Parameters. - :param name: The name of the extension. - :type name: str - :param properties: Extension Properties. - :type properties: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceExtensionProperties + :param temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp + disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. + :type temp_disk: bool """ _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'CloudServiceExtensionProperties'}, + 'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, } def __init__( self, *, - name: Optional[str] = None, - properties: Optional["CloudServiceExtensionProperties"] = None, + temp_disk: Optional[bool] = None, **kwargs ): - super(Extension, self).__init__(**kwargs) - self.name = name - self.properties = properties + super(VirtualMachineScaleSetVMReimageParameters, self).__init__(temp_disk=temp_disk, **kwargs) -class InnerError(msrest.serialization.Model): - """Inner error details. +class VirtualMachineScaleSetReimageParameters(VirtualMachineScaleSetVMReimageParameters): + """Describes a Virtual Machine Scale Set VM Reimage Parameters. - :param exceptiontype: The exception type. - :type exceptiontype: str - :param errordetail: The internal error message or exception dump. - :type errordetail: str + :param temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp + disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. + :type temp_disk: bool + :param instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine + scale set instance ids will result in the operation being performed on all virtual machines in + the virtual machine scale set. + :type instance_ids: list[str] """ _attribute_map = { - 'exceptiontype': {'key': 'exceptiontype', 'type': 'str'}, - 'errordetail': {'key': 'errordetail', 'type': 'str'}, + 'temp_disk': {'key': 'tempDisk', 'type': 'bool'}, + 'instance_ids': {'key': 'instanceIds', 'type': '[str]'}, } def __init__( self, *, - exceptiontype: Optional[str] = None, - errordetail: Optional[str] = None, + temp_disk: Optional[bool] = None, + instance_ids: Optional[List[str]] = None, **kwargs ): - super(InnerError, self).__init__(**kwargs) - self.exceptiontype = exceptiontype - self.errordetail = errordetail + super(VirtualMachineScaleSetReimageParameters, self).__init__(temp_disk=temp_disk, **kwargs) + self.instance_ids = instance_ids -class InstanceSku(msrest.serialization.Model): - """InstanceSku. +class VirtualMachineScaleSetSku(msrest.serialization.Model): + """Describes an available virtual machine scale set sku. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: The sku name. - :vartype name: str - :ivar tier: The tier of the cloud service role instance. - :vartype tier: str + :ivar resource_type: The type of resource the sku applies to. + :vartype resource_type: str + :ivar sku: The Sku. + :vartype sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :ivar capacity: Specifies the number of virtual machines in the scale set. + :vartype capacity: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetSkuCapacity """ _validation = { - 'name': {'readonly': True}, - 'tier': {'readonly': True}, + 'resource_type': {'readonly': True}, + 'sku': {'readonly': True}, + 'capacity': {'readonly': True}, } _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'capacity': {'key': 'capacity', 'type': 'VirtualMachineScaleSetSkuCapacity'}, } def __init__( self, **kwargs ): - super(InstanceSku, self).__init__(**kwargs) - self.name = None - self.tier = None + super(VirtualMachineScaleSetSku, self).__init__(**kwargs) + self.resource_type = None + self.sku = None + self.capacity = None -class InstanceViewStatusesSummary(msrest.serialization.Model): - """Instance view statuses. +class VirtualMachineScaleSetSkuCapacity(msrest.serialization.Model): + """Describes scaling information of a sku. Variables are only populated by the server, and will be ignored when sending a request. - :ivar statuses_summary: - :vartype statuses_summary: list[~azure.mgmt.compute.v2021_03_01.models.StatusCodeCount] + :ivar minimum: The minimum capacity. + :vartype minimum: long + :ivar maximum: The maximum capacity that can be set. + :vartype maximum: long + :ivar default_capacity: The default capacity. + :vartype default_capacity: long + :ivar scale_type: The scale type applicable to the sku. Possible values include: "Automatic", + "None". + :vartype scale_type: str or + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetSkuScaleType """ _validation = { - 'statuses_summary': {'readonly': True}, + 'minimum': {'readonly': True}, + 'maximum': {'readonly': True}, + 'default_capacity': {'readonly': True}, + 'scale_type': {'readonly': True}, } _attribute_map = { - 'statuses_summary': {'key': 'statusesSummary', 'type': '[StatusCodeCount]'}, + 'minimum': {'key': 'minimum', 'type': 'long'}, + 'maximum': {'key': 'maximum', 'type': 'long'}, + 'default_capacity': {'key': 'defaultCapacity', 'type': 'long'}, + 'scale_type': {'key': 'scaleType', 'type': 'str'}, } def __init__( self, **kwargs ): - super(InstanceViewStatusesSummary, self).__init__(**kwargs) - self.statuses_summary = None + super(VirtualMachineScaleSetSkuCapacity, self).__init__(**kwargs) + self.minimum = None + self.maximum = None + self.default_capacity = None + self.scale_type = None + + +class VirtualMachineScaleSetStorageProfile(msrest.serialization.Model): + """Describes a virtual machine scale set storage profile. + + :param image_reference: Specifies information about the image to use. You can specify + 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. + :type image_reference: ~azure.mgmt.compute.v2021_03_01.models.ImageReference + :param os_disk: Specifies information about the operating system disk used by the virtual + machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see + `About disks and VHDs for Azure virtual machines + `_. + :type os_disk: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetOSDisk + :param data_disks: Specifies the parameters that are used to add data disks to the virtual + machines in the scale set. :code:`
    `:code:`
    ` For more information about disks, see + `About disks and VHDs for Azure virtual machines + `_. + :type data_disks: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetDataDisk] + """ + _attribute_map = { + 'image_reference': {'key': 'imageReference', 'type': 'ImageReference'}, + 'os_disk': {'key': 'osDisk', 'type': 'VirtualMachineScaleSetOSDisk'}, + 'data_disks': {'key': 'dataDisks', 'type': '[VirtualMachineScaleSetDataDisk]'}, + } -class LoadBalancerConfiguration(msrest.serialization.Model): - """Describes the load balancer configuration. + def __init__( + self, + *, + image_reference: Optional["ImageReference"] = None, + os_disk: Optional["VirtualMachineScaleSetOSDisk"] = None, + data_disks: Optional[List["VirtualMachineScaleSetDataDisk"]] = None, + **kwargs + ): + super(VirtualMachineScaleSetStorageProfile, self).__init__(**kwargs) + self.image_reference = image_reference + self.os_disk = os_disk + self.data_disks = data_disks - All required parameters must be populated in order to send to Azure. + +class VirtualMachineScaleSetUpdate(UpdateResource): + """Describes a Virtual Machine Scale Set. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param sku: The virtual machine scale set sku. + :type sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param plan: The purchase plan when deploying a virtual machine scale set from VM Marketplace + images. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.Plan + :param identity: The identity of the virtual machine scale set, if configured. + :type identity: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetIdentity + :param upgrade_policy: The upgrade policy. + :type upgrade_policy: ~azure.mgmt.compute.v2021_03_01.models.UpgradePolicy + :param automatic_repairs_policy: Policy for automatic repairs. + :type automatic_repairs_policy: ~azure.mgmt.compute.v2021_03_01.models.AutomaticRepairsPolicy + :param virtual_machine_profile: The virtual machine profile. + :type virtual_machine_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateVMProfile + :param overprovision: Specifies whether the Virtual Machine Scale Set should be + overprovisioned. + :type overprovision: bool + :param do_not_run_extensions_on_overprovisioned_v_ms: When Overprovision is enabled, extensions + are launched only on the requested number of VMs which are finally kept. This property will + hence ensure that the extensions do not run on the extra overprovisioned VMs. + :type do_not_run_extensions_on_overprovisioned_v_ms: bool + :param single_placement_group: When true this limits the scale set to a single placement group, + of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to + false. However, if singlePlacementGroup is false, it may not be modified to true. + :type single_placement_group: bool + :param 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. + :type additional_capabilities: ~azure.mgmt.compute.v2021_03_01.models.AdditionalCapabilities + :param scale_in_policy: Specifies the scale-in policy that decides which virtual machines are + chosen for removal when a Virtual Machine Scale Set is scaled-in. + :type scale_in_policy: ~azure.mgmt.compute.v2021_03_01.models.ScaleInPolicy + :param 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. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'identity': {'key': 'identity', 'type': 'VirtualMachineScaleSetIdentity'}, + 'upgrade_policy': {'key': 'properties.upgradePolicy', 'type': 'UpgradePolicy'}, + 'automatic_repairs_policy': {'key': 'properties.automaticRepairsPolicy', 'type': 'AutomaticRepairsPolicy'}, + 'virtual_machine_profile': {'key': 'properties.virtualMachineProfile', 'type': 'VirtualMachineScaleSetUpdateVMProfile'}, + 'overprovision': {'key': 'properties.overprovision', 'type': 'bool'}, + 'do_not_run_extensions_on_overprovisioned_v_ms': {'key': 'properties.doNotRunExtensionsOnOverprovisionedVMs', 'type': 'bool'}, + 'single_placement_group': {'key': 'properties.singlePlacementGroup', 'type': 'bool'}, + 'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'}, + 'scale_in_policy': {'key': 'properties.scaleInPolicy', 'type': 'ScaleInPolicy'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + sku: Optional["Sku"] = None, + plan: Optional["Plan"] = None, + identity: Optional["VirtualMachineScaleSetIdentity"] = None, + upgrade_policy: Optional["UpgradePolicy"] = None, + automatic_repairs_policy: Optional["AutomaticRepairsPolicy"] = None, + virtual_machine_profile: Optional["VirtualMachineScaleSetUpdateVMProfile"] = None, + overprovision: Optional[bool] = None, + do_not_run_extensions_on_overprovisioned_v_ms: Optional[bool] = None, + single_placement_group: Optional[bool] = None, + additional_capabilities: Optional["AdditionalCapabilities"] = None, + scale_in_policy: Optional["ScaleInPolicy"] = None, + proximity_placement_group: Optional["SubResource"] = None, + **kwargs + ): + super(VirtualMachineScaleSetUpdate, self).__init__(tags=tags, **kwargs) + self.sku = sku + self.plan = plan + self.identity = identity + self.upgrade_policy = upgrade_policy + self.automatic_repairs_policy = automatic_repairs_policy + self.virtual_machine_profile = virtual_machine_profile + self.overprovision = overprovision + self.do_not_run_extensions_on_overprovisioned_v_ms = do_not_run_extensions_on_overprovisioned_v_ms + self.single_placement_group = single_placement_group + self.additional_capabilities = additional_capabilities + self.scale_in_policy = scale_in_policy + self.proximity_placement_group = proximity_placement_group + + +class VirtualMachineScaleSetUpdateIPConfiguration(SubResource): + """Describes a virtual machine scale set network profile's IP configuration. NOTE: The subnet of a scale set may be modified as long as the original subnet and the new subnet are in the same virtual network. :param id: Resource Id. :type id: str - :param name: Required. The name of the Load balancer. + :param name: The IP configuration name. :type name: str - :param properties: Required. Properties of the load balancer configuration. - :type properties: ~azure.mgmt.compute.v2021_03_01.models.LoadBalancerConfigurationProperties + :param subnet: The subnet. + :type subnet: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + :param primary: Specifies the primary IP Configuration in case the network interface has more + than one IP Configuration. + :type primary: bool + :param public_ip_address_configuration: The publicIPAddressConfiguration. + :type public_ip_address_configuration: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdatePublicIPAddressConfiguration + :param 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'. Possible values include: "IPv4", "IPv6". + :type private_ip_address_version: str or ~azure.mgmt.compute.v2021_03_01.models.IPVersion + :param application_gateway_backend_address_pools: The application gateway backend address + pools. + :type application_gateway_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param application_security_groups: Specifies an array of references to application security + group. + :type application_security_groups: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param load_balancer_backend_address_pools: The load balancer backend address pools. + :type load_balancer_backend_address_pools: + list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + :param load_balancer_inbound_nat_pools: The load balancer inbound nat pools. + :type load_balancer_inbound_nat_pools: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] """ - _validation = { - 'name': {'required': True}, - 'properties': {'required': True}, - } - _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'LoadBalancerConfigurationProperties'}, + 'subnet': {'key': 'properties.subnet', 'type': 'ApiEntityReference'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'public_ip_address_configuration': {'key': 'properties.publicIPAddressConfiguration', 'type': 'VirtualMachineScaleSetUpdatePublicIPAddressConfiguration'}, + 'private_ip_address_version': {'key': 'properties.privateIPAddressVersion', 'type': 'str'}, + 'application_gateway_backend_address_pools': {'key': 'properties.applicationGatewayBackendAddressPools', 'type': '[SubResource]'}, + 'application_security_groups': {'key': 'properties.applicationSecurityGroups', 'type': '[SubResource]'}, + 'load_balancer_backend_address_pools': {'key': 'properties.loadBalancerBackendAddressPools', 'type': '[SubResource]'}, + 'load_balancer_inbound_nat_pools': {'key': 'properties.loadBalancerInboundNatPools', 'type': '[SubResource]'}, } def __init__( self, *, - name: str, - properties: "LoadBalancerConfigurationProperties", id: Optional[str] = None, + name: Optional[str] = None, + subnet: Optional["ApiEntityReference"] = None, + primary: Optional[bool] = None, + public_ip_address_configuration: Optional["VirtualMachineScaleSetUpdatePublicIPAddressConfiguration"] = None, + private_ip_address_version: Optional[Union[str, "IPVersion"]] = None, + application_gateway_backend_address_pools: Optional[List["SubResource"]] = None, + application_security_groups: Optional[List["SubResource"]] = None, + load_balancer_backend_address_pools: Optional[List["SubResource"]] = None, + load_balancer_inbound_nat_pools: Optional[List["SubResource"]] = None, **kwargs ): - super(LoadBalancerConfiguration, self).__init__(**kwargs) - self.id = id + super(VirtualMachineScaleSetUpdateIPConfiguration, self).__init__(id=id, **kwargs) self.name = name - self.properties = properties - + self.subnet = subnet + self.primary = primary + self.public_ip_address_configuration = public_ip_address_configuration + self.private_ip_address_version = private_ip_address_version + self.application_gateway_backend_address_pools = application_gateway_backend_address_pools + self.application_security_groups = application_security_groups + self.load_balancer_backend_address_pools = load_balancer_backend_address_pools + self.load_balancer_inbound_nat_pools = load_balancer_inbound_nat_pools -class LoadBalancerConfigurationProperties(msrest.serialization.Model): - """LoadBalancerConfigurationProperties. - All required parameters must be populated in order to send to Azure. +class VirtualMachineScaleSetUpdateNetworkConfiguration(SubResource): + """Describes a virtual machine scale set network profile's network configurations. - :param frontend_ip_configurations: Required. Specifies the frontend IP to be used for the load - balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must - have exactly one frontend IP configuration. - :type frontend_ip_configurations: - list[~azure.mgmt.compute.v2021_03_01.models.LoadBalancerFrontendIPConfiguration] + :param id: Resource Id. + :type id: str + :param name: The network configuration name. + :type name: str + :param primary: Whether this is a primary NIC on a virtual machine. + :type primary: bool + :param enable_accelerated_networking: Specifies whether the network interface is accelerated + networking-enabled. + :type enable_accelerated_networking: bool + :param enable_fpga: Specifies whether the network interface is FPGA networking-enabled. + :type enable_fpga: bool + :param network_security_group: The network security group. + :type network_security_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param dns_settings: The dns settings to be applied on the network interfaces. + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings + :param ip_configurations: The virtual machine scale set IP Configuration. + :type ip_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateIPConfiguration] + :param enable_ip_forwarding: Whether IP forwarding enabled on this NIC. + :type enable_ip_forwarding: bool + :param delete_option: Specify what happens to the network interface when the VM is deleted. + Possible values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions """ - _validation = { - 'frontend_ip_configurations': {'required': True}, - } - _attribute_map = { - 'frontend_ip_configurations': {'key': 'frontendIPConfigurations', 'type': '[LoadBalancerFrontendIPConfiguration]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'}, + 'enable_fpga': {'key': 'properties.enableFpga', 'type': 'bool'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'SubResource'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineScaleSetNetworkConfigurationDnsSettings'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[VirtualMachineScaleSetUpdateIPConfiguration]'}, + 'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, } def __init__( self, *, - frontend_ip_configurations: List["LoadBalancerFrontendIPConfiguration"], + id: Optional[str] = None, + name: Optional[str] = None, + primary: Optional[bool] = None, + enable_accelerated_networking: Optional[bool] = None, + enable_fpga: Optional[bool] = None, + network_security_group: Optional["SubResource"] = None, + dns_settings: Optional["VirtualMachineScaleSetNetworkConfigurationDnsSettings"] = None, + ip_configurations: Optional[List["VirtualMachineScaleSetUpdateIPConfiguration"]] = None, + enable_ip_forwarding: Optional[bool] = None, + delete_option: Optional[Union[str, "DeleteOptions"]] = None, **kwargs ): - super(LoadBalancerConfigurationProperties, self).__init__(**kwargs) - self.frontend_ip_configurations = frontend_ip_configurations - - -class LoadBalancerFrontendIPConfiguration(msrest.serialization.Model): - """LoadBalancerFrontendIPConfiguration. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the resource that is unique within the set of frontend IP - configurations used by the load balancer. This name can be used to access the resource. - :type name: str - :param properties: Required. Properties of load balancer frontend ip configuration. - :type properties: - ~azure.mgmt.compute.v2021_03_01.models.LoadBalancerFrontendIPConfigurationProperties + super(VirtualMachineScaleSetUpdateNetworkConfiguration, self).__init__(id=id, **kwargs) + self.name = name + self.primary = primary + self.enable_accelerated_networking = enable_accelerated_networking + self.enable_fpga = enable_fpga + self.network_security_group = network_security_group + self.dns_settings = dns_settings + self.ip_configurations = ip_configurations + self.enable_ip_forwarding = enable_ip_forwarding + self.delete_option = delete_option + + +class VirtualMachineScaleSetUpdateNetworkProfile(msrest.serialization.Model): + """Describes a virtual machine scale set network profile. + + :param 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}'. + :type health_probe: ~azure.mgmt.compute.v2021_03_01.models.ApiEntityReference + :param network_interface_configurations: The list of network configurations. + :type network_interface_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateNetworkConfiguration] + :param 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'. Possible values include: "2020-11-01". + :type network_api_version: str or ~azure.mgmt.compute.v2021_03_01.models.NetworkApiVersion """ - _validation = { - 'name': {'required': True}, - 'properties': {'required': True}, - } - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'LoadBalancerFrontendIPConfigurationProperties'}, + 'health_probe': {'key': 'healthProbe', 'type': 'ApiEntityReference'}, + 'network_interface_configurations': {'key': 'networkInterfaceConfigurations', 'type': '[VirtualMachineScaleSetUpdateNetworkConfiguration]'}, + 'network_api_version': {'key': 'networkApiVersion', 'type': 'str'}, } def __init__( self, *, - name: str, - properties: "LoadBalancerFrontendIPConfigurationProperties", + health_probe: Optional["ApiEntityReference"] = None, + network_interface_configurations: Optional[List["VirtualMachineScaleSetUpdateNetworkConfiguration"]] = None, + network_api_version: Optional[Union[str, "NetworkApiVersion"]] = None, **kwargs ): - super(LoadBalancerFrontendIPConfiguration, self).__init__(**kwargs) - self.name = name - self.properties = properties - + super(VirtualMachineScaleSetUpdateNetworkProfile, self).__init__(**kwargs) + self.health_probe = health_probe + self.network_interface_configurations = network_interface_configurations + self.network_api_version = network_api_version + + +class VirtualMachineScaleSetUpdateOSDisk(msrest.serialization.Model): + """Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk. + + :param caching: The caching type. Possible values include: "None", "ReadOnly", "ReadWrite". + :type caching: str or ~azure.mgmt.compute.v2021_03_01.models.CachingTypes + :param write_accelerator_enabled: Specifies whether writeAccelerator should be enabled or + disabled on the disk. + :type write_accelerator_enabled: bool + :param disk_size_gb: Specifies the size of the operating system disk in gigabytes. This element + can be used to overwrite the size of the disk in a virtual machine image. + :code:`
    `:code:`
    ` This value cannot be larger than 1023 GB. + :type disk_size_gb: int + :param 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. + :type image: ~azure.mgmt.compute.v2021_03_01.models.VirtualHardDisk + :param vhd_containers: The list of virtual hard disk container uris. + :type vhd_containers: list[str] + :param managed_disk: The managed disk parameters. + :type managed_disk: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetManagedDiskParameters + """ -class LoadBalancerFrontendIPConfigurationProperties(msrest.serialization.Model): - """Describes a cloud service IP Configuration. + _attribute_map = { + 'caching': {'key': 'caching', 'type': 'str'}, + 'write_accelerator_enabled': {'key': 'writeAcceleratorEnabled', 'type': 'bool'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'image': {'key': 'image', 'type': 'VirtualHardDisk'}, + 'vhd_containers': {'key': 'vhdContainers', 'type': '[str]'}, + 'managed_disk': {'key': 'managedDisk', 'type': 'VirtualMachineScaleSetManagedDiskParameters'}, + } - :param public_ip_address: The reference to the public ip address resource. - :type public_ip_address: ~azure.mgmt.compute.v2021_03_01.models.SubResource - :param subnet: The reference to the virtual network subnet resource. - :type subnet: ~azure.mgmt.compute.v2021_03_01.models.SubResource - :param private_ip_address: The virtual network private IP address of the IP configuration. - :type private_ip_address: str + def __init__( + self, + *, + caching: Optional[Union[str, "CachingTypes"]] = None, + write_accelerator_enabled: Optional[bool] = None, + disk_size_gb: Optional[int] = None, + image: Optional["VirtualHardDisk"] = None, + vhd_containers: Optional[List[str]] = None, + managed_disk: Optional["VirtualMachineScaleSetManagedDiskParameters"] = None, + **kwargs + ): + super(VirtualMachineScaleSetUpdateOSDisk, self).__init__(**kwargs) + self.caching = caching + self.write_accelerator_enabled = write_accelerator_enabled + self.disk_size_gb = disk_size_gb + self.image = image + self.vhd_containers = vhd_containers + self.managed_disk = managed_disk + + +class VirtualMachineScaleSetUpdateOSProfile(msrest.serialization.Model): + """Describes a virtual machine scale set OS profile. + + :param custom_data: A base-64 encoded string of custom data. + :type custom_data: str + :param windows_configuration: The Windows Configuration of the OS profile. + :type windows_configuration: ~azure.mgmt.compute.v2021_03_01.models.WindowsConfiguration + :param linux_configuration: The Linux Configuration of the OS profile. + :type linux_configuration: ~azure.mgmt.compute.v2021_03_01.models.LinuxConfiguration + :param secrets: The List of certificates for addition to the VM. + :type secrets: list[~azure.mgmt.compute.v2021_03_01.models.VaultSecretGroup] """ _attribute_map = { - 'public_ip_address': {'key': 'publicIPAddress', 'type': 'SubResource'}, - 'subnet': {'key': 'subnet', 'type': 'SubResource'}, - 'private_ip_address': {'key': 'privateIPAddress', 'type': 'str'}, + 'custom_data': {'key': 'customData', 'type': 'str'}, + 'windows_configuration': {'key': 'windowsConfiguration', 'type': 'WindowsConfiguration'}, + 'linux_configuration': {'key': 'linuxConfiguration', 'type': 'LinuxConfiguration'}, + 'secrets': {'key': 'secrets', 'type': '[VaultSecretGroup]'}, } def __init__( self, *, - public_ip_address: Optional["SubResource"] = None, - subnet: Optional["SubResource"] = None, - private_ip_address: Optional[str] = None, + custom_data: Optional[str] = None, + windows_configuration: Optional["WindowsConfiguration"] = None, + linux_configuration: Optional["LinuxConfiguration"] = None, + secrets: Optional[List["VaultSecretGroup"]] = None, **kwargs ): - super(LoadBalancerFrontendIPConfigurationProperties, self).__init__(**kwargs) - self.public_ip_address = public_ip_address - self.subnet = subnet - self.private_ip_address = private_ip_address - + super(VirtualMachineScaleSetUpdateOSProfile, self).__init__(**kwargs) + self.custom_data = custom_data + self.windows_configuration = windows_configuration + self.linux_configuration = linux_configuration + self.secrets = secrets -class OSFamily(msrest.serialization.Model): - """Describes a cloud service OS family. - Variables are only populated by the server, and will be ignored when sending a request. +class VirtualMachineScaleSetUpdatePublicIPAddressConfiguration(msrest.serialization.Model): + """Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration. - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource name. - :vartype name: str - :ivar type: Resource type. - :vartype type: str - :ivar location: Resource location. - :vartype location: str - :param properties: OS family properties. - :type properties: ~azure.mgmt.compute.v2021_03_01.models.OSFamilyProperties + :param name: The publicIP address configuration name. + :type name: str + :param idle_timeout_in_minutes: The idle timeout of the public IP address. + :type idle_timeout_in_minutes: int + :param dns_settings: The dns settings to be applied on the publicIP addresses . + :type dns_settings: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings + :param delete_option: Specify what happens to the public IP when the VM is deleted. Possible + values include: "Delete", "Detach". + :type delete_option: str or ~azure.mgmt.compute.v2021_03_01.models.DeleteOptions """ - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - } - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'OSFamilyProperties'}, + 'name': {'key': 'name', 'type': 'str'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings'}, + 'delete_option': {'key': 'properties.deleteOption', 'type': 'str'}, } def __init__( self, *, - properties: Optional["OSFamilyProperties"] = None, + name: Optional[str] = None, + idle_timeout_in_minutes: Optional[int] = None, + dns_settings: Optional["VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings"] = None, + delete_option: Optional[Union[str, "DeleteOptions"]] = None, **kwargs ): - super(OSFamily, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = None - self.properties = properties - + super(VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, self).__init__(**kwargs) + self.name = name + self.idle_timeout_in_minutes = idle_timeout_in_minutes + self.dns_settings = dns_settings + self.delete_option = delete_option -class OSFamilyListResult(msrest.serialization.Model): - """OSFamilyListResult. - All required parameters must be populated in order to send to Azure. +class VirtualMachineScaleSetUpdateStorageProfile(msrest.serialization.Model): + """Describes a virtual machine scale set storage profile. - :param value: Required. - :type value: list[~azure.mgmt.compute.v2021_03_01.models.OSFamily] - :param next_link: - :type next_link: str + :param image_reference: The image reference. + :type image_reference: ~azure.mgmt.compute.v2021_03_01.models.ImageReference + :param os_disk: The OS disk. + :type os_disk: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateOSDisk + :param data_disks: The data disks. + :type data_disks: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetDataDisk] """ - _validation = { - 'value': {'required': True}, + _attribute_map = { + 'image_reference': {'key': 'imageReference', 'type': 'ImageReference'}, + 'os_disk': {'key': 'osDisk', 'type': 'VirtualMachineScaleSetUpdateOSDisk'}, + 'data_disks': {'key': 'dataDisks', 'type': '[VirtualMachineScaleSetDataDisk]'}, } + def __init__( + self, + *, + image_reference: Optional["ImageReference"] = None, + os_disk: Optional["VirtualMachineScaleSetUpdateOSDisk"] = None, + data_disks: Optional[List["VirtualMachineScaleSetDataDisk"]] = None, + **kwargs + ): + super(VirtualMachineScaleSetUpdateStorageProfile, self).__init__(**kwargs) + self.image_reference = image_reference + self.os_disk = os_disk + self.data_disks = data_disks + + +class VirtualMachineScaleSetUpdateVMProfile(msrest.serialization.Model): + """Describes a virtual machine scale set virtual machine profile. + + :param os_profile: The virtual machine scale set OS profile. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateOSProfile + :param storage_profile: The virtual machine scale set storage profile. + :type storage_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateStorageProfile + :param network_profile: The virtual machine scale set network profile. + :type network_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdateNetworkProfile + :param security_profile: The virtual machine scale set Security profile. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + :param diagnostics_profile: The virtual machine scale set diagnostics profile. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param extension_profile: The virtual machine scale set extension profile. + :type extension_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtensionProfile + :param license_type: The license type, which is for bring your own license scenario. + :type license_type: str + :param billing_profile: Specifies the billing related details of a Azure Spot VMSS. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + :type billing_profile: ~azure.mgmt.compute.v2021_03_01.models.BillingProfile + :param scheduled_events_profile: Specifies Scheduled Event related configurations. + :type scheduled_events_profile: ~azure.mgmt.compute.v2021_03_01.models.ScheduledEventsProfile + :param 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. + :type user_data: str + """ + _attribute_map = { - 'value': {'key': 'value', 'type': '[OSFamily]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'os_profile': {'key': 'osProfile', 'type': 'VirtualMachineScaleSetUpdateOSProfile'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'VirtualMachineScaleSetUpdateStorageProfile'}, + 'network_profile': {'key': 'networkProfile', 'type': 'VirtualMachineScaleSetUpdateNetworkProfile'}, + 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, + 'diagnostics_profile': {'key': 'diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'extension_profile': {'key': 'extensionProfile', 'type': 'VirtualMachineScaleSetExtensionProfile'}, + 'license_type': {'key': 'licenseType', 'type': 'str'}, + 'billing_profile': {'key': 'billingProfile', 'type': 'BillingProfile'}, + 'scheduled_events_profile': {'key': 'scheduledEventsProfile', 'type': 'ScheduledEventsProfile'}, + 'user_data': {'key': 'userData', 'type': 'str'}, } def __init__( self, *, - value: List["OSFamily"], - next_link: Optional[str] = None, + os_profile: Optional["VirtualMachineScaleSetUpdateOSProfile"] = None, + storage_profile: Optional["VirtualMachineScaleSetUpdateStorageProfile"] = None, + network_profile: Optional["VirtualMachineScaleSetUpdateNetworkProfile"] = None, + security_profile: Optional["SecurityProfile"] = None, + diagnostics_profile: Optional["DiagnosticsProfile"] = None, + extension_profile: Optional["VirtualMachineScaleSetExtensionProfile"] = None, + license_type: Optional[str] = None, + billing_profile: Optional["BillingProfile"] = None, + scheduled_events_profile: Optional["ScheduledEventsProfile"] = None, + user_data: Optional[str] = None, **kwargs ): - super(OSFamilyListResult, self).__init__(**kwargs) - self.value = value - self.next_link = next_link + super(VirtualMachineScaleSetUpdateVMProfile, self).__init__(**kwargs) + self.os_profile = os_profile + self.storage_profile = storage_profile + self.network_profile = network_profile + self.security_profile = security_profile + self.diagnostics_profile = diagnostics_profile + self.extension_profile = extension_profile + self.license_type = license_type + self.billing_profile = billing_profile + self.scheduled_events_profile = scheduled_events_profile + self.user_data = user_data -class OSFamilyProperties(msrest.serialization.Model): - """OS family properties. +class VirtualMachineScaleSetVM(Resource): + """Describes a virtual machine scale set virtual machine. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: The OS family name. + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id. + :vartype id: str + :ivar name: Resource name. :vartype name: str - :ivar label: The OS family label. - :vartype label: str - :ivar versions: List of OS versions belonging to this family. - :vartype versions: list[~azure.mgmt.compute.v2021_03_01.models.OSVersionPropertiesBase] + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :ivar instance_id: The virtual machine instance ID. + :vartype instance_id: str + :ivar sku: The virtual machine SKU. + :vartype sku: ~azure.mgmt.compute.v2021_03_01.models.Sku + :param 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**. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.Plan + :ivar resources: The virtual machine child extension resources. + :vartype resources: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension] + :ivar zones: The virtual machine zones. + :vartype zones: list[str] + :ivar latest_model_applied: Specifies whether the latest model has been applied to the virtual + machine. + :vartype latest_model_applied: bool + :ivar vm_id: Azure VM unique ID. + :vartype vm_id: str + :ivar instance_view: The virtual machine instance view. + :vartype instance_view: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceView + :param hardware_profile: Specifies the hardware settings for the virtual machine. + :type hardware_profile: ~azure.mgmt.compute.v2021_03_01.models.HardwareProfile + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: ~azure.mgmt.compute.v2021_03_01.models.StorageProfile + :param 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. + :type additional_capabilities: ~azure.mgmt.compute.v2021_03_01.models.AdditionalCapabilities + :param os_profile: Specifies the operating system settings for the virtual machine. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.OSProfile + :param security_profile: Specifies the Security related profile settings for the virtual + machine. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + :param network_profile: Specifies the network interfaces of the virtual machine. + :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.NetworkProfile + :param network_profile_configuration: Specifies the network profile configuration of the + virtual machine. + :type network_profile_configuration: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMNetworkProfileConfiguration + :param diagnostics_profile: Specifies the boot diagnostic settings state. + :code:`
    `:code:`
    `Minimum api-version: 2015-06-15. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param 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 + sets, see `Availability sets overview + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation + time. An existing VM cannot be added to an availability set. + :type availability_set: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param 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 + :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: + :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) + :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server + `_ + :code:`
    `:code:`
    ` `Azure Hybrid Use Benefit for Linux Server + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type license_type: str + :ivar model_definition_applied: Specifies whether the model applied to the virtual machine is + the model of the virtual machine scale set or the customized model for the virtual machine. + :vartype model_definition_applied: str + :param protection_policy: Specifies the protection policy of the virtual machine. + :type protection_policy: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMProtectionPolicy + :param 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. + :type user_data: str """ _validation = { + 'id': {'readonly': True}, 'name': {'readonly': True}, - 'label': {'readonly': True}, - 'versions': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'instance_id': {'readonly': True}, + 'sku': {'readonly': True}, + 'resources': {'readonly': True}, + 'zones': {'readonly': True}, + 'latest_model_applied': {'readonly': True}, + 'vm_id': {'readonly': True}, + 'instance_view': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'model_definition_applied': {'readonly': True}, } _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'versions': {'key': 'versions', 'type': '[OSVersionPropertiesBase]'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'instance_id': {'key': 'instanceId', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'resources': {'key': 'resources', 'type': '[VirtualMachineExtension]'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'latest_model_applied': {'key': 'properties.latestModelApplied', 'type': 'bool'}, + 'vm_id': {'key': 'properties.vmId', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'}, + 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'}, + 'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'}, + 'security_profile': {'key': 'properties.securityProfile', 'type': 'SecurityProfile'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'network_profile_configuration': {'key': 'properties.networkProfileConfiguration', 'type': 'VirtualMachineScaleSetVMNetworkProfileConfiguration'}, + 'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'model_definition_applied': {'key': 'properties.modelDefinitionApplied', 'type': 'str'}, + 'protection_policy': {'key': 'properties.protectionPolicy', 'type': 'VirtualMachineScaleSetVMProtectionPolicy'}, + 'user_data': {'key': 'properties.userData', 'type': 'str'}, } def __init__( self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + plan: Optional["Plan"] = None, + hardware_profile: Optional["HardwareProfile"] = None, + storage_profile: Optional["StorageProfile"] = None, + additional_capabilities: Optional["AdditionalCapabilities"] = None, + os_profile: Optional["OSProfile"] = None, + security_profile: Optional["SecurityProfile"] = None, + network_profile: Optional["NetworkProfile"] = None, + network_profile_configuration: Optional["VirtualMachineScaleSetVMNetworkProfileConfiguration"] = None, + diagnostics_profile: Optional["DiagnosticsProfile"] = None, + availability_set: Optional["SubResource"] = None, + license_type: Optional[str] = None, + protection_policy: Optional["VirtualMachineScaleSetVMProtectionPolicy"] = None, + user_data: Optional[str] = None, **kwargs ): - super(OSFamilyProperties, self).__init__(**kwargs) - self.name = None - self.label = None - self.versions = None + super(VirtualMachineScaleSetVM, self).__init__(location=location, tags=tags, **kwargs) + self.instance_id = None + self.sku = None + self.plan = plan + self.resources = None + self.zones = None + self.latest_model_applied = None + self.vm_id = None + self.instance_view = None + self.hardware_profile = hardware_profile + self.storage_profile = storage_profile + self.additional_capabilities = additional_capabilities + self.os_profile = os_profile + self.security_profile = security_profile + self.network_profile = network_profile + self.network_profile_configuration = network_profile_configuration + self.diagnostics_profile = diagnostics_profile + self.availability_set = availability_set + self.provisioning_state = None + self.license_type = license_type + self.model_definition_applied = None + self.protection_policy = protection_policy + self.user_data = user_data -class OSVersion(msrest.serialization.Model): - """Describes a cloud service OS version. +class VirtualMachineScaleSetVMExtension(SubResourceReadOnly): + """Describes a VMSS VM Extension. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource Id. :vartype id: str - :ivar name: Resource name. + :ivar name: The name of the extension. :vartype name: str :ivar type: Resource type. :vartype type: str - :ivar location: Resource location. - :vartype location: str - :param properties: OS version properties. - :type properties: ~azure.mgmt.compute.v2021_03_01.models.OSVersionProperties + :param force_update_tag: How the extension handler should be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_type: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type_properties_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any + :ivar provisioning_state: The provisioning state, which only appears in the response. + :vartype provisioning_state: str + :param instance_view: The virtual machine extension instance view. + :type instance_view: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionInstanceView """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'OSVersionProperties'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineExtensionInstanceView'}, } def __init__( self, *, - properties: Optional["OSVersionProperties"] = None, + force_update_tag: Optional[str] = None, + publisher: Optional[str] = None, + type_properties_type: Optional[str] = None, + type_handler_version: Optional[str] = None, + auto_upgrade_minor_version: Optional[bool] = None, + enable_automatic_upgrade: Optional[bool] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, + instance_view: Optional["VirtualMachineExtensionInstanceView"] = None, **kwargs ): - super(OSVersion, self).__init__(**kwargs) - self.id = None + super(VirtualMachineScaleSetVMExtension, self).__init__(**kwargs) self.name = None self.type = None - self.location = None - self.properties = properties - + self.force_update_tag = force_update_tag + self.publisher = publisher + self.type_properties_type = type_properties_type + self.type_handler_version = type_handler_version + self.auto_upgrade_minor_version = auto_upgrade_minor_version + self.enable_automatic_upgrade = enable_automatic_upgrade + self.settings = settings + self.protected_settings = protected_settings + self.provisioning_state = None + self.instance_view = instance_view -class OSVersionListResult(msrest.serialization.Model): - """OSVersionListResult. - All required parameters must be populated in order to send to Azure. +class VirtualMachineScaleSetVMExtensionsListResult(msrest.serialization.Model): + """The List VMSS VM Extension operation response. - :param value: Required. - :type value: list[~azure.mgmt.compute.v2021_03_01.models.OSVersion] - :param next_link: - :type next_link: str + :param value: The list of VMSS VM extensions. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtension] """ - _validation = { - 'value': {'required': True}, - } - _attribute_map = { - 'value': {'key': 'value', 'type': '[OSVersion]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSetVMExtension]'}, } def __init__( self, *, - value: List["OSVersion"], - next_link: Optional[str] = None, + value: Optional[List["VirtualMachineScaleSetVMExtension"]] = None, **kwargs ): - super(OSVersionListResult, self).__init__(**kwargs) + super(VirtualMachineScaleSetVMExtensionsListResult, self).__init__(**kwargs) self.value = value - self.next_link = next_link -class OSVersionProperties(msrest.serialization.Model): - """OS version properties. +class VirtualMachineScaleSetVMExtensionsSummary(msrest.serialization.Model): + """Extensions summary for virtual machines of a virtual machine scale set. Variables are only populated by the server, and will be ignored when sending a request. - :ivar family: The family of this OS version. - :vartype family: str - :ivar family_label: The family label of this OS version. - :vartype family_label: str - :ivar version: The OS version. - :vartype version: str - :ivar label: The OS version label. - :vartype label: str - :ivar is_default: Specifies whether this is the default OS version for its family. - :vartype is_default: bool - :ivar is_active: Specifies whether this OS version is active. - :vartype is_active: bool + :ivar name: The extension name. + :vartype name: str + :ivar statuses_summary: The extensions information. + :vartype statuses_summary: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineStatusCodeCount] """ _validation = { - 'family': {'readonly': True}, - 'family_label': {'readonly': True}, - 'version': {'readonly': True}, - 'label': {'readonly': True}, - 'is_default': {'readonly': True}, - 'is_active': {'readonly': True}, + 'name': {'readonly': True}, + 'statuses_summary': {'readonly': True}, } _attribute_map = { - 'family': {'key': 'family', 'type': 'str'}, - 'family_label': {'key': 'familyLabel', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'statuses_summary': {'key': 'statusesSummary', 'type': '[VirtualMachineStatusCodeCount]'}, } def __init__( self, **kwargs ): - super(OSVersionProperties, self).__init__(**kwargs) - self.family = None - self.family_label = None - self.version = None - self.label = None - self.is_default = None - self.is_active = None + super(VirtualMachineScaleSetVMExtensionsSummary, self).__init__(**kwargs) + self.name = None + self.statuses_summary = None -class OSVersionPropertiesBase(msrest.serialization.Model): - """Configuration view of an OS version. +class VirtualMachineScaleSetVMExtensionUpdate(SubResourceReadOnly): + """Describes a VMSS VM Extension. Variables are only populated by the server, and will be ignored when sending a request. - :ivar version: The OS version. - :vartype version: str - :ivar label: The OS version label. - :vartype label: str - :ivar is_default: Specifies whether this is the default OS version for its family. - :vartype is_default: bool - :ivar is_active: Specifies whether this OS version is active. - :vartype is_active: bool + :ivar id: Resource Id. + :vartype id: str + :ivar name: The name of the extension. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param force_update_tag: How the extension handler should be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_type: Specifies the type of the extension; an example is + "CustomScriptExtension". + :type type_properties_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param enable_automatic_upgrade: Indicates whether the extension should be automatically + upgraded by the platform if there is a newer version of the extension available. + :type enable_automatic_upgrade: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: The extension can contain either protectedSettings or + protectedSettingsFromKeyVault or no protected settings at all. + :type protected_settings: any """ _validation = { - 'version': {'readonly': True}, - 'label': {'readonly': True}, - 'is_default': {'readonly': True}, - 'is_active': {'readonly': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { - 'version': {'key': 'version', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'is_active': {'key': 'isActive', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'force_update_tag': {'key': 'properties.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.publisher', 'type': 'str'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.autoUpgradeMinorVersion', 'type': 'bool'}, + 'enable_automatic_upgrade': {'key': 'properties.enableAutomaticUpgrade', 'type': 'bool'}, + 'settings': {'key': 'properties.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.protectedSettings', 'type': 'object'}, } def __init__( self, + *, + force_update_tag: Optional[str] = None, + publisher: Optional[str] = None, + type_properties_type: Optional[str] = None, + type_handler_version: Optional[str] = None, + auto_upgrade_minor_version: Optional[bool] = None, + enable_automatic_upgrade: Optional[bool] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, **kwargs ): - super(OSVersionPropertiesBase, self).__init__(**kwargs) - self.version = None - self.label = None - self.is_default = None - self.is_active = None - + super(VirtualMachineScaleSetVMExtensionUpdate, self).__init__(**kwargs) + self.name = None + self.type = None + self.force_update_tag = force_update_tag + self.publisher = publisher + self.type_properties_type = type_properties_type + self.type_handler_version = type_handler_version + self.auto_upgrade_minor_version = auto_upgrade_minor_version + self.enable_automatic_upgrade = enable_automatic_upgrade + self.settings = settings + self.protected_settings = protected_settings -class ResourceInstanceViewStatus(msrest.serialization.Model): - """Instance view status. - Variables are only populated by the server, and will be ignored when sending a request. +class VirtualMachineScaleSetVMInstanceIDs(msrest.serialization.Model): + """Specifies a list of virtual machine instance IDs from the VM scale set. - :ivar code: The status code. - :vartype code: str - :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. - :vartype message: str - :ivar time: The time of the status. - :vartype time: ~datetime.datetime - :param level: The level code. Possible values include: "Info", "Warning", "Error". - :type level: str or ~azure.mgmt.compute.v2021_03_01.models.StatusLevelTypes + :param instance_ids: The virtual machine scale set instance ids. Omitting the virtual machine + scale set instance ids will result in the operation being performed on all virtual machines in + the virtual machine scale set. + :type instance_ids: list[str] """ - _validation = { - 'code': {'readonly': True}, - 'display_status': {'readonly': True}, - 'message': {'readonly': True}, - 'time': {'readonly': True}, + _attribute_map = { + 'instance_ids': {'key': 'instanceIds', 'type': '[str]'}, + } + + def __init__( + self, + *, + instance_ids: Optional[List[str]] = None, + **kwargs + ): + super(VirtualMachineScaleSetVMInstanceIDs, self).__init__(**kwargs) + self.instance_ids = instance_ids + + +class VirtualMachineScaleSetVMInstanceRequiredIDs(msrest.serialization.Model): + """Specifies a list of virtual machine instance IDs from the VM scale set. + + All required parameters must be populated in order to send to Azure. + + :param instance_ids: Required. The virtual machine scale set instance ids. + :type instance_ids: list[str] + """ + + _validation = { + 'instance_ids': {'required': True}, } _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'display_status': {'key': 'displayStatus', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'time': {'key': 'time', 'type': 'iso-8601'}, - 'level': {'key': 'level', 'type': 'str'}, + 'instance_ids': {'key': 'instanceIds', 'type': '[str]'}, } def __init__( self, *, - level: Optional[Union[str, "StatusLevelTypes"]] = None, + instance_ids: List[str], **kwargs ): - super(ResourceInstanceViewStatus, self).__init__(**kwargs) - self.code = None - self.display_status = None - self.message = None - self.time = None - self.level = level + super(VirtualMachineScaleSetVMInstanceRequiredIDs, self).__init__(**kwargs) + self.instance_ids = instance_ids -class RoleInstance(msrest.serialization.Model): - """RoleInstance. +class VirtualMachineScaleSetVMInstanceView(msrest.serialization.Model): + """The instance view of a virtual machine scale set VM. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str - :ivar type: Resource Type. - :vartype type: str - :ivar location: Resource Location. - :vartype location: str - :ivar tags: A set of tags. Resource tags. - :vartype tags: dict[str, str] - :param sku: - :type sku: ~azure.mgmt.compute.v2021_03_01.models.InstanceSku - :param properties: - :type properties: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceProperties + :param platform_update_domain: The Update Domain count. + :type platform_update_domain: int + :param platform_fault_domain: The Fault Domain count. + :type platform_fault_domain: int + :param rdp_thumb_print: The Remote desktop certificate thumbprint. + :type rdp_thumb_print: str + :param vm_agent: The VM Agent running on the virtual machine. + :type vm_agent: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineAgentInstanceView + :param maintenance_redeploy_status: The Maintenance Operation status on the virtual machine. + :type maintenance_redeploy_status: + ~azure.mgmt.compute.v2021_03_01.models.MaintenanceRedeployStatus + :param disks: The disks information. + :type disks: list[~azure.mgmt.compute.v2021_03_01.models.DiskInstanceView] + :param extensions: The extensions information. + :type extensions: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionInstanceView] + :ivar vm_health: The health status for the VM. + :vartype vm_health: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineHealthStatus + :param boot_diagnostics: Boot Diagnostics is a debugging feature which allows you to view + Console Output and Screenshot to diagnose VM status. :code:`
    `:code:`
    ` You can easily + view the output of your console log. :code:`
    `:code:`
    ` Azure also enables you to see a + screenshot of the VM from the hypervisor. + :type boot_diagnostics: ~azure.mgmt.compute.v2021_03_01.models.BootDiagnosticsInstanceView + :param statuses: The resource status information. + :type statuses: list[~azure.mgmt.compute.v2021_03_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. :code:`
    `:code:`
    `Minimum api-version: + 2020-06-01. + :vartype assigned_host: str + :param placement_group_id: The placement group in which the VM is running. If the VM is + deallocated it will not have a placementGroupId. + :type placement_group_id: str """ _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, + 'vm_health': {'readonly': True}, + 'assigned_host': {'readonly': True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'sku', 'type': 'InstanceSku'}, - 'properties': {'key': 'properties', 'type': 'RoleInstanceProperties'}, + 'platform_update_domain': {'key': 'platformUpdateDomain', 'type': 'int'}, + 'platform_fault_domain': {'key': 'platformFaultDomain', 'type': 'int'}, + 'rdp_thumb_print': {'key': 'rdpThumbPrint', 'type': 'str'}, + 'vm_agent': {'key': 'vmAgent', 'type': 'VirtualMachineAgentInstanceView'}, + 'maintenance_redeploy_status': {'key': 'maintenanceRedeployStatus', 'type': 'MaintenanceRedeployStatus'}, + 'disks': {'key': 'disks', 'type': '[DiskInstanceView]'}, + 'extensions': {'key': 'extensions', 'type': '[VirtualMachineExtensionInstanceView]'}, + 'vm_health': {'key': 'vmHealth', 'type': 'VirtualMachineHealthStatus'}, + 'boot_diagnostics': {'key': 'bootDiagnostics', 'type': 'BootDiagnosticsInstanceView'}, + 'statuses': {'key': 'statuses', 'type': '[InstanceViewStatus]'}, + 'assigned_host': {'key': 'assignedHost', 'type': 'str'}, + 'placement_group_id': {'key': 'placementGroupId', 'type': 'str'}, } def __init__( self, *, - sku: Optional["InstanceSku"] = None, - properties: Optional["RoleInstanceProperties"] = None, + platform_update_domain: Optional[int] = None, + platform_fault_domain: Optional[int] = None, + rdp_thumb_print: Optional[str] = None, + vm_agent: Optional["VirtualMachineAgentInstanceView"] = None, + maintenance_redeploy_status: Optional["MaintenanceRedeployStatus"] = None, + disks: Optional[List["DiskInstanceView"]] = None, + extensions: Optional[List["VirtualMachineExtensionInstanceView"]] = None, + boot_diagnostics: Optional["BootDiagnosticsInstanceView"] = None, + statuses: Optional[List["InstanceViewStatus"]] = None, + placement_group_id: Optional[str] = None, **kwargs ): - super(RoleInstance, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = None - self.tags = None - self.sku = sku - self.properties = properties + super(VirtualMachineScaleSetVMInstanceView, self).__init__(**kwargs) + self.platform_update_domain = platform_update_domain + self.platform_fault_domain = platform_fault_domain + self.rdp_thumb_print = rdp_thumb_print + self.vm_agent = vm_agent + self.maintenance_redeploy_status = maintenance_redeploy_status + self.disks = disks + self.extensions = extensions + self.vm_health = None + self.boot_diagnostics = boot_diagnostics + self.statuses = statuses + self.assigned_host = None + self.placement_group_id = placement_group_id -class RoleInstanceListResult(msrest.serialization.Model): - """RoleInstanceListResult. +class VirtualMachineScaleSetVMListResult(msrest.serialization.Model): + """The List Virtual Machine Scale Set VMs operation response. All required parameters must be populated in order to send to Azure. - :param value: Required. - :type value: list[~azure.mgmt.compute.v2021_03_01.models.RoleInstance] - :param next_link: + :param value: Required. The list of virtual machine scale sets VMs. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVM] + :param 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. :type next_link: str """ @@ -1407,152 +11516,332 @@ class RoleInstanceListResult(msrest.serialization.Model): } _attribute_map = { - 'value': {'key': 'value', 'type': '[RoleInstance]'}, + 'value': {'key': 'value', 'type': '[VirtualMachineScaleSetVM]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, - value: List["RoleInstance"], + value: List["VirtualMachineScaleSetVM"], next_link: Optional[str] = None, **kwargs ): - super(RoleInstanceListResult, self).__init__(**kwargs) + super(VirtualMachineScaleSetVMListResult, self).__init__(**kwargs) self.value = value self.next_link = next_link -class RoleInstanceNetworkProfile(msrest.serialization.Model): - """Describes the network profile for the role instance. +class VirtualMachineScaleSetVMNetworkProfileConfiguration(msrest.serialization.Model): + """Describes a virtual machine scale set VM network profile. - Variables are only populated by the server, and will be ignored when sending a request. + :param network_interface_configurations: The list of network configurations. + :type network_interface_configurations: + list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetNetworkConfiguration] + """ - :ivar network_interfaces: Specifies the list of resource Ids for the network interfaces - associated with the role instance. - :vartype network_interfaces: list[~azure.mgmt.compute.v2021_03_01.models.SubResource] + _attribute_map = { + 'network_interface_configurations': {'key': 'networkInterfaceConfigurations', 'type': '[VirtualMachineScaleSetNetworkConfiguration]'}, + } + + def __init__( + self, + *, + network_interface_configurations: Optional[List["VirtualMachineScaleSetNetworkConfiguration"]] = None, + **kwargs + ): + super(VirtualMachineScaleSetVMNetworkProfileConfiguration, self).__init__(**kwargs) + self.network_interface_configurations = network_interface_configurations + + +class VirtualMachineScaleSetVMProfile(msrest.serialization.Model): + """Describes a virtual machine scale set virtual machine profile. + + :param os_profile: Specifies the operating system settings for the virtual machines in the + scale set. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetOSProfile + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetStorageProfile + :param network_profile: Specifies properties of the network interfaces of the virtual machines + in the scale set. + :type network_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetNetworkProfile + :param security_profile: Specifies the Security related profile settings for the virtual + machines in the scale set. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + :param diagnostics_profile: Specifies the boot diagnostic settings state. + :code:`
    `:code:`
    `Minimum api-version: 2015-06-15. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param extension_profile: Specifies a collection of settings for extensions installed on + virtual machines in the scale set. + :type extension_profile: + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtensionProfile + :param 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 + :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: + :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) + :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server + `_ + :code:`
    `:code:`
    ` `Azure Hybrid Use Benefit for Linux Server + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type license_type: str + :param priority: Specifies the priority for the virtual machines in the scale set. + :code:`
    `:code:`
    `Minimum api-version: 2017-10-30-preview. Possible values include: + "Regular", "Low", "Spot". + :type priority: str or ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePriorityTypes + :param eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and + Azure Spot scale set. :code:`
    `:code:`
    `For Azure Spot virtual machines, both + 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. + :code:`
    `:code:`
    `For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported + and the minimum api-version is 2017-10-30-preview. Possible values include: "Deallocate", + "Delete". + :type eviction_policy: str or + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineEvictionPolicyTypes + :param billing_profile: Specifies the billing related details of a Azure Spot VMSS. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + :type billing_profile: ~azure.mgmt.compute.v2021_03_01.models.BillingProfile + :param scheduled_events_profile: Specifies Scheduled Event related configurations. + :type scheduled_events_profile: ~azure.mgmt.compute.v2021_03_01.models.ScheduledEventsProfile + :param 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. :code:`
    `:code:`
    `Minimum + api-version: 2021-03-01. + :type user_data: str """ - _validation = { - 'network_interfaces': {'readonly': True}, + _attribute_map = { + 'os_profile': {'key': 'osProfile', 'type': 'VirtualMachineScaleSetOSProfile'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'VirtualMachineScaleSetStorageProfile'}, + 'network_profile': {'key': 'networkProfile', 'type': 'VirtualMachineScaleSetNetworkProfile'}, + 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, + 'diagnostics_profile': {'key': 'diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'extension_profile': {'key': 'extensionProfile', 'type': 'VirtualMachineScaleSetExtensionProfile'}, + 'license_type': {'key': 'licenseType', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'str'}, + 'eviction_policy': {'key': 'evictionPolicy', 'type': 'str'}, + 'billing_profile': {'key': 'billingProfile', 'type': 'BillingProfile'}, + 'scheduled_events_profile': {'key': 'scheduledEventsProfile', 'type': 'ScheduledEventsProfile'}, + 'user_data': {'key': 'userData', 'type': 'str'}, } + def __init__( + self, + *, + os_profile: Optional["VirtualMachineScaleSetOSProfile"] = None, + storage_profile: Optional["VirtualMachineScaleSetStorageProfile"] = None, + network_profile: Optional["VirtualMachineScaleSetNetworkProfile"] = None, + security_profile: Optional["SecurityProfile"] = None, + diagnostics_profile: Optional["DiagnosticsProfile"] = None, + extension_profile: Optional["VirtualMachineScaleSetExtensionProfile"] = None, + license_type: Optional[str] = None, + priority: Optional[Union[str, "VirtualMachinePriorityTypes"]] = None, + eviction_policy: Optional[Union[str, "VirtualMachineEvictionPolicyTypes"]] = None, + billing_profile: Optional["BillingProfile"] = None, + scheduled_events_profile: Optional["ScheduledEventsProfile"] = None, + user_data: Optional[str] = None, + **kwargs + ): + super(VirtualMachineScaleSetVMProfile, self).__init__(**kwargs) + self.os_profile = os_profile + self.storage_profile = storage_profile + self.network_profile = network_profile + self.security_profile = security_profile + self.diagnostics_profile = diagnostics_profile + self.extension_profile = extension_profile + self.license_type = license_type + self.priority = priority + self.eviction_policy = eviction_policy + self.billing_profile = billing_profile + self.scheduled_events_profile = scheduled_events_profile + self.user_data = user_data + + +class VirtualMachineScaleSetVMProtectionPolicy(msrest.serialization.Model): + """The protection policy of a virtual machine scale set VM. + + :param protect_from_scale_in: Indicates that the virtual machine scale set VM shouldn't be + considered for deletion during a scale-in operation. + :type protect_from_scale_in: bool + :param protect_from_scale_set_actions: Indicates that model updates or actions (including + scale-in) initiated on the virtual machine scale set should not be applied to the virtual + machine scale set VM. + :type protect_from_scale_set_actions: bool + """ + _attribute_map = { - 'network_interfaces': {'key': 'networkInterfaces', 'type': '[SubResource]'}, + 'protect_from_scale_in': {'key': 'protectFromScaleIn', 'type': 'bool'}, + 'protect_from_scale_set_actions': {'key': 'protectFromScaleSetActions', 'type': 'bool'}, } def __init__( self, + *, + protect_from_scale_in: Optional[bool] = None, + protect_from_scale_set_actions: Optional[bool] = None, **kwargs ): - super(RoleInstanceNetworkProfile, self).__init__(**kwargs) - self.network_interfaces = None + super(VirtualMachineScaleSetVMProtectionPolicy, self).__init__(**kwargs) + self.protect_from_scale_in = protect_from_scale_in + self.protect_from_scale_set_actions = protect_from_scale_set_actions -class RoleInstanceProperties(msrest.serialization.Model): - """RoleInstanceProperties. +class VirtualMachineSize(msrest.serialization.Model): + """Describes the properties of a VM size. - :param network_profile: Describes the network profile for the role instance. - :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceNetworkProfile - :param instance_view: The instance view of the role instance. - :type instance_view: ~azure.mgmt.compute.v2021_03_01.models.RoleInstanceView + :param name: The name of the virtual machine size. + :type name: str + :param number_of_cores: The number of cores supported by the virtual machine size. For + Constrained vCPU capable VM sizes, this number represents the total vCPUs of quota that the VM + uses. For accurate vCPU count, please refer to + https://docs.microsoft.com/azure/virtual-machines/constrained-vcpu or + https://docs.microsoft.com/rest/api/compute/resourceskus/list. + :type number_of_cores: int + :param os_disk_size_in_mb: The OS disk size, in MB, allowed by the virtual machine size. + :type os_disk_size_in_mb: int + :param resource_disk_size_in_mb: The resource disk size, in MB, allowed by the virtual machine + size. + :type resource_disk_size_in_mb: int + :param memory_in_mb: The amount of memory, in MB, supported by the virtual machine size. + :type memory_in_mb: int + :param max_data_disk_count: The maximum number of data disks that can be attached to the + virtual machine size. + :type max_data_disk_count: int """ _attribute_map = { - 'network_profile': {'key': 'networkProfile', 'type': 'RoleInstanceNetworkProfile'}, - 'instance_view': {'key': 'instanceView', 'type': 'RoleInstanceView'}, + 'name': {'key': 'name', 'type': 'str'}, + 'number_of_cores': {'key': 'numberOfCores', 'type': 'int'}, + 'os_disk_size_in_mb': {'key': 'osDiskSizeInMB', 'type': 'int'}, + 'resource_disk_size_in_mb': {'key': 'resourceDiskSizeInMB', 'type': 'int'}, + 'memory_in_mb': {'key': 'memoryInMB', 'type': 'int'}, + 'max_data_disk_count': {'key': 'maxDataDiskCount', 'type': 'int'}, } def __init__( self, *, - network_profile: Optional["RoleInstanceNetworkProfile"] = None, - instance_view: Optional["RoleInstanceView"] = None, + name: Optional[str] = None, + number_of_cores: Optional[int] = None, + os_disk_size_in_mb: Optional[int] = None, + resource_disk_size_in_mb: Optional[int] = None, + memory_in_mb: Optional[int] = None, + max_data_disk_count: Optional[int] = None, **kwargs ): - super(RoleInstanceProperties, self).__init__(**kwargs) - self.network_profile = network_profile - self.instance_view = instance_view - + super(VirtualMachineSize, self).__init__(**kwargs) + self.name = name + self.number_of_cores = number_of_cores + self.os_disk_size_in_mb = os_disk_size_in_mb + self.resource_disk_size_in_mb = resource_disk_size_in_mb + self.memory_in_mb = memory_in_mb + self.max_data_disk_count = max_data_disk_count -class RoleInstances(msrest.serialization.Model): - """Specifies a list of role instances from the cloud service. - All required parameters must be populated in order to send to Azure. +class VirtualMachineSizeListResult(msrest.serialization.Model): + """The List Virtual Machine operation response. - :param role_instances: Required. List of cloud service role instance names. Value of '*' will - signify all role instances of the cloud service. - :type role_instances: list[str] + :param value: The list of virtual machine sizes. + :type value: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineSize] """ - _validation = { - 'role_instances': {'required': True}, - } - _attribute_map = { - 'role_instances': {'key': 'roleInstances', 'type': '[str]'}, + 'value': {'key': 'value', 'type': '[VirtualMachineSize]'}, } def __init__( self, *, - role_instances: List[str], + value: Optional[List["VirtualMachineSize"]] = None, **kwargs ): - super(RoleInstances, self).__init__(**kwargs) - self.role_instances = role_instances + super(VirtualMachineSizeListResult, self).__init__(**kwargs) + self.value = value -class RoleInstanceView(msrest.serialization.Model): - """The instance view of the role instance. +class VirtualMachineSoftwarePatchProperties(msrest.serialization.Model): + """Describes the properties of a Virtual Machine software patch. Variables are only populated by the server, and will be ignored when sending a request. - :ivar platform_update_domain: The Update Domain. - :vartype platform_update_domain: int - :ivar platform_fault_domain: The Fault Domain. - :vartype platform_fault_domain: int - :ivar private_id: Specifies a unique identifier generated internally for the cloud service - associated with this role instance. :code:`
    `:code:`
    ` NOTE: If you are using Azure - Diagnostics extension, this property can be used as 'DeploymentId' for querying details. - :vartype private_id: str - :ivar statuses: - :vartype statuses: list[~azure.mgmt.compute.v2021_03_01.models.ResourceInstanceViewStatus] + :ivar patch_id: A unique identifier for the patch. + :vartype patch_id: str + :ivar name: The friendly name of the patch. + :vartype name: str + :ivar version: The version number of the patch. This property applies only to Linux patches. + :vartype version: str + :ivar kb_id: The KBID of the patch. Only applies to Windows patches. + :vartype kb_id: str + :ivar classifications: The classification(s) of the patch as provided by the patch publisher. + :vartype classifications: list[str] + :ivar reboot_behavior: Describes the reboot requirements of the patch. Possible values include: + "Unknown", "NeverReboots", "AlwaysRequiresReboot", "CanRequestReboot". + :vartype reboot_behavior: str or + ~azure.mgmt.compute.v2021_03_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 + :ivar published_date: The UTC timestamp when the repository published this patch. + :vartype published_date: ~datetime.datetime + :ivar last_modified_date_time: The UTC timestamp of the last update to this patch record. + :vartype last_modified_date_time: ~datetime.datetime + :ivar assessment_state: Describes the availability of a given patch. Possible values include: + "Unknown", "Available". + :vartype assessment_state: str or ~azure.mgmt.compute.v2021_03_01.models.PatchAssessmentState """ _validation = { - 'platform_update_domain': {'readonly': True}, - 'platform_fault_domain': {'readonly': True}, - 'private_id': {'readonly': True}, - 'statuses': {'readonly': True}, + 'patch_id': {'readonly': True}, + 'name': {'readonly': True}, + 'version': {'readonly': True}, + 'kb_id': {'readonly': True}, + 'classifications': {'readonly': True}, + 'reboot_behavior': {'readonly': True}, + 'activity_id': {'readonly': True}, + 'published_date': {'readonly': True}, + 'last_modified_date_time': {'readonly': True}, + 'assessment_state': {'readonly': True}, } _attribute_map = { - 'platform_update_domain': {'key': 'platformUpdateDomain', 'type': 'int'}, - 'platform_fault_domain': {'key': 'platformFaultDomain', 'type': 'int'}, - 'private_id': {'key': 'privateId', 'type': 'str'}, - 'statuses': {'key': 'statuses', 'type': '[ResourceInstanceViewStatus]'}, + 'patch_id': {'key': 'patchId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'kb_id': {'key': 'kbId', 'type': 'str'}, + 'classifications': {'key': 'classifications', 'type': '[str]'}, + 'reboot_behavior': {'key': 'rebootBehavior', 'type': 'str'}, + 'activity_id': {'key': 'activityId', 'type': 'str'}, + 'published_date': {'key': 'publishedDate', 'type': 'iso-8601'}, + 'last_modified_date_time': {'key': 'lastModifiedDateTime', 'type': 'iso-8601'}, + 'assessment_state': {'key': 'assessmentState', 'type': 'str'}, } def __init__( self, **kwargs ): - super(RoleInstanceView, self).__init__(**kwargs) - self.platform_update_domain = None - self.platform_fault_domain = None - self.private_id = None - self.statuses = None + super(VirtualMachineSoftwarePatchProperties, self).__init__(**kwargs) + self.patch_id = None + self.name = None + self.version = None + self.kb_id = None + self.classifications = None + self.reboot_behavior = None + self.activity_id = None + self.published_date = None + self.last_modified_date_time = None + self.assessment_state = None -class StatusCodeCount(msrest.serialization.Model): - """StatusCodeCount. +class VirtualMachineStatusCodeCount(msrest.serialization.Model): + """The status code and count of the virtual machine scale set instance view status summary. Variables are only populated by the server, and will be ignored when sending a request. :ivar code: The instance view status code. :vartype code: str - :ivar count: Number of instances having this status code. + :ivar count: The number of instances having a particular status code. :vartype count: int """ @@ -1570,89 +11859,405 @@ def __init__( self, **kwargs ): - super(StatusCodeCount, self).__init__(**kwargs) + super(VirtualMachineStatusCodeCount, self).__init__(**kwargs) self.code = None self.count = None -class SubResource(msrest.serialization.Model): - """SubResource. +class VirtualMachineUpdate(UpdateResource): + """Describes a Virtual Machine Update. - :param id: Resource Id. - :type id: str + Variables are only populated by the server, and will be ignored when sending a request. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param 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**. + :type plan: ~azure.mgmt.compute.v2021_03_01.models.Plan + :param identity: The identity of the virtual machine, if configured. + :type identity: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineIdentity + :param zones: The virtual machine zones. + :type zones: list[str] + :param hardware_profile: Specifies the hardware settings for the virtual machine. + :type hardware_profile: ~azure.mgmt.compute.v2021_03_01.models.HardwareProfile + :param storage_profile: Specifies the storage settings for the virtual machine disks. + :type storage_profile: ~azure.mgmt.compute.v2021_03_01.models.StorageProfile + :param additional_capabilities: Specifies additional capabilities enabled or disabled on the + virtual machine. + :type additional_capabilities: ~azure.mgmt.compute.v2021_03_01.models.AdditionalCapabilities + :param os_profile: Specifies the operating system settings used while creating the virtual + machine. Some of the settings cannot be changed once VM is provisioned. + :type os_profile: ~azure.mgmt.compute.v2021_03_01.models.OSProfile + :param network_profile: Specifies the network interfaces of the virtual machine. + :type network_profile: ~azure.mgmt.compute.v2021_03_01.models.NetworkProfile + :param security_profile: Specifies the Security related profile settings for the virtual + machine. + :type security_profile: ~azure.mgmt.compute.v2021_03_01.models.SecurityProfile + :param diagnostics_profile: Specifies the boot diagnostic settings state. + :code:`
    `:code:`
    `Minimum api-version: 2015-06-15. + :type diagnostics_profile: ~azure.mgmt.compute.v2021_03_01.models.DiagnosticsProfile + :param 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 + sets, see `Availability sets overview + `_. + :code:`
    `:code:`
    ` For more information on Azure planned maintenance, see `Maintenance + and updates for Virtual Machines in Azure + `_ + :code:`
    `:code:`
    ` Currently, a VM can only be added to availability set at creation + time. The availability set to which the 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. + :code:`
    `:code:`
    `This property cannot exist along with a non-null + properties.virtualMachineScaleSet reference. + :type availability_set: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param 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. :code:`
    `:code:`
    `This property cannot exist along with a + non-null properties.availabilitySet reference. :code:`
    `:code:`
    `Minimum api‐version: + 2019‐03‐01. + :type virtual_machine_scale_set: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param proximity_placement_group: Specifies information about the proximity placement group + that the virtual machine should be assigned to. :code:`
    `:code:`
    `Minimum api-version: + 2018-04-01. + :type proximity_placement_group: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param priority: Specifies the priority for the virtual machine. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. Possible values include: "Regular", + "Low", "Spot". + :type priority: str or ~azure.mgmt.compute.v2021_03_01.models.VirtualMachinePriorityTypes + :param eviction_policy: Specifies the eviction policy for the Azure Spot virtual machine and + Azure Spot scale set. :code:`
    `:code:`
    `For Azure Spot virtual machines, both + 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. + :code:`
    `:code:`
    `For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported + and the minimum api-version is 2017-10-30-preview. Possible values include: "Deallocate", + "Delete". + :type eviction_policy: str or + ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineEvictionPolicyTypes + :param billing_profile: Specifies the billing related details of a Azure Spot virtual machine. + :code:`
    `:code:`
    `Minimum api-version: 2019-03-01. + :type billing_profile: ~azure.mgmt.compute.v2021_03_01.models.BillingProfile + :param host: Specifies information about the dedicated host that the virtual machine resides + in. :code:`
    `:code:`
    `Minimum api-version: 2018-10-01. + :type host: ~azure.mgmt.compute.v2021_03_01.models.SubResource + :param host_group: Specifies information about the dedicated host group that the virtual + machine resides in. :code:`
    `:code:`
    `Minimum api-version: 2020-06-01. + :code:`
    `:code:`
    `NOTE: User cannot specify both host and hostGroup properties. + :type host_group: ~azure.mgmt.compute.v2021_03_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.v2021_03_01.models.VirtualMachineInstanceView + :param 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 + :code:`
    `:code:`
    ` Possible values for Linux Server operating system are: + :code:`
    `:code:`
    ` RHEL_BYOS (for RHEL) :code:`
    `:code:`
    ` SLES_BYOS (for SUSE) + :code:`
    `:code:`
    ` For more information, see `Azure Hybrid Use Benefit for Windows Server + `_ + :code:`
    `:code:`
    ` `Azure Hybrid Use Benefit for Linux Server + `_ + :code:`
    `:code:`
    ` Minimum api-version: 2015-06-15. + :type license_type: str + :ivar vm_id: Specifies the VM unique ID which is a 128-bits identifier that is encoded and + stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands. + :vartype vm_id: str + :param 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). :code:`
    `:code:`
    ` Minimum + api-version: 2020-06-01. + :type extensions_time_budget: str + :param platform_fault_domain: Specifies the scale set logical fault domain into which the + Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned + to a fault domain that best maintains balance across available fault + domains.:code:`
    `:code:`
  • `This is applicable only if the 'virtualMachineScaleSet' + property of this Virtual Machine is set.:code:`
  • `The Virtual Machine Scale Set that is + referenced, must have 'platformFaultDomainCount' > 1.:code:`
  • `This property cannot be + updated once the Virtual Machine is created.:code:`
  • `Fault domain assignment can be viewed + in the Virtual Machine Instance View.:code:`
    `:code:`
    `Minimum api‐version: 2020‐12‐01. + :type platform_fault_domain: int + :param scheduled_events_profile: Specifies Scheduled Event related configurations. + :type scheduled_events_profile: ~azure.mgmt.compute.v2021_03_01.models.ScheduledEventsProfile + :param 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. + :type user_data: str """ + _validation = { + 'provisioning_state': {'readonly': True}, + 'instance_view': {'readonly': True}, + 'vm_id': {'readonly': True}, + } + _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'identity': {'key': 'identity', 'type': 'VirtualMachineIdentity'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'additional_capabilities': {'key': 'properties.additionalCapabilities', 'type': 'AdditionalCapabilities'}, + 'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'security_profile': {'key': 'properties.securityProfile', 'type': 'SecurityProfile'}, + 'diagnostics_profile': {'key': 'properties.diagnosticsProfile', 'type': 'DiagnosticsProfile'}, + 'availability_set': {'key': 'properties.availabilitySet', 'type': 'SubResource'}, + 'virtual_machine_scale_set': {'key': 'properties.virtualMachineScaleSet', 'type': 'SubResource'}, + 'proximity_placement_group': {'key': 'properties.proximityPlacementGroup', 'type': 'SubResource'}, + 'priority': {'key': 'properties.priority', 'type': 'str'}, + 'eviction_policy': {'key': 'properties.evictionPolicy', 'type': 'str'}, + 'billing_profile': {'key': 'properties.billingProfile', 'type': 'BillingProfile'}, + 'host': {'key': 'properties.host', 'type': 'SubResource'}, + 'host_group': {'key': 'properties.hostGroup', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'}, + 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'vm_id': {'key': 'properties.vmId', 'type': 'str'}, + 'extensions_time_budget': {'key': 'properties.extensionsTimeBudget', 'type': 'str'}, + 'platform_fault_domain': {'key': 'properties.platformFaultDomain', 'type': 'int'}, + 'scheduled_events_profile': {'key': 'properties.scheduledEventsProfile', 'type': 'ScheduledEventsProfile'}, + 'user_data': {'key': 'properties.userData', 'type': 'str'}, } def __init__( self, *, - id: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + plan: Optional["Plan"] = None, + identity: Optional["VirtualMachineIdentity"] = None, + zones: Optional[List[str]] = None, + hardware_profile: Optional["HardwareProfile"] = None, + storage_profile: Optional["StorageProfile"] = None, + additional_capabilities: Optional["AdditionalCapabilities"] = None, + os_profile: Optional["OSProfile"] = None, + network_profile: Optional["NetworkProfile"] = None, + security_profile: Optional["SecurityProfile"] = None, + diagnostics_profile: Optional["DiagnosticsProfile"] = None, + availability_set: Optional["SubResource"] = None, + virtual_machine_scale_set: Optional["SubResource"] = None, + proximity_placement_group: Optional["SubResource"] = None, + priority: Optional[Union[str, "VirtualMachinePriorityTypes"]] = None, + eviction_policy: Optional[Union[str, "VirtualMachineEvictionPolicyTypes"]] = None, + billing_profile: Optional["BillingProfile"] = None, + host: Optional["SubResource"] = None, + host_group: Optional["SubResource"] = None, + license_type: Optional[str] = None, + extensions_time_budget: Optional[str] = None, + platform_fault_domain: Optional[int] = None, + scheduled_events_profile: Optional["ScheduledEventsProfile"] = None, + user_data: Optional[str] = None, **kwargs ): - super(SubResource, self).__init__(**kwargs) - self.id = id - - -class UpdateDomain(msrest.serialization.Model): - """Defines an update domain for the cloud service. + super(VirtualMachineUpdate, self).__init__(tags=tags, **kwargs) + self.plan = plan + self.identity = identity + self.zones = zones + self.hardware_profile = hardware_profile + self.storage_profile = storage_profile + self.additional_capabilities = additional_capabilities + self.os_profile = os_profile + self.network_profile = network_profile + self.security_profile = security_profile + self.diagnostics_profile = diagnostics_profile + self.availability_set = availability_set + self.virtual_machine_scale_set = virtual_machine_scale_set + self.proximity_placement_group = proximity_placement_group + self.priority = priority + self.eviction_policy = eviction_policy + self.billing_profile = billing_profile + self.host = host + self.host_group = host_group + self.provisioning_state = None + self.instance_view = None + self.license_type = license_type + self.vm_id = None + self.extensions_time_budget = extensions_time_budget + self.platform_fault_domain = platform_fault_domain + self.scheduled_events_profile = scheduled_events_profile + self.user_data = user_data + + +class VMScaleSetConvertToSinglePlacementGroupInput(msrest.serialization.Model): + """VMScaleSetConvertToSinglePlacementGroupInput. + + :param active_placement_group_id: Id of the placement group in which you want future virtual + machine instances to be placed. To query placement group Id, please use Virtual Machine Scale + Set VMs - Get API. If not provided, the platform will choose one with maximum number of virtual + machine instances. + :type active_placement_group_id: str + """ - Variables are only populated by the server, and will be ignored when sending a request. + _attribute_map = { + 'active_placement_group_id': {'key': 'activePlacementGroupId', 'type': 'str'}, + } - :ivar id: Resource Id. - :vartype id: str - :ivar name: Resource Name. - :vartype name: str + def __init__( + self, + *, + active_placement_group_id: Optional[str] = None, + **kwargs + ): + super(VMScaleSetConvertToSinglePlacementGroupInput, self).__init__(**kwargs) + self.active_placement_group_id = active_placement_group_id + + +class WindowsConfiguration(msrest.serialization.Model): + """Specifies Windows operating system settings on the virtual machine. + + :param provision_vm_agent: Indicates whether virtual machine agent should be provisioned on the + virtual machine. :code:`
    `:code:`
    ` 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 be added to the VM later. + :type provision_vm_agent: bool + :param enable_automatic_updates: Indicates whether Automatic Updates is enabled for the Windows + virtual machine. Default value is true. :code:`
    `:code:`
    ` For virtual machine scale + sets, this property can be updated and updates will take effect on OS reprovisioning. + :type enable_automatic_updates: bool + :param time_zone: Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". + :code:`
    `:code:`
    ` Possible values can be `TimeZoneInfo.Id + `_ value + from time zones returned by `TimeZoneInfo.GetSystemTimeZones + `_. + :type time_zone: str + :param 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. + :type additional_unattend_content: + list[~azure.mgmt.compute.v2021_03_01.models.AdditionalUnattendContent] + :param patch_settings: [Preview Feature] Specifies settings related to VM Guest Patching on + Windows. + :type patch_settings: ~azure.mgmt.compute.v2021_03_01.models.PatchSettings + :param win_rm: Specifies the Windows Remote Management listeners. This enables remote Windows + PowerShell. + :type win_rm: ~azure.mgmt.compute.v2021_03_01.models.WinRMConfiguration """ - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, + _attribute_map = { + 'provision_vm_agent': {'key': 'provisionVMAgent', 'type': 'bool'}, + 'enable_automatic_updates': {'key': 'enableAutomaticUpdates', 'type': 'bool'}, + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + 'additional_unattend_content': {'key': 'additionalUnattendContent', 'type': '[AdditionalUnattendContent]'}, + 'patch_settings': {'key': 'patchSettings', 'type': 'PatchSettings'}, + 'win_rm': {'key': 'winRM', 'type': 'WinRMConfiguration'}, } + def __init__( + self, + *, + provision_vm_agent: Optional[bool] = None, + enable_automatic_updates: Optional[bool] = None, + time_zone: Optional[str] = None, + additional_unattend_content: Optional[List["AdditionalUnattendContent"]] = None, + patch_settings: Optional["PatchSettings"] = None, + win_rm: Optional["WinRMConfiguration"] = None, + **kwargs + ): + super(WindowsConfiguration, self).__init__(**kwargs) + self.provision_vm_agent = provision_vm_agent + self.enable_automatic_updates = enable_automatic_updates + self.time_zone = time_zone + self.additional_unattend_content = additional_unattend_content + self.patch_settings = patch_settings + self.win_rm = win_rm + + +class WindowsParameters(msrest.serialization.Model): + """Input for InstallPatches on a Windows VM, as directly received by the API. + + :param classifications_to_include: The update classifications to select when installing patches + for Windows. + :type classifications_to_include: list[str or + ~azure.mgmt.compute.v2021_03_01.models.VMGuestPatchClassificationWindows] + :param kb_numbers_to_include: Kbs to include in the patch operation. + :type kb_numbers_to_include: list[str] + :param kb_numbers_to_exclude: Kbs to exclude in the patch operation. + :type kb_numbers_to_exclude: list[str] + :param exclude_kbs_requiring_reboot: Filters out Kbs that don't have an + InstallationRebootBehavior of 'NeverReboots' when this is set to true. + :type exclude_kbs_requiring_reboot: bool + :param max_patch_publish_date: This is used to install patches that were published on or before + this given max published date. + :type max_patch_publish_date: ~datetime.datetime + """ + _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, + 'classifications_to_include': {'key': 'classificationsToInclude', 'type': '[str]'}, + 'kb_numbers_to_include': {'key': 'kbNumbersToInclude', 'type': '[str]'}, + 'kb_numbers_to_exclude': {'key': 'kbNumbersToExclude', 'type': '[str]'}, + 'exclude_kbs_requiring_reboot': {'key': 'excludeKbsRequiringReboot', 'type': 'bool'}, + 'max_patch_publish_date': {'key': 'maxPatchPublishDate', 'type': 'iso-8601'}, } def __init__( self, + *, + classifications_to_include: Optional[List[Union[str, "VMGuestPatchClassificationWindows"]]] = None, + kb_numbers_to_include: Optional[List[str]] = None, + kb_numbers_to_exclude: Optional[List[str]] = None, + exclude_kbs_requiring_reboot: Optional[bool] = None, + max_patch_publish_date: Optional[datetime.datetime] = None, **kwargs ): - super(UpdateDomain, self).__init__(**kwargs) - self.id = None - self.name = None - + super(WindowsParameters, self).__init__(**kwargs) + self.classifications_to_include = classifications_to_include + self.kb_numbers_to_include = kb_numbers_to_include + self.kb_numbers_to_exclude = kb_numbers_to_exclude + self.exclude_kbs_requiring_reboot = exclude_kbs_requiring_reboot + self.max_patch_publish_date = max_patch_publish_date -class UpdateDomainListResult(msrest.serialization.Model): - """UpdateDomainListResult. - All required parameters must be populated in order to send to Azure. +class WinRMConfiguration(msrest.serialization.Model): + """Describes Windows Remote Management configuration of the VM. - :param value: Required. - :type value: list[~azure.mgmt.compute.v2021_03_01.models.UpdateDomain] - :param next_link: - :type next_link: str + :param listeners: The list of Windows Remote Management listeners. + :type listeners: list[~azure.mgmt.compute.v2021_03_01.models.WinRMListener] """ - _validation = { - 'value': {'required': True}, + _attribute_map = { + 'listeners': {'key': 'listeners', 'type': '[WinRMListener]'}, } + def __init__( + self, + *, + listeners: Optional[List["WinRMListener"]] = None, + **kwargs + ): + super(WinRMConfiguration, self).__init__(**kwargs) + self.listeners = listeners + + +class WinRMListener(msrest.serialization.Model): + """Describes Protocol and thumbprint of Windows Remote Management listener. + + :param protocol: Specifies the protocol of WinRM listener. :code:`
    `:code:`
    ` Possible + values are: :code:`
    `\ **http** :code:`
    `:code:`
    ` **https**. Possible values include: + "Http", "Https". + :type protocol: str or ~azure.mgmt.compute.v2021_03_01.models.ProtocolTypes + :param 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 + certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded + in UTF-8: :code:`
    `:code:`
    ` {:code:`
    ` + "data":":code:``",:code:`
    ` "dataType":"pfx",:code:`
    ` + "password":":code:``":code:`
    `}. + :type certificate_url: str + """ + _attribute_map = { - 'value': {'key': 'value', 'type': '[UpdateDomain]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'certificate_url': {'key': 'certificateUrl', 'type': 'str'}, } def __init__( self, *, - value: List["UpdateDomain"], - next_link: Optional[str] = None, + protocol: Optional[Union[str, "ProtocolTypes"]] = None, + certificate_url: Optional[str] = None, **kwargs ): - super(UpdateDomainListResult, self).__init__(**kwargs) - self.value = value - self.next_link = next_link + super(WinRMListener, self).__init__(**kwargs) + self.protocol = protocol + self.certificate_url = certificate_url diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/__init__.py index 4e620f184dcb..1e078da6ebf8 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/__init__.py @@ -11,6 +11,30 @@ from ._cloud_services_operations import CloudServicesOperations from ._cloud_services_update_domain_operations import CloudServicesUpdateDomainOperations from ._cloud_service_operating_systems_operations import CloudServiceOperatingSystemsOperations +from ._operations import Operations +from ._availability_sets_operations import AvailabilitySetsOperations +from ._proximity_placement_groups_operations import ProximityPlacementGroupsOperations +from ._dedicated_host_groups_operations import DedicatedHostGroupsOperations +from ._dedicated_hosts_operations import DedicatedHostsOperations +from ._ssh_public_keys_operations import SshPublicKeysOperations +from ._virtual_machine_extension_images_operations import VirtualMachineExtensionImagesOperations +from ._virtual_machine_extensions_operations import VirtualMachineExtensionsOperations +from ._virtual_machine_images_operations import VirtualMachineImagesOperations +from ._virtual_machine_images_edge_zone_operations import VirtualMachineImagesEdgeZoneOperations +from ._usage_operations import UsageOperations +from ._virtual_machines_operations import VirtualMachinesOperations +from ._virtual_machine_scale_sets_operations import VirtualMachineScaleSetsOperations +from ._virtual_machine_sizes_operations import VirtualMachineSizesOperations +from ._images_operations import ImagesOperations +from ._restore_point_collections_operations import RestorePointCollectionsOperations +from ._restore_points_operations import RestorePointsOperations +from ._virtual_machine_scale_set_extensions_operations import VirtualMachineScaleSetExtensionsOperations +from ._virtual_machine_scale_set_rolling_upgrades_operations import VirtualMachineScaleSetRollingUpgradesOperations +from ._virtual_machine_scale_set_vm_extensions_operations import VirtualMachineScaleSetVMExtensionsOperations +from ._virtual_machine_scale_set_vms_operations import VirtualMachineScaleSetVMsOperations +from ._log_analytics_operations import LogAnalyticsOperations +from ._virtual_machine_run_commands_operations import VirtualMachineRunCommandsOperations +from ._virtual_machine_scale_set_vm_run_commands_operations import VirtualMachineScaleSetVMRunCommandsOperations __all__ = [ 'CloudServiceRoleInstancesOperations', @@ -18,4 +42,28 @@ 'CloudServicesOperations', 'CloudServicesUpdateDomainOperations', 'CloudServiceOperatingSystemsOperations', + 'Operations', + 'AvailabilitySetsOperations', + 'ProximityPlacementGroupsOperations', + 'DedicatedHostGroupsOperations', + 'DedicatedHostsOperations', + 'SshPublicKeysOperations', + 'VirtualMachineExtensionImagesOperations', + 'VirtualMachineExtensionsOperations', + 'VirtualMachineImagesOperations', + 'VirtualMachineImagesEdgeZoneOperations', + 'UsageOperations', + 'VirtualMachinesOperations', + 'VirtualMachineScaleSetsOperations', + 'VirtualMachineSizesOperations', + 'ImagesOperations', + 'RestorePointCollectionsOperations', + 'RestorePointsOperations', + 'VirtualMachineScaleSetExtensionsOperations', + 'VirtualMachineScaleSetRollingUpgradesOperations', + 'VirtualMachineScaleSetVMExtensionsOperations', + 'VirtualMachineScaleSetVMsOperations', + 'LogAnalyticsOperations', + 'VirtualMachineRunCommandsOperations', + 'VirtualMachineScaleSetVMRunCommandsOperations', ] diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_availability_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_availability_sets_operations.py new file mode 100644 index 000000000000..a0edd7868f13 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_availability_sets_operations.py @@ -0,0 +1,513 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class AvailabilitySetsOperations(object): + """AvailabilitySetsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def create_or_update( + self, + resource_group_name, # type: str + availability_set_name, # type: str + parameters, # type: "_models.AvailabilitySet" + **kwargs # type: Any + ): + # type: (...) -> "_models.AvailabilitySet" + """Create or update an availability set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. + :type availability_set_name: str + :param parameters: Parameters supplied to the Create Availability Set operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.AvailabilitySet + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AvailabilitySet, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.AvailabilitySet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilitySet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'availabilitySetName': self._serialize.url("availability_set_name", availability_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'AvailabilitySet') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('AvailabilitySet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'} # type: ignore + + def update( + self, + resource_group_name, # type: str + availability_set_name, # type: str + parameters, # type: "_models.AvailabilitySetUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.AvailabilitySet" + """Update an availability set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. + :type availability_set_name: str + :param parameters: Parameters supplied to the Update Availability Set operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.AvailabilitySetUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AvailabilitySet, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.AvailabilitySet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilitySet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'availabilitySetName': self._serialize.url("availability_set_name", availability_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'AvailabilitySetUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('AvailabilitySet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'} # type: ignore + + def delete( + self, + resource_group_name, # type: str + availability_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Delete an availability set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. + :type availability_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.delete.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'availabilitySetName': self._serialize.url("availability_set_name", availability_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 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, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + availability_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.AvailabilitySet" + """Retrieves information about an availability set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. + :type availability_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AvailabilitySet, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.AvailabilitySet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilitySet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'availabilitySetName': self._serialize.url("availability_set_name", availability_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('AvailabilitySet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}'} # type: ignore + + def list_by_subscription( + self, + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.AvailabilitySetListResult"] + """Lists all availability sets in a subscription. + + :param expand: The expand expression to apply to the operation. Allowed values are + 'instanceView'. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilitySetListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.AvailabilitySetListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilitySetListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + 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) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets'} # type: ignore + + def list( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.AvailabilitySetListResult"] + """Lists all availability sets in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilitySetListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.AvailabilitySetListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilitySetListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + 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) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets'} # type: ignore + + def list_available_sizes( + self, + resource_group_name, # type: str + availability_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineSizeListResult"] + """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. + :type resource_group_name: str + :param availability_set_name: The name of the availability set. + :type availability_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineSizeListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineSizeListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineSizeListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_available_sizes.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'availabilitySetName': self._serialize.url("availability_set_name", availability_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + 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) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_available_sizes.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_service_role_instances_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_service_role_instances_operations.py index 084d95f8be02..080d26681b83 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_service_role_instances_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_service_role_instances_operations.py @@ -112,8 +112,8 @@ def begin_delete( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -169,7 +169,7 @@ def get( role_instance_name, # type: str resource_group_name, # type: str cloud_service_name, # type: str - expand="instanceView", # type: Optional[str] + expand=None, # type: Optional[Union[str, "_models.InstanceViewTypes"]] **kwargs # type: Any ): # type: (...) -> "_models.RoleInstance" @@ -181,8 +181,9 @@ def get( :type resource_group_name: str :param cloud_service_name: :type cloud_service_name: str - :param expand: The expand expression to apply to the operation. - :type expand: str + :param expand: The expand expression to apply to the operation. 'UserData' is not supported for + cloud services. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes :keyword callable cls: A custom type or function that will be passed the direct response :return: RoleInstance, or the result of cls(response) :rtype: ~azure.mgmt.compute.v2021_03_01.models.RoleInstance @@ -299,7 +300,7 @@ def list( self, resource_group_name, # type: str cloud_service_name, # type: str - expand="instanceView", # type: Optional[str] + expand=None, # type: Optional[Union[str, "_models.InstanceViewTypes"]] **kwargs # type: Any ): # type: (...) -> Iterable["_models.RoleInstanceListResult"] @@ -311,8 +312,9 @@ def list( :type resource_group_name: str :param cloud_service_name: :type cloud_service_name: str - :param expand: The expand expression to apply to the operation. - :type expand: str + :param expand: The expand expression to apply to the operation. 'UserData' is not supported for + cloud services. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either RoleInstanceListResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.RoleInstanceListResult] @@ -443,8 +445,8 @@ def begin_restart( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -561,8 +563,8 @@ def begin_reimage( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -680,8 +682,8 @@ def begin_rebuild( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_services_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_services_operations.py index a17b88207074..3e0de227b912 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_services_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_services_operations.py @@ -127,8 +127,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.CloudService :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either CloudService or the result of cls(response) @@ -256,8 +256,8 @@ def begin_update( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.CloudServiceUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either CloudService or the result of cls(response) @@ -370,8 +370,8 @@ def begin_delete( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -740,8 +740,8 @@ def begin_start( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -851,8 +851,8 @@ def begin_power_off( :type cloud_service_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -973,8 +973,8 @@ def begin_restart( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1097,8 +1097,8 @@ def begin_reimage( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1222,8 +1222,8 @@ def begin_rebuild( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1345,8 +1345,8 @@ def begin_delete_instances( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RoleInstances :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_services_update_domain_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_services_update_domain_operations.py index 1cf23e321912..2b3e1ecaa702 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_services_update_domain_operations.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_cloud_services_update_domain_operations.py @@ -126,8 +126,8 @@ def begin_walk_update_domain( :type parameters: ~azure.mgmt.compute.v2021_03_01.models.UpdateDomain :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_dedicated_host_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_dedicated_host_groups_operations.py new file mode 100644 index 000000000000..8d0ed20c14e2 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_dedicated_host_groups_operations.py @@ -0,0 +1,446 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class DedicatedHostGroupsOperations(object): + """DedicatedHostGroupsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def create_or_update( + self, + resource_group_name, # type: str + host_group_name, # type: str + parameters, # type: "_models.DedicatedHostGroup" + **kwargs # type: Any + ): + # type: (...) -> "_models.DedicatedHostGroup" + """Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host + Groups please see [Dedicated Host Documentation] + (https://go.microsoft.com/fwlink/?linkid=2082596). + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param parameters: Parameters supplied to the Create Dedicated Host Group. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroup + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DedicatedHostGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'DedicatedHostGroup') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('DedicatedHostGroup', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('DedicatedHostGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}'} # type: ignore + + def update( + self, + resource_group_name, # type: str + host_group_name, # type: str + parameters, # type: "_models.DedicatedHostGroupUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.DedicatedHostGroup" + """Update an dedicated host group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param parameters: Parameters supplied to the Update Dedicated Host Group operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroupUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DedicatedHostGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'DedicatedHostGroupUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('DedicatedHostGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}'} # type: ignore + + def delete( + self, + resource_group_name, # type: str + host_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Delete a dedicated host group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.delete.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 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, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + host_group_name, # type: str + expand=None, # type: Optional[Union[str, "_models.InstanceViewTypes"]] + **kwargs # type: Any + ): + # type: (...) -> "_models.DedicatedHostGroup" + """Retrieves information about a dedicated host group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param 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. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DedicatedHostGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('DedicatedHostGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.DedicatedHostGroupListResult"] + """Lists all of the dedicated host groups in the specified resource group. Use the nextLink + property in the response to get the next page of dedicated host groups. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DedicatedHostGroupListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('DedicatedHostGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups'} # type: ignore + + def list_by_subscription( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.DedicatedHostGroupListResult"] + """Lists all of the dedicated host groups in the subscription. Use the nextLink property in the + response to get the next page of dedicated host groups. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DedicatedHostGroupListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('DedicatedHostGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_dedicated_hosts_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_dedicated_hosts_operations.py new file mode 100644 index 000000000000..66e770d04fc2 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_dedicated_hosts_operations.py @@ -0,0 +1,579 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class DedicatedHostsOperations(object): + """DedicatedHostsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _create_or_update_initial( + self, + resource_group_name, # type: str + host_group_name, # type: str + host_name, # type: str + parameters, # type: "_models.DedicatedHost" + **kwargs # type: Any + ): + # type: (...) -> "_models.DedicatedHost" + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'DedicatedHost') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('DedicatedHost', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('DedicatedHost', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + host_group_name, # type: str + host_name, # type: str + parameters, # type: "_models.DedicatedHost" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.DedicatedHost"] + """Create or update a dedicated host . + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param host_name: The name of the dedicated host . + :type host_name: str + :param parameters: Parameters supplied to the Create Dedicated Host. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHost + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.DedicatedHost] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + host_group_name=host_group_name, + host_name=host_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('DedicatedHost', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + host_group_name, # type: str + host_name, # type: str + parameters, # type: "_models.DedicatedHostUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.DedicatedHost" + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'DedicatedHostUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('DedicatedHost', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + host_group_name, # type: str + host_name, # type: str + parameters, # type: "_models.DedicatedHostUpdate" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.DedicatedHost"] + """Update an dedicated host . + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param host_name: The name of the dedicated host . + :type host_name: str + :param parameters: Parameters supplied to the Update Dedicated Host operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHostUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either DedicatedHost or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.DedicatedHost] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + host_group_name=host_group_name, + host_name=host_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('DedicatedHost', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + host_group_name, # type: str + host_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + host_group_name, # type: str + host_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Delete a dedicated host. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param host_name: The name of the dedicated host. + :type host_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + host_group_name=host_group_name, + host_name=host_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + host_group_name, # type: str + host_name, # type: str + expand=None, # type: Optional[Union[str, "_models.InstanceViewTypes"]] + **kwargs # type: Any + ): + # type: (...) -> "_models.DedicatedHost" + """Retrieves information about a dedicated host. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :param host_name: The name of the dedicated host. + :type host_name: str + :param 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. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DedicatedHost, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.DedicatedHost + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHost"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'hostName': self._serialize.url("host_name", host_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('DedicatedHost', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}'} # type: ignore + + def list_by_host_group( + self, + resource_group_name, # type: str + host_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.DedicatedHostListResult"] + """Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink + property in the response to get the next page of dedicated hosts. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param host_group_name: The name of the dedicated host group. + :type host_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DedicatedHostListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.DedicatedHostListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.DedicatedHostListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_host_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'hostGroupName': self._serialize.url("host_group_name", host_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('DedicatedHostListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_host_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_images_operations.py new file mode 100644 index 000000000000..2d0e51d1eb32 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_images_operations.py @@ -0,0 +1,619 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ImagesOperations(object): + """ImagesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _create_or_update_initial( + self, + resource_group_name, # type: str + image_name, # type: str + parameters, # type: "_models.Image" + **kwargs # type: Any + ): + # type: (...) -> "_models.Image" + cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'Image') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Image', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Image', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + image_name, # type: str + parameters, # type: "_models.Image" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.Image"] + """Create or update an image. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param image_name: The name of the image. + :type image_name: str + :param parameters: Parameters supplied to the Create Image operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.Image + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either Image or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.Image] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + image_name=image_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Image', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + image_name, # type: str + parameters, # type: "_models.ImageUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.Image" + cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ImageUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Image', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Image', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + image_name, # type: str + parameters, # type: "_models.ImageUpdate" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.Image"] + """Update an image. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param image_name: The name of the image. + :type image_name: str + :param parameters: Parameters supplied to the Update Image operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.ImageUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either Image or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.Image] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + image_name=image_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Image', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + image_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + image_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes an Image. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param image_name: The name of the image. + :type image_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + image_name=image_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + image_name, # type: str + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.Image" + """Gets an image. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param image_name: The name of the image. + :type image_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Image, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.Image + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Image"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'imageName': self._serialize.url("image_name", image_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('Image', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ImageListResult"] + """Gets the list of images under a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ImageListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.ImageListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ImageListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ImageListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images'} # type: ignore + + def list( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ImageListResult"] + """Gets the list of Images in the subscription. Use nextLink property in the response to get the + next page of Images. Do this till nextLink is null to fetch all the Images. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ImageListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.ImageListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ImageListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ImageListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/images'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_log_analytics_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_log_analytics_operations.py new file mode 100644 index 000000000000..0a28c08025db --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_log_analytics_operations.py @@ -0,0 +1,291 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class LogAnalyticsOperations(object): + """LogAnalyticsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _export_request_rate_by_interval_initial( + self, + location, # type: str + parameters, # type: "_models.RequestRateByIntervalInput" + **kwargs # type: Any + ): + # type: (...) -> Optional["_models.LogAnalyticsOperationResult"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._export_request_rate_by_interval_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RequestRateByIntervalInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('LogAnalyticsOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _export_request_rate_by_interval_initial.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval'} # type: ignore + + def begin_export_request_rate_by_interval( + self, + location, # type: str + parameters, # type: "_models.RequestRateByIntervalInput" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.LogAnalyticsOperationResult"] + """Export logs that show Api requests made by this subscription in the given time window to show + throttling activities. + + :param location: The location upon which virtual-machine-sizes is queried. + :type location: str + :param parameters: Parameters supplied to the LogAnalytics getRequestRateByInterval Api. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RequestRateByIntervalInput + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.LogAnalyticsOperationResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.LogAnalyticsOperationResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._export_request_rate_by_interval_initial( + location=location, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('LogAnalyticsOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_export_request_rate_by_interval.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval'} # type: ignore + + def _export_throttled_requests_initial( + self, + location, # type: str + parameters, # type: "_models.ThrottledRequestsInput" + **kwargs # type: Any + ): + # type: (...) -> Optional["_models.LogAnalyticsOperationResult"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.LogAnalyticsOperationResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._export_throttled_requests_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ThrottledRequestsInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('LogAnalyticsOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _export_throttled_requests_initial.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests'} # type: ignore + + def begin_export_throttled_requests( + self, + location, # type: str + parameters, # type: "_models.ThrottledRequestsInput" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.LogAnalyticsOperationResult"] + """Export logs that show total throttled Api requests for this subscription in the given time + window. + + :param location: The location upon which virtual-machine-sizes is queried. + :type location: str + :param parameters: Parameters supplied to the LogAnalytics getThrottledRequests Api. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.ThrottledRequestsInput + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either LogAnalyticsOperationResult or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.LogAnalyticsOperationResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.LogAnalyticsOperationResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._export_throttled_requests_initial( + location=location, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('LogAnalyticsOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_export_throttled_requests.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_operations.py new file mode 100644 index 000000000000..9fbb3dc0b614 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_operations.py @@ -0,0 +1,109 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class Operations(object): + """Operations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ComputeOperationListResult"] + """Gets a list of compute operations. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ComputeOperationListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.ComputeOperationListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ComputeOperationListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ComputeOperationListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/providers/Microsoft.Compute/operations'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_proximity_placement_groups_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_proximity_placement_groups_operations.py new file mode 100644 index 000000000000..b814207fa3ff --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_proximity_placement_groups_operations.py @@ -0,0 +1,441 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ProximityPlacementGroupsOperations(object): + """ProximityPlacementGroupsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def create_or_update( + self, + resource_group_name, # type: str + proximity_placement_group_name, # type: str + parameters, # type: "_models.ProximityPlacementGroup" + **kwargs # type: Any + ): + # type: (...) -> "_models.ProximityPlacementGroup" + """Create or update a proximity placement group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param proximity_placement_group_name: The name of the proximity placement group. + :type proximity_placement_group_name: str + :param parameters: Parameters supplied to the Create Proximity Placement Group operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroup + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProximityPlacementGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProximityPlacementGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'proximityPlacementGroupName': self._serialize.url("proximity_placement_group_name", proximity_placement_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ProximityPlacementGroup') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('ProximityPlacementGroup', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ProximityPlacementGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}'} # type: ignore + + def update( + self, + resource_group_name, # type: str + proximity_placement_group_name, # type: str + parameters, # type: "_models.ProximityPlacementGroupUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.ProximityPlacementGroup" + """Update a proximity placement group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param proximity_placement_group_name: The name of the proximity placement group. + :type proximity_placement_group_name: str + :param parameters: Parameters supplied to the Update Proximity Placement Group operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroupUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProximityPlacementGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProximityPlacementGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'proximityPlacementGroupName': self._serialize.url("proximity_placement_group_name", proximity_placement_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'ProximityPlacementGroupUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('ProximityPlacementGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}'} # type: ignore + + def delete( + self, + resource_group_name, # type: str + proximity_placement_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Delete a proximity placement group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param proximity_placement_group_name: The name of the proximity placement group. + :type proximity_placement_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.delete.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'proximityPlacementGroupName': self._serialize.url("proximity_placement_group_name", proximity_placement_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + proximity_placement_group_name, # type: str + include_colocation_status=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.ProximityPlacementGroup" + """Retrieves information about a proximity placement group . + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param proximity_placement_group_name: The name of the proximity placement group. + :type proximity_placement_group_name: str + :param include_colocation_status: includeColocationStatus=true enables fetching the colocation + status of all the resources in the proximity placement group. + :type include_colocation_status: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProximityPlacementGroup, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroup + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProximityPlacementGroup"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'proximityPlacementGroupName': self._serialize.url("proximity_placement_group_name", proximity_placement_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if include_colocation_status is not None: + query_parameters['includeColocationStatus'] = self._serialize.query("include_colocation_status", include_colocation_status, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('ProximityPlacementGroup', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}'} # type: ignore + + def list_by_subscription( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ProximityPlacementGroupListResult"] + """Lists all proximity placement groups in a subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ProximityPlacementGroupListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProximityPlacementGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ProximityPlacementGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ProximityPlacementGroupListResult"] + """Lists all proximity placement groups in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ProximityPlacementGroupListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.ProximityPlacementGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ProximityPlacementGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ProximityPlacementGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_restore_point_collections_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_restore_point_collections_operations.py new file mode 100644 index 000000000000..538a5f7a2f17 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_restore_point_collections_operations.py @@ -0,0 +1,505 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class RestorePointCollectionsOperations(object): + """RestorePointCollectionsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def create_or_update( + self, + resource_group_name, # type: str + restore_point_collection_name, # type: str + parameters, # type: "_models.RestorePointCollection" + **kwargs # type: Any + ): + # type: (...) -> "_models.RestorePointCollection" + """The operation to create or update the restore point collection. Please refer to + https://aka.ms/RestorePoints for more details. When updating a restore point collection, only + tags may be modified. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the restore point collection. + :type restore_point_collection_name: str + :param parameters: Parameters supplied to the Create or Update restore point collection + operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollection + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RestorePointCollection, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollection + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePointCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RestorePointCollection') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('RestorePointCollection', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('RestorePointCollection', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}'} # type: ignore + + def update( + self, + resource_group_name, # type: str + restore_point_collection_name, # type: str + parameters, # type: "_models.RestorePointCollectionUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.RestorePointCollection" + """The operation to update the restore point collection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the restore point collection. + :type restore_point_collection_name: str + :param parameters: Parameters supplied to the Update restore point collection operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollectionUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RestorePointCollection, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollection + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePointCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RestorePointCollectionUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('RestorePointCollection', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + restore_point_collection_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + restore_point_collection_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to delete the restore point collection. This operation will also delete all the + contained restore points. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the Restore Point Collection. + :type restore_point_collection_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + restore_point_collection_name=restore_point_collection_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + restore_point_collection_name, # type: str + expand=None, # type: Optional[Union[str, "_models.RestorePointCollectionExpandOptions"]] + **kwargs # type: Any + ): + # type: (...) -> "_models.RestorePointCollection" + """The operation to get the restore point collection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the restore point collection. + :type restore_point_collection_name: str + :param expand: The expand expression to apply on the operation. If expand=restorePoints, server + will return all contained restore points in the restorePointCollection. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollectionExpandOptions + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RestorePointCollection, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RestorePointCollection + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePointCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('RestorePointCollection', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}'} # type: ignore + + def list( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.RestorePointCollectionListResult"] + """Gets the list of restore point collections in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either RestorePointCollectionListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.RestorePointCollectionListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePointCollectionListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('RestorePointCollectionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections'} # type: ignore + + def list_all( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.RestorePointCollectionListResult"] + """Gets the list of restore point collections in the subscription. Use nextLink property in the + response to get the next page of restore point collections. Do this till nextLink is not null + to fetch all the restore point collections. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either RestorePointCollectionListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.RestorePointCollectionListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePointCollectionListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('RestorePointCollectionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_restore_points_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_restore_points_operations.py new file mode 100644 index 000000000000..cb10c6b9a084 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_restore_points_operations.py @@ -0,0 +1,361 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class RestorePointsOperations(object): + """RestorePointsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _create_initial( + self, + resource_group_name, # type: str + restore_point_collection_name, # type: str + restore_point_name, # type: str + parameters, # type: "_models.RestorePoint" + **kwargs # type: Any + ): + # type: (...) -> "_models.RestorePoint" + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePoint"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + 'restorePointName': self._serialize.url("restore_point_name", restore_point_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RestorePoint') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('RestorePoint', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}'} # type: ignore + + def begin_create( + self, + resource_group_name, # type: str + restore_point_collection_name, # type: str + restore_point_name, # type: str + parameters, # type: "_models.RestorePoint" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.RestorePoint"] + """The operation to create the restore point. Updating properties of an existing restore point is + not allowed. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the restore point collection. + :type restore_point_collection_name: str + :param restore_point_name: The name of the restore point. + :type restore_point_name: str + :param parameters: Parameters supplied to the Create restore point operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RestorePoint + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either RestorePoint or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.RestorePoint] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePoint"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_initial( + resource_group_name=resource_group_name, + restore_point_collection_name=restore_point_collection_name, + restore_point_name=restore_point_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('RestorePoint', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + 'restorePointName': self._serialize.url("restore_point_name", restore_point_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + restore_point_collection_name, # type: str + restore_point_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + 'restorePointName': self._serialize.url("restore_point_name", restore_point_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + restore_point_collection_name, # type: str + restore_point_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to delete the restore point. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the Restore Point Collection. + :type restore_point_collection_name: str + :param restore_point_name: The name of the restore point. + :type restore_point_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + restore_point_collection_name=restore_point_collection_name, + restore_point_name=restore_point_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + 'restorePointName': self._serialize.url("restore_point_name", restore_point_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + restore_point_collection_name, # type: str + restore_point_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.RestorePoint" + """The operation to get the restore point. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param restore_point_collection_name: The name of the restore point collection. + :type restore_point_collection_name: str + :param restore_point_name: The name of the restore point. + :type restore_point_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RestorePoint, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RestorePoint + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RestorePoint"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'restorePointCollectionName': self._serialize.url("restore_point_collection_name", restore_point_collection_name, 'str'), + 'restorePointName': self._serialize.url("restore_point_name", restore_point_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('RestorePoint', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_ssh_public_keys_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_ssh_public_keys_operations.py new file mode 100644 index 000000000000..4cc22211d41a --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_ssh_public_keys_operations.py @@ -0,0 +1,498 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class SshPublicKeysOperations(object): + """SshPublicKeysOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_subscription( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.SshPublicKeysGroupListResult"] + """Lists all of the SSH public keys in the subscription. Use the nextLink property in the response + to get the next page of SSH public keys. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either SshPublicKeysGroupListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.SshPublicKeysGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeysGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('SshPublicKeysGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.SshPublicKeysGroupListResult"] + """Lists all of the SSH public keys in the specified resource group. Use the nextLink property in + the response to get the next page of SSH public keys. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either SshPublicKeysGroupListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.SshPublicKeysGroupListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeysGroupListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('SshPublicKeysGroupListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys'} # type: ignore + + def create( + self, + resource_group_name, # type: str + ssh_public_key_name, # type: str + parameters, # type: "_models.SshPublicKeyResource" + **kwargs # type: Any + ): + # type: (...) -> "_models.SshPublicKeyResource" + """Creates a new SSH public key resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ssh_public_key_name: The name of the SSH public key. + :type ssh_public_key_name: str + :param parameters: Parameters supplied to create the SSH public key. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyResource + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SshPublicKeyResource, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyResource + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeyResource"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sshPublicKeyName': self._serialize.url("ssh_public_key_name", ssh_public_key_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'SshPublicKeyResource') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('SshPublicKeyResource', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('SshPublicKeyResource', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}'} # type: ignore + + def update( + self, + resource_group_name, # type: str + ssh_public_key_name, # type: str + parameters, # type: "_models.SshPublicKeyUpdateResource" + **kwargs # type: Any + ): + # type: (...) -> "_models.SshPublicKeyResource" + """Updates a new SSH public key resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ssh_public_key_name: The name of the SSH public key. + :type ssh_public_key_name: str + :param parameters: Parameters supplied to update the SSH public key. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyUpdateResource + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SshPublicKeyResource, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyResource + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeyResource"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.update.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sshPublicKeyName': self._serialize.url("ssh_public_key_name", ssh_public_key_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'SshPublicKeyUpdateResource') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('SshPublicKeyResource', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}'} # type: ignore + + def delete( + self, + resource_group_name, # type: str + ssh_public_key_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Delete an SSH public key. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ssh_public_key_name: The name of the SSH public key. + :type ssh_public_key_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.delete.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sshPublicKeyName': self._serialize.url("ssh_public_key_name", ssh_public_key_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 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, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + ssh_public_key_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.SshPublicKeyResource" + """Retrieves information about an SSH public key. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ssh_public_key_name: The name of the SSH public key. + :type ssh_public_key_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SshPublicKeyResource, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyResource + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeyResource"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sshPublicKeyName': self._serialize.url("ssh_public_key_name", ssh_public_key_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('SshPublicKeyResource', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}'} # type: ignore + + def generate_key_pair( + self, + resource_group_name, # type: str + ssh_public_key_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.SshPublicKeyGenerateKeyPairResult" + """Generates and returns a public/private key pair and populates the SSH public key resource with + the public key. The length of the key will be 3072 bits. This operation can only be performed + once per SSH public key resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ssh_public_key_name: The name of the SSH public key. + :type ssh_public_key_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SshPublicKeyGenerateKeyPairResult, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.SshPublicKeyGenerateKeyPairResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.SshPublicKeyGenerateKeyPairResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.generate_key_pair.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sshPublicKeyName': self._serialize.url("ssh_public_key_name", ssh_public_key_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('SshPublicKeyGenerateKeyPairResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + generate_key_pair.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_usage_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_usage_operations.py new file mode 100644 index 000000000000..ba685ab6e047 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_usage_operations.py @@ -0,0 +1,118 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class UsageOperations(object): + """UsageOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + location, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ListUsagesResult"] + """Gets, for the specified location, the current compute resource usage information as well as the + limits for compute resources under the subscription. + + :param location: The location for which resource usage is queried. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ListUsagesResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.ListUsagesResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ListUsagesResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ListUsagesResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_extension_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_extension_images_operations.py new file mode 100644 index 000000000000..adb6fd9e159a --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_extension_images_operations.py @@ -0,0 +1,249 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineExtensionImagesOperations(object): + """VirtualMachineExtensionImagesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + location, # type: str + publisher_name, # type: str + type, # type: str + version, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineExtensionImage" + """Gets a virtual machine extension image. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: + :type publisher_name: str + :param type: + :type type: str + :param version: + :type version: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineExtensionImage, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionImage + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtensionImage"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'type': self._serialize.url("type", type, 'str'), + 'version': self._serialize.url("version", version, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineExtensionImage', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}'} # type: ignore + + def list_types( + self, + location, # type: str + publisher_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> List["_models.VirtualMachineExtensionImage"] + """Gets a list of virtual machine extension image types. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: + :type publisher_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineExtensionImage, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionImage] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineExtensionImage"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_types.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('[VirtualMachineExtensionImage]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_types.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types'} # type: ignore + + def list_versions( + self, + location, # type: str + publisher_name, # type: str + type, # type: str + filter=None, # type: Optional[str] + top=None, # type: Optional[int] + orderby=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> List["_models.VirtualMachineExtensionImage"] + """Gets a list of virtual machine extension image versions. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: + :type publisher_name: str + :param type: + :type type: str + :param filter: The filter to apply on the operation. + :type filter: str + :param top: + :type top: int + :param orderby: + :type orderby: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineExtensionImage, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionImage] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineExtensionImage"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_versions.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'type': self._serialize.url("type", type, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('[VirtualMachineExtensionImage]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_versions.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_extensions_operations.py new file mode 100644 index 000000000000..9496a4ace807 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_extensions_operations.py @@ -0,0 +1,567 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineExtensionsOperations(object): + """VirtualMachineExtensionsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _create_or_update_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + vm_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineExtension" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineExtension" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineExtension') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineExtension', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + vm_name, # type: str + vm_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineExtension" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineExtension"] + """The operation to create or update the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the extension should be created or + updated. + :type vm_name: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + vm_extension_name=vm_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + vm_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineExtensionUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineExtension" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineExtensionUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + vm_name, # type: str + vm_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineExtensionUpdate" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineExtension"] + """The operation to update the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the extension should be updated. + :type vm_name: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param extension_parameters: Parameters supplied to the Update Virtual Machine Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineExtension or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + vm_extension_name=vm_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + vm_extension_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + vm_name, # type: str + vm_extension_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to delete the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the extension should be deleted. + :type vm_name: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + vm_extension_name=vm_extension_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + vm_name, # type: str + vm_extension_name, # type: str + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineExtension" + """The operation to get the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine containing the extension. + :type vm_name: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineExtension, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtension + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'} # type: ignore + + def list( + self, + resource_group_name, # type: str + vm_name, # type: str + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineExtensionsListResult" + """The operation to get all extensions of a Virtual Machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine containing the extension. + :type vm_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineExtensionsListResult, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineExtensionsListResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineExtensionsListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineExtensionsListResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_images_edge_zone_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_images_edge_zone_operations.py new file mode 100644 index 000000000000..243d9782081e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_images_edge_zone_operations.py @@ -0,0 +1,399 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineImagesEdgeZoneOperations(object): + """VirtualMachineImagesEdgeZoneOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + location, # type: str + edge_zone, # type: str + publisher_name, # type: str + offer, # type: str + skus, # type: str + version, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineImage" + """Gets a virtual machine image in an edge zone. + + :param location: The name of a supported Azure region. + :type location: str + :param edge_zone: The name of the edge zone. + :type edge_zone: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :param skus: A valid image SKU. + :type skus: str + :param version: A valid image SKU version. + :type version: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineImage, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImage + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineImage"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'edgeZone': self._serialize.url("edge_zone", edge_zone, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'skus': self._serialize.url("skus", skus, 'str'), + 'version': self._serialize.url("version", version, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}'} # type: ignore + + def list( + self, + location, # type: str + edge_zone, # type: str + publisher_name, # type: str + offer, # type: str + skus, # type: str + expand=None, # type: Optional[str] + top=None, # type: Optional[int] + orderby=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> List["_models.VirtualMachineImageResource"] + """Gets a list of all virtual machine image versions for the specified location, edge zone, + publisher, offer, and SKU. + + :param location: The name of a supported Azure region. + :type location: str + :param edge_zone: The name of the edge zone. + :type edge_zone: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :param skus: A valid image SKU. + :type skus: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :param top: An integer value specifying the number of images to return that matches supplied + values. + :type top: int + :param orderby: Specifies the order of the results returned. Formatted as an OData query. + :type orderby: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'edgeZone': self._serialize.url("edge_zone", edge_zone, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'skus': self._serialize.url("skus", skus, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions'} # type: ignore + + def list_offers( + self, + location, # type: str + edge_zone, # type: str + publisher_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> List["_models.VirtualMachineImageResource"] + """Gets a list of virtual machine image offers for the specified location, edge zone and + publisher. + + :param location: The name of a supported Azure region. + :type location: str + :param edge_zone: The name of the edge zone. + :type edge_zone: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_offers.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'edgeZone': self._serialize.url("edge_zone", edge_zone, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_offers.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers'} # type: ignore + + def list_publishers( + self, + location, # type: str + edge_zone, # type: str + **kwargs # type: Any + ): + # type: (...) -> List["_models.VirtualMachineImageResource"] + """Gets a list of virtual machine image publishers for the specified Azure location and edge zone. + + :param location: The name of a supported Azure region. + :type location: str + :param edge_zone: The name of the edge zone. + :type edge_zone: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_publishers.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'edgeZone': self._serialize.url("edge_zone", edge_zone, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_publishers.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers'} # type: ignore + + def list_skus( + self, + location, # type: str + edge_zone, # type: str + publisher_name, # type: str + offer, # type: str + **kwargs # type: Any + ): + # type: (...) -> List["_models.VirtualMachineImageResource"] + """Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and + offer. + + :param location: The name of a supported Azure region. + :type location: str + :param edge_zone: The name of the edge zone. + :type edge_zone: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_skus.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'edgeZone': self._serialize.url("edge_zone", edge_zone, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_images_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_images_operations.py new file mode 100644 index 000000000000..f1151606ab3f --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_images_operations.py @@ -0,0 +1,376 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineImagesOperations(object): + """VirtualMachineImagesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + location, # type: str + publisher_name, # type: str + offer, # type: str + skus, # type: str + version, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineImage" + """Gets a virtual machine image. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :param skus: A valid image SKU. + :type skus: str + :param version: A valid image SKU version. + :type version: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineImage, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImage + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineImage"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'skus': self._serialize.url("skus", skus, 'str'), + 'version': self._serialize.url("version", version, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}'} # type: ignore + + def list( + self, + location, # type: str + publisher_name, # type: str + offer, # type: str + skus, # type: str + expand=None, # type: Optional[str] + top=None, # type: Optional[int] + orderby=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> List["_models.VirtualMachineImageResource"] + """Gets a list of all virtual machine image versions for the specified location, publisher, offer, + and SKU. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :param skus: A valid image SKU. + :type skus: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :param top: + :type top: int + :param orderby: + :type orderby: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'skus': self._serialize.url("skus", skus, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions'} # type: ignore + + def list_offers( + self, + location, # type: str + publisher_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> List["_models.VirtualMachineImageResource"] + """Gets a list of virtual machine image offers for the specified location and publisher. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_offers.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_offers.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers'} # type: ignore + + def list_publishers( + self, + location, # type: str + **kwargs # type: Any + ): + # type: (...) -> List["_models.VirtualMachineImageResource"] + """Gets a list of virtual machine image publishers for the specified Azure location. + + :param location: The name of a supported Azure region. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_publishers.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_publishers.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers'} # type: ignore + + def list_skus( + self, + location, # type: str + publisher_name, # type: str + offer, # type: str + **kwargs # type: Any + ): + # type: (...) -> List["_models.VirtualMachineImageResource"] + """Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. + + :param location: The name of a supported Azure region. + :type location: str + :param publisher_name: A valid image publisher. + :type publisher_name: str + :param offer: A valid image publisher offer. + :type offer: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: list of VirtualMachineImageResource, or the result of cls(response) + :rtype: list[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineImageResource] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[List["_models.VirtualMachineImageResource"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list_skus.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'publisherName': self._serialize.url("publisher_name", publisher_name, 'str'), + 'offer': self._serialize.url("offer", offer, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('[VirtualMachineImageResource]', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_run_commands_operations.py new file mode 100644 index 000000000000..650bfaebf964 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_run_commands_operations.py @@ -0,0 +1,714 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineRunCommandsOperations(object): + """VirtualMachineRunCommandsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + location, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.RunCommandListResult"] + """Lists all available run commands for a subscription in a location. + + :param location: The location upon which run commands is queried. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either RunCommandListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.RunCommandListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RunCommandListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('RunCommandListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands'} # type: ignore + + def get( + self, + location, # type: str + command_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.RunCommandDocument" + """Gets specific run command for a subscription in a location. + + :param location: The location upon which run commands is queried. + :type location: str + :param command_id: The command id. + :type command_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RunCommandDocument, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RunCommandDocument + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RunCommandDocument"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'commandId': self._serialize.url("command_id", command_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('RunCommandDocument', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + run_command_name, # type: str + run_command, # type: "_models.VirtualMachineRunCommand" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineRunCommand" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(run_command, 'VirtualMachineRunCommand') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + vm_name, # type: str + run_command_name, # type: str + run_command, # type: "_models.VirtualMachineRunCommand" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineRunCommand"] + """The operation to create or update the run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the run command should be created or + updated. + :type vm_name: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + :type run_command: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + run_command=run_command, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + run_command_name, # type: str + run_command, # type: "_models.VirtualMachineRunCommandUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineRunCommand" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(run_command, 'VirtualMachineRunCommandUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + vm_name, # type: str + run_command_name, # type: str + run_command, # type: "_models.VirtualMachineRunCommandUpdate" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineRunCommand"] + """The operation to update the run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the run command should be updated. + :type vm_name: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. + :type run_command: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + run_command=run_command, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + run_command_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + vm_name, # type: str + run_command_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to delete the run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine where the run command should be deleted. + :type vm_name: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + run_command_name=run_command_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + def get_by_virtual_machine( + self, + resource_group_name, # type: str + vm_name, # type: str + run_command_name, # type: str + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineRunCommand" + """The operation to get the run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine containing the run command. + :type vm_name: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineRunCommand, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + # Construct URL + url = self.get_by_virtual_machine.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_by_virtual_machine.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}'} # type: ignore + + def list_by_virtual_machine( + self, + resource_group_name, # type: str + vm_name, # type: str + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineRunCommandsListResult"] + """The operation to get all run commands of a Virtual Machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine containing the run command. + :type vm_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineRunCommandsListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandsListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommandsListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_virtual_machine.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommandsListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_virtual_machine.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_extensions_operations.py new file mode 100644 index 000000000000..5930da4595cd --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_extensions_operations.py @@ -0,0 +1,583 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetExtensionsOperations(object): + """VirtualMachineScaleSetExtensionsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _create_or_update_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vmss_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineScaleSetExtension" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSetExtension" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineScaleSetExtension') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vmss_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineScaleSetExtension" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineScaleSetExtension"] + """The operation to create or update an extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set where the extension should be create or + updated. + :type vm_scale_set_name: str + :param vmss_extension_name: The name of the VM scale set extension. + :type vmss_extension_name: str + :param extension_parameters: Parameters supplied to the Create VM scale set Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vmss_extension_name=vmss_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vmss_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineScaleSetExtensionUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSetExtension" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineScaleSetExtensionUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vmss_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineScaleSetExtensionUpdate" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineScaleSetExtension"] + """The operation to update an extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set where the extension should be updated. + :type vm_scale_set_name: str + :param vmss_extension_name: The name of the VM scale set extension. + :type vmss_extension_name: str + :param extension_parameters: Parameters supplied to the Update VM scale set Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtensionUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineScaleSetExtension or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vmss_extension_name=vmss_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vmss_extension_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vmss_extension_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to delete the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set where the extension should be deleted. + :type vm_scale_set_name: str + :param vmss_extension_name: The name of the VM scale set extension. + :type vmss_extension_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vmss_extension_name=vmss_extension_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vmss_extension_name, # type: str + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSetExtension" + """The operation to get the extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set containing the extension. + :type vm_scale_set_name: str + :param vmss_extension_name: The name of the VM scale set extension. + :type vmss_extension_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetExtension, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtension + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'vmssExtensionName': self._serialize.url("vmss_extension_name", vmss_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}'} # type: ignore + + def list( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineScaleSetExtensionListResult"] + """Gets a list of all extensions in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set containing the extension. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetExtensionListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetExtensionListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetExtensionListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetExtensionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py new file mode 100644 index 000000000000..05863a4a9644 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_rolling_upgrades_operations.py @@ -0,0 +1,434 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetRollingUpgradesOperations(object): + """VirtualMachineScaleSetRollingUpgradesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _cancel_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._cancel_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _cancel_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel'} # type: ignore + + def begin_cancel( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Cancels the current virtual machine scale set rolling upgrade. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._cancel_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel'} # type: ignore + + def _start_os_upgrade_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._start_os_upgrade_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _start_os_upgrade_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade'} # type: ignore + + def begin_start_os_upgrade( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Starts a rolling upgrade to move all virtual machine scale set instances to the latest + available Platform Image OS version. Instances which are already running the latest available + OS version are not affected. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._start_os_upgrade_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_start_os_upgrade.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade'} # type: ignore + + def _start_extension_upgrade_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._start_extension_upgrade_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _start_extension_upgrade_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade'} # type: ignore + + def begin_start_extension_upgrade( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to + the latest available extension version. Instances which are already running the latest + extension versions are not affected. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._start_extension_upgrade_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_start_extension_upgrade.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade'} # type: ignore + + def get_latest( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.RollingUpgradeStatusInfo" + """Gets the status of the latest virtual machine scale set rolling upgrade. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RollingUpgradeStatusInfo, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RollingUpgradeStatusInfo + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RollingUpgradeStatusInfo"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get_latest.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('RollingUpgradeStatusInfo', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_latest.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py new file mode 100644 index 000000000000..420d995e9f18 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_vm_extensions_operations.py @@ -0,0 +1,597 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetVMExtensionsOperations(object): + """VirtualMachineScaleSetVMExtensionsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _create_or_update_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + vm_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineScaleSetVMExtension" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSetVMExtension" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineScaleSetVMExtension') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineScaleSetVMExtension', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineScaleSetVMExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + vm_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineScaleSetVMExtension" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineScaleSetVMExtension"] + """The operation to create or update the VMSS VM extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param extension_parameters: Parameters supplied to the Create Virtual Machine Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtension + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + vm_extension_name=vm_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetVMExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + vm_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineScaleSetVMExtensionUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSetVMExtension" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension_parameters, 'VirtualMachineScaleSetVMExtensionUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetVMExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + vm_extension_name, # type: str + extension_parameters, # type: "_models.VirtualMachineScaleSetVMExtensionUpdate" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineScaleSetVMExtension"] + """The operation to update the VMSS VM extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param extension_parameters: Parameters supplied to the Update Virtual Machine Extension + operation. + :type extension_parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtensionUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineScaleSetVMExtension or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + vm_extension_name=vm_extension_name, + extension_parameters=extension_parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetVMExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + vm_extension_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + vm_extension_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to delete the VMSS VM extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + vm_extension_name=vm_extension_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + vm_extension_name, # type: str + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSetVMExtension" + """The operation to get the VMSS VM extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param vm_extension_name: The name of the virtual machine extension. + :type vm_extension_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetVMExtension, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtension + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'vmExtensionName': self._serialize.url("vm_extension_name", vm_extension_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetVMExtension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}'} # type: ignore + + def list( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSetVMExtensionsListResult" + """The operation to get all extensions of an instance in Virtual Machine Scaleset. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetVMExtensionsListResult, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMExtensionsListResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMExtensionsListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetVMExtensionsListResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_vm_run_commands_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_vm_run_commands_operations.py new file mode 100644 index 000000000000..b95b8b76ccfa --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_vm_run_commands_operations.py @@ -0,0 +1,612 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetVMRunCommandsOperations(object): + """VirtualMachineScaleSetVMRunCommandsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _create_or_update_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + run_command_name, # type: str + run_command, # type: "_models.VirtualMachineRunCommand" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineRunCommand" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(run_command, 'VirtualMachineRunCommand') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + run_command_name, # type: str + run_command, # type: "_models.VirtualMachineRunCommand" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineRunCommand"] + """The operation to create or update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param run_command: Parameters supplied to the Create Virtual Machine RunCommand operation. + :type run_command: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + run_command=run_command, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + run_command_name, # type: str + run_command, # type: "_models.VirtualMachineRunCommandUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineRunCommand" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(run_command, 'VirtualMachineRunCommandUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + run_command_name, # type: str + run_command, # type: "_models.VirtualMachineRunCommandUpdate" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineRunCommand"] + """The operation to update the VMSS VM run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param run_command: Parameters supplied to the Update Virtual Machine RunCommand operation. + :type run_command: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineRunCommand or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + run_command=run_command, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + run_command_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + run_command_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to delete the VMSS VM run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + run_command_name=run_command_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + run_command_name, # type: str + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineRunCommand" + """The operation to get the VMSS VM run command. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param run_command_name: The name of the virtual machine run command. + :type run_command_name: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineRunCommand, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommand + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommand"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'runCommandName': self._serialize.url("run_command_name", run_command_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineRunCommand', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}'} # type: ignore + + def list( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineRunCommandsListResult"] + """The operation to get all run commands of an instance in Virtual Machine Scaleset. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param expand: The expand expression to apply on the operation. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineRunCommandsListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineRunCommandsListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineRunCommandsListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json, text/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineRunCommandsListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_vms_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_vms_operations.py new file mode 100644 index 000000000000..1701b52eb7a5 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_set_vms_operations.py @@ -0,0 +1,1747 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetVMsOperations(object): + """VirtualMachineScaleSetVMsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def _reimage_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + vm_scale_set_vm_reimage_input=None, # type: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._reimage_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_scale_set_vm_reimage_input is not None: + body_content = self._serialize.body(vm_scale_set_vm_reimage_input, 'VirtualMachineScaleSetVMReimageParameters') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reimage_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage'} # type: ignore + + def begin_reimage( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + vm_scale_set_vm_reimage_input=None, # type: Optional["_models.VirtualMachineScaleSetVMReimageParameters"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param vm_scale_set_vm_reimage_input: Parameters for the Reimaging Virtual machine in ScaleSet. + :type vm_scale_set_vm_reimage_input: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMReimageParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._reimage_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + vm_scale_set_vm_reimage_input=vm_scale_set_vm_reimage_input, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reimage.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage'} # type: ignore + + def _reimage_all_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._reimage_all_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reimage_all_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimageall'} # type: ignore + + def begin_reimage_all( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. + This operation is only supported for managed disks. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._reimage_all_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reimage_all.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimageall'} # type: ignore + + def _deallocate_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._deallocate_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _deallocate_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate'} # type: ignore + + def begin_deallocate( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and + releases the compute resources it uses. You are not billed for the compute resources of this + virtual machine once it is deallocated. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._deallocate_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_deallocate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + parameters, # type: "_models.VirtualMachineScaleSetVM" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSetVM" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachineScaleSetVM') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineScaleSetVM', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('VirtualMachineScaleSetVM', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + parameters, # type: "_models.VirtualMachineScaleSetVM" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineScaleSetVM"] + """Updates a virtual machine of a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set where the extension should be create or + updated. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param parameters: Parameters supplied to the Update Virtual Machine Scale Sets VM operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVM + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineScaleSetVM or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVM] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetVM', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + force_deletion=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if force_deletion is not None: + query_parameters['forceDeletion'] = self._serialize.query("force_deletion", force_deletion, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + force_deletion=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes a virtual machine from a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param force_deletion: Optional parameter to force delete a virtual machine from a VM scale + set. (Feature in Preview). + :type force_deletion: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + force_deletion=force_deletion, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + expand=None, # type: Optional[Union[str, "_models.InstanceViewTypes"]] + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSetVM" + """Gets a virtual machine from a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param 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. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetVM, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVM + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVM"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetVM', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}'} # type: ignore + + def get_instance_view( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSetVMInstanceView" + """Gets the status of a virtual machine from a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetVMInstanceView, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceView + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMInstanceView"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get_instance_view.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetVMInstanceView', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_instance_view.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/instanceView'} # type: ignore + + def list( + self, + resource_group_name, # type: str + virtual_machine_scale_set_name, # type: str + filter=None, # type: Optional[str] + select=None, # type: Optional[str] + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineScaleSetVMListResult"] + """Gets a list of all virtual machines in a VM scale sets. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the VM scale set. + :type virtual_machine_scale_set_name: str + :param filter: The filter to apply to the operation. Allowed values are + 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied + eq true', 'properties/latestModelApplied eq false'. + :type filter: str + :param select: The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. + :type select: str + :param expand: The expand expression to apply to the operation. Allowed values are + 'instanceView'. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetVMListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetVMListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if select is not None: + query_parameters['$select'] = self._serialize.query("select", select, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetVMListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines'} # type: ignore + + def _power_off_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + skip_shutdown=False, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._power_off_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if skip_shutdown is not None: + query_parameters['skipShutdown'] = self._serialize.query("skip_shutdown", skip_shutdown, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _power_off_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff'} # type: ignore + + def begin_power_off( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + skip_shutdown=False, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached + and you are getting charged for the resources. Instead, use deallocate to release resources and + avoid charges. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param 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. + :type skip_shutdown: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._power_off_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + skip_shutdown=skip_shutdown, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_power_off.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff'} # type: ignore + + def _restart_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._restart_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart'} # type: ignore + + def begin_restart( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Restarts a virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._restart_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart'} # type: ignore + + def _start_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._start_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start'} # type: ignore + + def begin_start( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Starts a virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._start_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start'} # type: ignore + + def _redeploy_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._redeploy_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _redeploy_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy'} # type: ignore + + def begin_redeploy( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and + powers it back on. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._redeploy_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_redeploy.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy'} # type: ignore + + def retrieve_boot_diagnostics_data( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + sas_uri_expiration_time_in_minutes=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> "_models.RetrieveBootDiagnosticsDataResult" + """The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale + set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param sas_uri_expiration_time_in_minutes: Expiration duration in minutes for the SAS URIs with + a value between 1 to 1440 minutes. :code:`
    `:code:`
    `NOTE: If not specified, SAS URIs + will be generated with a default expiration duration of 120 minutes. + :type sas_uri_expiration_time_in_minutes: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RetrieveBootDiagnosticsDataResult, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RetrieveBootDiagnosticsDataResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RetrieveBootDiagnosticsDataResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.retrieve_boot_diagnostics_data.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if sas_uri_expiration_time_in_minutes is not None: + query_parameters['sasUriExpirationTimeInMinutes'] = self._serialize.query("sas_uri_expiration_time_in_minutes", sas_uri_expiration_time_in_minutes, 'int') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('RetrieveBootDiagnosticsDataResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + retrieve_boot_diagnostics_data.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData'} # type: ignore + + def _perform_maintenance_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._perform_maintenance_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _perform_maintenance_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance'} # type: ignore + + def begin_perform_maintenance( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Performs maintenance on a virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._perform_maintenance_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_perform_maintenance.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance'} # type: ignore + + def simulate_eviction( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """The operation to simulate the eviction of spot virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.simulate_eviction.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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, {}) + + simulate_eviction.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction'} # type: ignore + + def _run_command_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + parameters, # type: "_models.RunCommandInput" + **kwargs # type: Any + ): + # type: (...) -> Optional["_models.RunCommandResult"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._run_command_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RunCommandInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('RunCommandResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _run_command_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand'} # type: ignore + + def begin_run_command( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + instance_id, # type: str + parameters, # type: "_models.RunCommandInput" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.RunCommandResult"] + """Run command on a virtual machine in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param instance_id: The instance ID of the virtual machine. + :type instance_id: str + :param parameters: Parameters supplied to the Run command operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RunCommandInput + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.RunCommandResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RunCommandResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._run_command_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + instance_id=instance_id, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('RunCommandResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'instanceId': self._serialize.url("instance_id", instance_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_run_command.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_sets_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_sets_operations.py new file mode 100644 index 000000000000..816120fc4b22 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_scale_sets_operations.py @@ -0,0 +1,2383 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineScaleSetsOperations(object): + """VirtualMachineScaleSetsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_location( + self, + location, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineScaleSetListResult"] + """Gets all the VM scale sets under the specified subscription for the specified location. + + :param location: The location for which VM scale sets under the subscription are queried. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_location.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_location.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + parameters, # type: "_models.VirtualMachineScaleSet" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSet" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachineScaleSet') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineScaleSet', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachineScaleSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + parameters, # type: "_models.VirtualMachineScaleSet" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineScaleSet"] + """Create or update a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set to create or update. + :type vm_scale_set_name: str + :param parameters: The scale set object. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + parameters, # type: "_models.VirtualMachineScaleSetUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSet" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachineScaleSetUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + parameters, # type: "_models.VirtualMachineScaleSetUpdate" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineScaleSet"] + """Update a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set to create or update. + :type vm_scale_set_name: str + :param parameters: The scale set object. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineScaleSet or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + force_deletion=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if force_deletion is not None: + query_parameters['forceDeletion'] = self._serialize.query("force_deletion", force_deletion, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + force_deletion=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param force_deletion: Optional parameter to force delete a VM scale set. (Feature in Preview). + :type force_deletion: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + force_deletion=force_deletion, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + expand=None, # type: Optional[Union[str, "_models.ExpandTypesForGetVMScaleSets"]] + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSet" + """Display information about a virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param 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. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.ExpandTypesForGetVMScaleSets + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSet, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSet + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSet"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'} # type: ignore + + def _deallocate_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._deallocate_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _deallocate_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate'} # type: ignore + + def begin_deallocate( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and + releases the compute resources. You are not billed for the compute resources that this virtual + machine scale set deallocates. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._deallocate_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_deallocate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate'} # type: ignore + + def _delete_instances_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds, # type: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs" + force_deletion=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._delete_instances_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if force_deletion is not None: + query_parameters['forceDeletion'] = self._serialize.query("force_deletion", force_deletion, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceRequiredIDs') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _delete_instances_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete'} # type: ignore + + def begin_delete_instances( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds, # type: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs" + force_deletion=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes virtual machines in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs + :param force_deletion: Optional parameter to force delete virtual machines from the VM scale + set. (Feature in Preview). + :type force_deletion: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_instances_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + force_deletion=force_deletion, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete_instances.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete'} # type: ignore + + def get_instance_view( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineScaleSetInstanceView" + """Gets the status of a VM scale set instance. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineScaleSetInstanceView, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetInstanceView + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetInstanceView"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get_instance_view.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineScaleSetInstanceView', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_instance_view.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView'} # type: ignore + + def list( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineScaleSetListResult"] + """Gets a list of all VM scale sets under a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets'} # type: ignore + + def list_all( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineScaleSetListWithLinkResult"] + """Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource + group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this + till nextLink is null to fetch all the VM Scale Sets. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetListWithLinkResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetListWithLinkResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetListWithLinkResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetListWithLinkResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets'} # type: ignore + + def list_skus( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineScaleSetListSkusResult"] + """Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM + instances allowed for each SKU. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetListSkusResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetListSkusResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetListSkusResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_skus.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetListSkusResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_skus.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus'} # type: ignore + + def get_os_upgrade_history( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineScaleSetListOSUpgradeHistory"] + """Gets list of OS upgrades on a VM scale set instance. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineScaleSetListOSUpgradeHistory or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetListOSUpgradeHistory] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineScaleSetListOSUpgradeHistory"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.get_os_upgrade_history.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineScaleSetListOSUpgradeHistory', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + get_os_upgrade_history.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory'} # type: ignore + + def _power_off_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + skip_shutdown=False, # type: Optional[bool] + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._power_off_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if skip_shutdown is not None: + query_parameters['skipShutdown'] = self._serialize.query("skip_shutdown", skip_shutdown, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _power_off_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff'} # type: ignore + + def begin_power_off( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + skip_shutdown=False, # type: Optional[bool] + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still + attached and you are getting charged for the resources. Instead, use deallocate to release + resources and avoid charges. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param 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. + :type skip_shutdown: bool + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._power_off_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + skip_shutdown=skip_shutdown, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_power_off.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff'} # type: ignore + + def _restart_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._restart_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart'} # type: ignore + + def begin_restart( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Restarts one or more virtual machines in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._restart_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart'} # type: ignore + + def _start_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._start_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start'} # type: ignore + + def begin_start( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Starts one or more virtual machines in a VM scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._start_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start'} # type: ignore + + def _redeploy_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._redeploy_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _redeploy_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy'} # type: ignore + + def begin_redeploy( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, + and powers them back on. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._redeploy_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_redeploy.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy'} # type: ignore + + def _perform_maintenance_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._perform_maintenance_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _perform_maintenance_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance'} # type: ignore + + def begin_perform_maintenance( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances + which are not eligible for perform maintenance will be failed. Please refer to best practices + for more details: + https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._perform_maintenance_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_perform_maintenance.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance'} # type: ignore + + def _update_instances_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds, # type: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs" + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._update_instances_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceRequiredIDs') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _update_instances_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade'} # type: ignore + + def begin_update_instances( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds, # type: "_models.VirtualMachineScaleSetVMInstanceRequiredIDs" + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceRequiredIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_instances_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update_instances.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade'} # type: ignore + + def _reimage_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_scale_set_reimage_input=None, # type: Optional["_models.VirtualMachineScaleSetReimageParameters"] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._reimage_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_scale_set_reimage_input is not None: + body_content = self._serialize.body(vm_scale_set_reimage_input, 'VirtualMachineScaleSetReimageParameters') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reimage_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage'} # type: ignore + + def begin_reimage( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_scale_set_reimage_input=None, # type: Optional["_models.VirtualMachineScaleSetReimageParameters"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which + don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual + machine is reset to initial state. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_scale_set_reimage_input: Parameters for Reimaging VM ScaleSet. + :type vm_scale_set_reimage_input: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetReimageParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._reimage_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_scale_set_reimage_input=vm_scale_set_reimage_input, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reimage.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage'} # type: ignore + + def _reimage_all_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._reimage_all_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if vm_instance_i_ds is not None: + body_content = self._serialize.body(vm_instance_i_ds, 'VirtualMachineScaleSetVMInstanceIDs') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reimage_all_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall'} # type: ignore + + def begin_reimage_all( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + vm_instance_i_ds=None, # type: Optional["_models.VirtualMachineScaleSetVMInstanceIDs"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This + operation is only supported for managed disks. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param vm_instance_i_ds: A list of virtual machine instance IDs from the VM scale set. + :type vm_instance_i_ds: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineScaleSetVMInstanceIDs + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._reimage_all_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + vm_instance_i_ds=vm_instance_i_ds, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reimage_all.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall'} # type: ignore + + def force_recovery_service_fabric_platform_update_domain_walk( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + platform_update_domain, # type: int + **kwargs # type: Any + ): + # type: (...) -> "_models.RecoveryWalkResponse" + """Manual platform update domain walk to update virtual machines in a service fabric virtual + machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the VM scale set. + :type vm_scale_set_name: str + :param platform_update_domain: The platform update domain for which a manual recovery walk is + requested. + :type platform_update_domain: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RecoveryWalkResponse, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RecoveryWalkResponse + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RecoveryWalkResponse"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.force_recovery_service_fabric_platform_update_domain_walk.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + query_parameters['platformUpdateDomain'] = self._serialize.query("platform_update_domain", platform_update_domain, 'int') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('RecoveryWalkResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + force_recovery_service_fabric_platform_update_domain_walk.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk'} # type: ignore + + def convert_to_single_placement_group( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + parameters, # type: "_models.VMScaleSetConvertToSinglePlacementGroupInput" + **kwargs # type: Any + ): + # type: (...) -> None + """Converts SinglePlacementGroup property to false for a existing virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the virtual machine scale set to create or update. + :type vm_scale_set_name: str + :param parameters: The input object for ConvertToSinglePlacementGroup API. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VMScaleSetConvertToSinglePlacementGroupInput + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self.convert_to_single_placement_group.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VMScaleSetConvertToSinglePlacementGroupInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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) + + if cls: + return cls(pipeline_response, None, {}) + + convert_to_single_placement_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup'} # type: ignore + + def _set_orchestration_service_state_initial( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + parameters, # type: "_models.OrchestrationServiceStateInput" + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._set_orchestration_service_state_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'OrchestrationServiceStateInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _set_orchestration_service_state_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState'} # type: ignore + + def begin_set_orchestration_service_state( + self, + resource_group_name, # type: str + vm_scale_set_name, # type: str + parameters, # type: "_models.OrchestrationServiceStateInput" + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Changes ServiceState property for a given service. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_scale_set_name: The name of the virtual machine scale set to create or update. + :type vm_scale_set_name: str + :param parameters: The input object for SetOrchestrationServiceState API. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceStateInput + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._set_orchestration_service_state_initial( + resource_group_name=resource_group_name, + vm_scale_set_name=vm_scale_set_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmScaleSetName': self._serialize.url("vm_scale_set_name", vm_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_set_orchestration_service_state.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_sizes_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_sizes_operations.py new file mode 100644 index 000000000000..de26658fcaf7 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machine_sizes_operations.py @@ -0,0 +1,118 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachineSizesOperations(object): + """VirtualMachineSizesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + location, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineSizeListResult"] + """This API is deprecated. Use `Resources Skus + `_. + + :param location: The location upon which virtual-machine-sizes is queried. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineSizeListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineSizeListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineSizeListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + 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) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machines_operations.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machines_operations.py new file mode 100644 index 000000000000..ee1c1d93cd7a --- /dev/null +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/operations/_virtual_machines_operations.py @@ -0,0 +1,2521 @@ +# 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 typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachinesOperations(object): + """VirtualMachinesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.compute.v2021_03_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_location( + self, + location, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineListResult"] + """Gets all the virtual machines under the specified subscription for the specified location. + + :param location: The location for which virtual machines under the subscription are queried. + :type location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_location.metadata['url'] # type: ignore + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_by_location.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines'} # type: ignore + + def _capture_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + parameters, # type: "_models.VirtualMachineCaptureParameters" + **kwargs # type: Any + ): + # type: (...) -> Optional["_models.VirtualMachineCaptureResult"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineCaptureResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._capture_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachineCaptureParameters') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineCaptureResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _capture_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture'} # type: ignore + + def begin_capture( + self, + resource_group_name, # type: str + vm_name, # type: str + parameters, # type: "_models.VirtualMachineCaptureParameters" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineCaptureResult"] + """Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used + to create similar VMs. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param parameters: Parameters supplied to the Capture Virtual Machine operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineCaptureParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineCaptureResult or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineCaptureResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineCaptureResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._capture_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineCaptureResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_capture.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + parameters, # type: "_models.VirtualMachine" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachine" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachine') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachine', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + vm_name, # type: str + parameters, # type: "_models.VirtualMachine" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachine"] + """The operation to create or update a virtual machine. Please note some properties can be set + only during virtual machine creation. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param parameters: Parameters supplied to the Create Virtual Machine operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachine + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachine] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + parameters, # type: "_models.VirtualMachineUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachine" + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'VirtualMachineUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + vm_name, # type: str + parameters, # type: "_models.VirtualMachineUpdate" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachine"] + """The operation to update a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param parameters: Parameters supplied to the Update Virtual Machine operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineUpdate + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachine or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachine] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + force_deletion=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if force_deletion is not None: + query_parameters['forceDeletion'] = self._serialize.query("force_deletion", force_deletion, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 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, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + vm_name, # type: str + force_deletion=None, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to delete a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param force_deletion: Optional parameter to force delete virtual machines.(Feature in + Preview). + :type force_deletion: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + force_deletion=force_deletion, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + vm_name, # type: str + expand=None, # type: Optional[Union[str, "_models.InstanceViewTypes"]] + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachine" + """Retrieves information about the model view or the instance view of a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param expand: The expand expression to apply on the operation. 'InstanceView' retrieves a + 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. + :type expand: str or ~azure.mgmt.compute.v2021_03_01.models.InstanceViewTypes + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachine, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachine + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}'} # type: ignore + + def instance_view( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachineInstanceView" + """Retrieves information about the run-time state of a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachineInstanceView, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineInstanceView + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineInstanceView"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.instance_view.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('VirtualMachineInstanceView', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + instance_view.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView'} # type: ignore + + def _convert_to_managed_disks_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._convert_to_managed_disks_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _convert_to_managed_disks_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks'} # type: ignore + + def begin_convert_to_managed_disks( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Converts virtual machine disks from blob-based to managed disks. Virtual machine must be + stop-deallocated before invoking this operation. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._convert_to_managed_disks_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_convert_to_managed_disks.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks'} # type: ignore + + def _deallocate_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._deallocate_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _deallocate_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate'} # type: ignore + + def begin_deallocate( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Shuts down the virtual machine and releases the compute resources. You are not billed for the + compute resources that this virtual machine uses. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._deallocate_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_deallocate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate'} # type: ignore + + def generalize( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the + virtual machine before performing this operation. :code:`
    `For Windows, please refer to + `Create a managed image of a generalized VM in Azure + `_.:code:`
    `For + Linux, please refer to `How to create an image of a virtual machine or VHD + `_. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.generalize.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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) + + if cls: + return cls(pipeline_response, None, {}) + + generalize.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize'} # type: ignore + + def list( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineListResult"] + """Lists all of the virtual machines in the specified resource group. Use the nextLink property in + the response to get the next page of virtual machines. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines'} # type: ignore + + def list_all( + self, + status_only=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineListResult"] + """Lists all of the virtual machines in the specified subscription. Use the nextLink property in + the response to get the next page of virtual machines. + + :param status_only: statusOnly=true enables fetching run time status of all Virtual Machines in + the subscription. + :type status_only: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if status_only is not None: + query_parameters['statusOnly'] = self._serialize.query("status_only", status_only, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachineListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines'} # type: ignore + + def list_available_sizes( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachineSizeListResult"] + """Lists all available virtual machine sizes to which the specified virtual machine can be + resized. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachineSizeListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineSizeListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineSizeListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_available_sizes.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + 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) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **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 + ) + list_available_sizes.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes'} # type: ignore + + def _power_off_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + skip_shutdown=False, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._power_off_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if skip_shutdown is not None: + query_parameters['skipShutdown'] = self._serialize.query("skip_shutdown", skip_shutdown, 'bool') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _power_off_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff'} # type: ignore + + def begin_power_off( + self, + resource_group_name, # type: str + vm_name, # type: str + skip_shutdown=False, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to power off (stop) a virtual machine. The virtual machine can be restarted with + the same provisioned resources. You are still charged for this virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param 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. + :type skip_shutdown: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._power_off_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + skip_shutdown=skip_shutdown, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_power_off.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff'} # type: ignore + + def _reapply_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self._reapply_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reapply_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply'} # type: ignore + + def begin_reapply( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to reapply a virtual machine's state. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._reapply_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reapply.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply'} # type: ignore + + def _restart_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._restart_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart'} # type: ignore + + def begin_restart( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to restart a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._restart_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart'} # type: ignore + + def _start_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._start_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start'} # type: ignore + + def begin_start( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to start a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._start_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start'} # type: ignore + + def _redeploy_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._redeploy_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _redeploy_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy'} # type: ignore + + def begin_redeploy( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Shuts down the virtual machine, moves it to a new node, and powers it back on. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._redeploy_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_redeploy.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy'} # type: ignore + + def _reimage_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + parameters=None, # type: Optional["_models.VirtualMachineReimageParameters"] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + + # Construct URL + url = self._reimage_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if parameters is not None: + body_content = self._serialize.body(parameters, 'VirtualMachineReimageParameters') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _reimage_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage'} # type: ignore + + def begin_reimage( + self, + resource_group_name, # type: str + vm_name, # type: str + parameters=None, # type: Optional["_models.VirtualMachineReimageParameters"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Reimages the virtual machine which has an ephemeral OS disk back to its initial state. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param parameters: Parameters supplied to the Reimage Virtual Machine operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineReimageParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._reimage_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_reimage.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage'} # type: ignore + + def retrieve_boot_diagnostics_data( + self, + resource_group_name, # type: str + vm_name, # type: str + sas_uri_expiration_time_in_minutes=None, # type: Optional[int] + **kwargs # type: Any + ): + # type: (...) -> "_models.RetrieveBootDiagnosticsDataResult" + """The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param sas_uri_expiration_time_in_minutes: Expiration duration in minutes for the SAS URIs with + a value between 1 to 1440 minutes. :code:`
    `:code:`
    `NOTE: If not specified, SAS URIs + will be generated with a default expiration duration of 120 minutes. + :type sas_uri_expiration_time_in_minutes: int + :keyword callable cls: A custom type or function that will be passed the direct response + :return: RetrieveBootDiagnosticsDataResult, or the result of cls(response) + :rtype: ~azure.mgmt.compute.v2021_03_01.models.RetrieveBootDiagnosticsDataResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.RetrieveBootDiagnosticsDataResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self.retrieve_boot_diagnostics_data.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if sas_uri_expiration_time_in_minutes is not None: + query_parameters['sasUriExpirationTimeInMinutes'] = self._serialize.query("sas_uri_expiration_time_in_minutes", sas_uri_expiration_time_in_minutes, 'int') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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('RetrieveBootDiagnosticsDataResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + retrieve_boot_diagnostics_data.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData'} # type: ignore + + def _perform_maintenance_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self._perform_maintenance_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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, {}) + + _perform_maintenance_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance'} # type: ignore + + def begin_perform_maintenance( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """The operation to perform maintenance on a virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :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: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._perform_maintenance_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_perform_maintenance.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance'} # type: ignore + + def simulate_eviction( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """The operation to simulate the eviction of spot virtual machine. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + + # Construct URL + url = self.simulate_eviction.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **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, {}) + + simulate_eviction.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction'} # type: ignore + + def _assess_patches_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Optional["_models.VirtualMachineAssessPatchesResult"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineAssessPatchesResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + accept = "application/json" + + # Construct URL + url = self._assess_patches_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineAssessPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _assess_patches_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches'} # type: ignore + + def begin_assess_patches( + self, + resource_group_name, # type: str + vm_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineAssessPatchesResult"] + """Assess patches on the VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineAssessPatchesResult or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineAssessPatchesResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineAssessPatchesResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._assess_patches_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineAssessPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_assess_patches.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches'} # type: ignore + + def _install_patches_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + install_patches_input, # type: "_models.VirtualMachineInstallPatchesParameters" + **kwargs # type: Any + ): + # type: (...) -> Optional["_models.VirtualMachineInstallPatchesResult"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualMachineInstallPatchesResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._install_patches_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(install_patches_input, 'VirtualMachineInstallPatchesParameters') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('VirtualMachineInstallPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _install_patches_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches'} # type: ignore + + def begin_install_patches( + self, + resource_group_name, # type: str + vm_name, # type: str + install_patches_input, # type: "_models.VirtualMachineInstallPatchesParameters" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.VirtualMachineInstallPatchesResult"] + """Installs patches on the VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param install_patches_input: Input for InstallPatches as directly received by the API. + :type install_patches_input: ~azure.mgmt.compute.v2021_03_01.models.VirtualMachineInstallPatchesParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either VirtualMachineInstallPatchesResult or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.VirtualMachineInstallPatchesResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachineInstallPatchesResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._install_patches_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + install_patches_input=install_patches_input, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('VirtualMachineInstallPatchesResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_install_patches.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches'} # type: ignore + + def _run_command_initial( + self, + resource_group_name, # type: str + vm_name, # type: str + parameters, # type: "_models.RunCommandInput" + **kwargs # type: Any + ): + # type: (...) -> Optional["_models.RunCommandResult"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.RunCommandResult"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._run_command_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(parameters, 'RunCommandInput') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('RunCommandResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _run_command_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand'} # type: ignore + + def begin_run_command( + self, + resource_group_name, # type: str + vm_name, # type: str + parameters, # type: "_models.RunCommandInput" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.RunCommandResult"] + """Run command on the VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param vm_name: The name of the virtual machine. + :type vm_name: str + :param parameters: Parameters supplied to the Run command operation. + :type parameters: ~azure.mgmt.compute.v2021_03_01.models.RunCommandInput + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either RunCommandResult or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.compute.v2021_03_01.models.RunCommandResult] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RunCommandResult"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._run_command_initial( + resource_group_name=resource_group_name, + vm_name=vm_name, + parameters=parameters, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('RunCommandResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vmName': self._serialize.url("vm_name", vm_name, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_run_command.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand'} # type: ignore diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_availability_sets.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_availability_sets.yaml index 5658fb35df5e..4109d52604b3 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_availability_sets.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_availability_sets.yaml @@ -14,10 +14,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse7f013f3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse7f013f3?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"availabilitysetse7f013f3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse7f013f3\",\r\n @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:10:39 GMT + - Tue, 25 May 2021 10:00:03 GMT expires: - '-1' pragma: @@ -65,10 +65,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse7f013f3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse7f013f3?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"availabilitysetse7f013f3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse7f013f3\",\r\n @@ -84,7 +84,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:10:39 GMT + - Tue, 25 May 2021 10:00:03 GMT expires: - '-1' pragma: @@ -101,7 +101,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3999,Microsoft.Compute/LowCostGet30Min;31999 + - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31947 status: code: 200 message: OK @@ -120,10 +120,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse7f013f3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse7f013f3?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"availabilitysetse7f013f3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse7f013f3\",\r\n @@ -138,7 +138,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:10:39 GMT + - Tue, 25 May 2021 10:00:04 GMT expires: - '-1' pragma: @@ -173,10 +173,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse7f013f3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/availabilitySets/availabilitysetse7f013f3?api-version=2021-03-01 response: body: string: '' @@ -186,7 +186,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 03:10:40 GMT + - Tue, 25 May 2021 10:00:07 GMT expires: - '-1' pragma: diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_log_analytics.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_log_analytics.yaml index fd050cc356d7..57264e1531fa 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_log_analytics.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_log_analytics.yaml @@ -16,9 +16,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-storage/17.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-storage/18.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Storage/storageAccounts/accountxyz9b271243?api-version=2021-02-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Storage/storageAccounts/accountxyz9b271243?api-version=2021-04-01 response: body: string: '' @@ -30,11 +31,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Thu, 06 May 2021 07:03:13 GMT + - Tue, 25 May 2021 10:00:14 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/f19530f8-94a6-407e-bd2a-d3bc16845b20?monitor=true&api-version=2021-02-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/bf66b57f-459e-46ef-ac67-503cb05d48c4?monitor=true&api-version=2021-04-01 pragma: - no-cache server: @@ -58,9 +59,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-storage/17.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-storage/18.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/f19530f8-94a6-407e-bd2a-d3bc16845b20?monitor=true&api-version=2021-02-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/bf66b57f-459e-46ef-ac67-503cb05d48c4?monitor=true&api-version=2021-04-01 response: body: string: '' @@ -72,11 +74,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Thu, 06 May 2021 07:03:30 GMT + - Tue, 25 May 2021 10:00:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/f19530f8-94a6-407e-bd2a-d3bc16845b20?monitor=true&api-version=2021-02-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/bf66b57f-459e-46ef-ac67-503cb05d48c4?monitor=true&api-version=2021-04-01 pragma: - no-cache server: @@ -98,12 +100,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-storage/17.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-storage/18.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/f19530f8-94a6-407e-bd2a-d3bc16845b20?monitor=true&api-version=2021-02-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/bf66b57f-459e-46ef-ac67-503cb05d48c4?monitor=true&api-version=2021-04-01 response: body: - string: '{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Storage/storageAccounts/accountxyz9b271243","name":"accountxyz9b271243","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{"key1":"value1","key2":"value2"},"properties":{"keyCreationTime":{"key1":"2021-05-06T07:03:10.7682027Z","key2":"2021-05-06T07:03:10.7682027Z"},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-06T07:03:10.7682027Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-06T07:03:10.7682027Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2021-05-06T07:03:10.6588297Z","primaryEndpoints":{"dfs":"https://accountxyz9b271243.dfs.core.windows.net/","web":"https://accountxyz9b271243.z13.web.core.windows.net/","blob":"https://accountxyz9b271243.blob.core.windows.net/","queue":"https://accountxyz9b271243.queue.core.windows.net/","table":"https://accountxyz9b271243.table.core.windows.net/","file":"https://accountxyz9b271243.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available"}}' + string: '{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Storage/storageAccounts/accountxyz9b271243","name":"accountxyz9b271243","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{"key1":"value1","key2":"value2"},"properties":{"keyCreationTime":{"key1":"2021-05-25T10:00:11.9974457Z","key2":"2021-05-25T10:00:11.9974457Z"},"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-25T10:00:11.9974457Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2021-05-25T10:00:11.9974457Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2021-05-25T10:00:11.9037314Z","primaryEndpoints":{"dfs":"https://accountxyz9b271243.dfs.core.windows.net/","web":"https://accountxyz9b271243.z13.web.core.windows.net/","blob":"https://accountxyz9b271243.blob.core.windows.net/","queue":"https://accountxyz9b271243.queue.core.windows.net/","table":"https://accountxyz9b271243.table.core.windows.net/","file":"https://accountxyz9b271243.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available"}}' headers: cache-control: - no-cache @@ -112,7 +115,7 @@ interactions: content-type: - application/json date: - - Thu, 06 May 2021 07:03:34 GMT + - Tue, 25 May 2021 10:00:34 GMT expires: - '-1' pragma: @@ -142,12 +145,13 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-storage/17.1.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-storage/18.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Storage/storageAccounts/accountxyz9b271243/listKeys?api-version=2021-02-01&$expand=kerb + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Storage/storageAccounts/accountxyz9b271243/listKeys?api-version=2021-04-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2021-05-06T07:03:10.7682027Z","keyName":"key1","value":"FakeValue","permissions":"FULL"},{"creationTime":"2021-05-06T07:03:10.7682027Z","keyName":"key2","value":"FakeValue","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2021-05-25T10:00:11.9974457Z","keyName":"key1","value":"FakeValue","permissions":"FULL"},{"creationTime":"2021-05-25T10:00:11.9974457Z","keyName":"key2","value":"FakeValue","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -156,7 +160,7 @@ interactions: content-type: - application/json date: - - Thu, 06 May 2021 07:03:34 GMT + - Tue, 25 May 2021 10:00:35 GMT expires: - '-1' pragma: @@ -177,8 +181,8 @@ interactions: code: 200 message: OK - request: - body: '{"blobContainerSasUri": "fakeuri", "fromTime": "2021-05-04T07:03:34.056339Z", - "toTime": "2021-05-06T07:03:34.056347Z", "groupByResourceName": true, "intervalLength": + body: '{"blobContainerSasUri": "fakeuri", "fromTime": "2021-05-23T10:00:35.863146Z", + "toTime": "2021-05-25T10:00:35.863155Z", "groupByResourceName": true, "intervalLength": "SixtyMins"}' headers: Accept: @@ -192,25 +196,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/logAnalytics/apiAccess/getRequestRateByInterval?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/logAnalytics/apiAccess/getRequestRateByInterval?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b53a29c2-3e1e-463a-896c-1f04d8cdd515?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/071ded01-c58b-4abd-a1f0-8ab5646de899?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:03:37 GMT + - Tue, 25 May 2021 10:00:36 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b53a29c2-3e1e-463a-896c-1f04d8cdd515?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/071ded01-c58b-4abd-a1f0-8ab5646de899?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -221,7 +226,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetLogAnalytics3Min;9,Microsoft.Compute/GetLogAnalytics30Min;47 + - Microsoft.Compute/GetLogAnalytics3Min;9,Microsoft.Compute/GetLogAnalytics30Min;49 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -237,17 +242,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b53a29c2-3e1e-463a-896c-1f04d8cdd515?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/071ded01-c58b-4abd-a1f0-8ab5646de899?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:03:37.8868776+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:03:38.4962318+00:00\",\r\n \"status\": \"Failed\"\ - ,\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"\ - Could not write log analytics to the given SAS URI due to The remote server\ - \ returned an error: (403) Forbidden..\"\r\n },\r\n \"name\": \"b53a29c2-3e1e-463a-896c-1f04d8cdd515\"\ - \r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:00:36.8034948+00:00\",\r\n \"endTime\": + \"2021-05-25T10:00:38.3191025+00:00\",\r\n \"status\": \"Failed\",\r\n \"error\": + {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Could not write log + analytics to the given SAS URI due to The remote server returned an error: + (403) Forbidden..\"\r\n },\r\n \"name\": \"071ded01-c58b-4abd-a1f0-8ab5646de899\"\r\n}" headers: cache-control: - no-cache @@ -256,7 +261,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:04:07 GMT + - Tue, 25 May 2021 10:01:06 GMT expires: - '-1' pragma: @@ -273,13 +278,13 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29994 + - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29998 status: code: 200 message: OK - request: - body: '{"blobContainerSasUri": "fakeuri", "fromTime": "2021-05-04T07:04:07.456456Z", - "toTime": "2021-05-06T07:04:07.456473Z", "groupByOperationName": true, "groupByResourceName": + body: '{"blobContainerSasUri": "fakeuri", "fromTime": "2021-05-23T10:01:07.407129Z", + "toTime": "2021-05-25T10:01:07.407138Z", "groupByOperationName": true, "groupByResourceName": false}' headers: Accept: @@ -293,25 +298,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/logAnalytics/apiAccess/getThrottledRequests?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/logAnalytics/apiAccess/getThrottledRequests?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f1f55e8b-4eef-4d95-8d9d-d20e0ff4cf91?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/1abddf2a-34b2-412c-9eeb-b469e4789467?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:04:08 GMT + - Tue, 25 May 2021 10:01:06 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f1f55e8b-4eef-4d95-8d9d-d20e0ff4cf91?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/1abddf2a-34b2-412c-9eeb-b469e4789467?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -322,7 +328,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetLogAnalytics3Min;8,Microsoft.Compute/GetLogAnalytics30Min;46 + - Microsoft.Compute/GetLogAnalytics3Min;8,Microsoft.Compute/GetLogAnalytics30Min;48 x-ms-ratelimit-remaining-subscription-writes: - '1198' status: @@ -338,17 +344,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f1f55e8b-4eef-4d95-8d9d-d20e0ff4cf91?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/1abddf2a-34b2-412c-9eeb-b469e4789467?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:04:08.9494397+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:04:09.2618843+00:00\",\r\n \"status\": \"Failed\"\ - ,\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"\ - Could not write log analytics to the given SAS URI due to The remote server\ - \ returned an error: (403) Forbidden..\"\r\n },\r\n \"name\": \"f1f55e8b-4eef-4d95-8d9d-d20e0ff4cf91\"\ - \r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:01:07.4753982+00:00\",\r\n \"endTime\": + \"2021-05-25T10:01:07.8503786+00:00\",\r\n \"status\": \"Failed\",\r\n \"error\": + {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Could not write log + analytics to the given SAS URI due to The remote server returned an error: + (403) Forbidden..\"\r\n },\r\n \"name\": \"1abddf2a-34b2-412c-9eeb-b469e4789467\"\r\n}" headers: cache-control: - no-cache @@ -357,7 +363,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:04:39 GMT + - Tue, 25 May 2021 10:01:37 GMT expires: - '-1' pragma: @@ -374,7 +380,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29992 + - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29996 status: code: 200 message: OK diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_proximity_placement_groups.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_proximity_placement_groups.yaml index 7f97e72fd5c6..1f7c3bd92848 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_proximity_placement_groups.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute.test_compute_proximity_placement_groups.yaml @@ -13,10 +13,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroupsb24517e6?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroupsb24517e6?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"proximiityplacementgroupsb24517e6\",\r\n \"id\": @@ -32,7 +32,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:02 GMT + - Tue, 25 May 2021 10:01:41 GMT expires: - '-1' pragma: @@ -61,10 +61,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroupsb24517e6?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroupsb24517e6?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"proximiityplacementgroupsb24517e6\",\r\n \"id\": @@ -81,7 +81,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:02 GMT + - Tue, 25 May 2021 10:01:42 GMT expires: - '-1' pragma: @@ -116,10 +116,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroupsb24517e6?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroupsb24517e6?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"proximiityplacementgroupsb24517e6\",\r\n \"id\": @@ -135,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:02 GMT + - Tue, 25 May 2021 10:01:42 GMT expires: - '-1' pragma: @@ -170,10 +170,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroupsb24517e6?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/proximityPlacementGroups/proximiityplacementgroupsb24517e6?api-version=2021-03-01 response: body: string: '' @@ -183,7 +183,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 03:12:02 GMT + - Tue, 25 May 2021 10:01:43 GMT expires: - '-1' pragma: diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_base_async.test_compute_vm.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_base_async.test_compute_vm.yaml index 9c88c9372445..a1154203b80f 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_base_async.test_compute_vm.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_base_async.test_compute_vm.yaml @@ -14,17 +14,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamexxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234\",\r\n - \ \"etag\": \"W/\\\"bff24fcc-d011-4a20-9e5d-9c819f72434c\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"b681ca07-df75-4eb7-98e7-b4e78c72c799\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"c147348e-d664-4477-884a-b51c39cdd7a5\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"d936ce6e-2c6e-4458-96a3-68b6b578e003\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -32,7 +32,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6b694f2f-0a63-4ff2-95e7-1b2443ef6de2?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e4e03e6b-d88d-4a5e-b6bf-8fff19c62b7c?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -40,7 +40,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:04 GMT + - Tue, 25 May 2021 10:01:48 GMT expires: - '-1' pragma: @@ -53,7 +53,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f705020b-789a-4b28-93ed-7639b2b00b05 + - 52059200-3db6-4ed8-9863-a94b47841fba x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -69,10 +69,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6b694f2f-0a63-4ff2-95e7-1b2443ef6de2?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e4e03e6b-d88d-4a5e-b6bf-8fff19c62b7c?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -84,7 +84,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:07 GMT + - Tue, 25 May 2021 10:01:52 GMT expires: - '-1' pragma: @@ -101,7 +101,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f9820a28-67d1-45ae-bbae-cf31816846c0 + - d93961fe-1444-4041-bc07-50202a7038de status: code: 200 message: OK @@ -115,17 +115,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamexxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234\",\r\n - \ \"etag\": \"W/\\\"9c07a606-ee86-441f-8d3d-5e8bc06c8b0e\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"32bcedda-0c41-4011-999f-11bfda21a66c\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"c147348e-d664-4477-884a-b51c39cdd7a5\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"d936ce6e-2c6e-4458-96a3-68b6b578e003\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -137,9 +137,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:07 GMT + - Tue, 25 May 2021 10:01:52 GMT etag: - - W/"9c07a606-ee86-441f-8d3d-5e8bc06c8b0e" + - W/"32bcedda-0c41-4011-999f-11bfda21a66c" expires: - '-1' pragma: @@ -156,7 +156,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 82af69be-a3b1-464f-95fd-fb8242e9c54c + - 1cd1b429-715b-476d-a71f-4f858433738b status: code: 200 message: OK @@ -174,21 +174,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234/subnets/subnetxxx9a731234?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234/subnets/subnetxxx9a731234?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetxxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234/subnets/subnetxxx9a731234\",\r\n - \ \"etag\": \"W/\\\"a1f458e8-7b94-4fb2-8a8f-b06fae55b44a\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"4accc0af-c7af-4693-a286-4546f536a288\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d65a0290-49f1-4e10-aafa-87508ff0f994?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2fde7882-d0d5-4d43-9129-52745645bf9f?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -196,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:08 GMT + - Tue, 25 May 2021 10:01:52 GMT expires: - '-1' pragma: @@ -209,7 +209,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c40cf8df-c5a8-4e13-98f0-5a89233b22e0 + - 68ae4a7a-b5ac-4d18-9ab5-e7c31a6ab2e2 x-ms-ratelimit-remaining-subscription-writes: - '1198' status: @@ -225,10 +225,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d65a0290-49f1-4e10-aafa-87508ff0f994?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2fde7882-d0d5-4d43-9129-52745645bf9f?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -240,7 +240,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:11 GMT + - Tue, 25 May 2021 10:01:55 GMT expires: - '-1' pragma: @@ -257,7 +257,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - bd21b7c8-d502-47aa-9333-9e56f0a22cbb + - ea0916a7-f207-43e6-9e33-04791b65c35f status: code: 200 message: OK @@ -271,14 +271,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234/subnets/subnetxxx9a731234?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234/subnets/subnetxxx9a731234?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetxxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexxx9a731234/subnets/subnetxxx9a731234\",\r\n - \ \"etag\": \"W/\\\"86701233-e751-46d0-badf-6d8ce546ee5b\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"d43280b2-8aae-4e20-9ce9-2ceb76bd1e56\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -291,9 +291,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:11 GMT + - Tue, 25 May 2021 10:01:55 GMT etag: - - W/"86701233-e751-46d0-badf-6d8ce546ee5b" + - W/"d43280b2-8aae-4e20-9ce9-2ceb76bd1e56" expires: - '-1' pragma: @@ -310,7 +310,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - ce614d6d-971a-4e8b-a1a8-aab25b12e46e + - 1145d7f8-f94a-4968-a3f1-5b511bea5d33 status: code: 200 message: OK @@ -329,18 +329,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"interfacexxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234\",\r\n - \ \"etag\": \"W/\\\"e66055d7-151a-4314-a741-ffb817d6076f\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"bab5de01-69d6-4fb6-8d32-62f5b3d3d8aa\\\"\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"2837c593-d3ae-498e-840e-7adcf19e9205\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"aa31f12a-d725-477d-9976-53c3d4bc1f3d\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234/ipConfigurations/MyIpConfig\",\r\n - \ \"etag\": \"W/\\\"e66055d7-151a-4314-a741-ffb817d6076f\\\"\",\r\n + \ \"etag\": \"W/\\\"bab5de01-69d6-4fb6-8d32-62f5b3d3d8aa\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -348,7 +348,7 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"ry0epqle0z1ujcckwuodttoxuf.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": + \"n1hdnwlofrmejfvdnc1lk4haad.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"hostedWorkloads\": [],\r\n \ \"tapConfigurations\": [],\r\n \"nicType\": \"Standard\"\r\n },\r\n \ \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" @@ -356,7 +356,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5228629b-46b5-46c1-8900-81d32e605dc2?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0301f685-95ed-46a7-8c1f-77da85087520?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -364,7 +364,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:11 GMT + - Tue, 25 May 2021 10:01:57 GMT expires: - '-1' pragma: @@ -377,7 +377,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 33d6ccfb-2904-4a9e-acc4-2b4a04f67d6d + - 7a5308a6-b031-4ba6-b754-7a3830aefb33 x-ms-ratelimit-remaining-subscription-writes: - '1197' status: @@ -393,10 +393,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5228629b-46b5-46c1-8900-81d32e605dc2?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0301f685-95ed-46a7-8c1f-77da85087520?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -408,7 +408,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:41 GMT + - Tue, 25 May 2021 10:02:28 GMT expires: - '-1' pragma: @@ -425,7 +425,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3f00d923-02ea-42ec-95b7-c9bf388cab03 + - 273aeef6-37e5-47af-9bbc-19f95a2e225c status: code: 200 message: OK @@ -439,18 +439,18 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"interfacexxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234\",\r\n - \ \"etag\": \"W/\\\"e66055d7-151a-4314-a741-ffb817d6076f\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"bab5de01-69d6-4fb6-8d32-62f5b3d3d8aa\\\"\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"2837c593-d3ae-498e-840e-7adcf19e9205\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"aa31f12a-d725-477d-9976-53c3d4bc1f3d\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234/ipConfigurations/MyIpConfig\",\r\n - \ \"etag\": \"W/\\\"e66055d7-151a-4314-a741-ffb817d6076f\\\"\",\r\n + \ \"etag\": \"W/\\\"bab5de01-69d6-4fb6-8d32-62f5b3d3d8aa\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -458,7 +458,7 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"ry0epqle0z1ujcckwuodttoxuf.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": + \"n1hdnwlofrmejfvdnc1lk4haad.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"hostedWorkloads\": [],\r\n \ \"tapConfigurations\": [],\r\n \"nicType\": \"Standard\"\r\n },\r\n \ \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" @@ -470,9 +470,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:12:41 GMT + - Tue, 25 May 2021 10:02:28 GMT etag: - - W/"e66055d7-151a-4314-a741-ffb817d6076f" + - W/"bab5de01-69d6-4fb6-8d32-62f5b3d3d8aa" expires: - '-1' pragma: @@ -489,7 +489,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 66b8d7b0-d9a4-4daa-ae9d-ec8108ba0875 + - 4e2efee0-b561-4b12-9036-f34de2c7170e status: code: 200 message: OK @@ -512,46 +512,48 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinexxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"8de6786e-85ad-4cee-9562-c0ea2c8cef7f\",\r\n + \ \"properties\": {\r\n \"vmId\": \"5d26c05b-3e3e-475c-a4d8-8ec8722e7575\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"14393.4402.2105052108\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n - \ \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": [\r\n {\r\n - \ \"lun\": 0,\r\n \"createOption\": \"Empty\",\r\n \"caching\": - \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": - \"Standard_LRS\"\r\n },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n \"createOption\": + \ \"diskSizeGB\": 127,\r\n \"deleteOption\": \"Detach\"\r\n },\r\n + \ \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n - \ \"diskSizeGB\": 1023,\r\n \"toBeDetached\": false\r\n }\r\n - \ ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"myVM\",\r\n - \ \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + \ \"diskSizeGB\": 1023,\r\n \"toBeDetached\": false,\r\n + \ \"deleteOption\": \"Detach\"\r\n },\r\n {\r\n \"lun\": + 1,\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n + \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": + false,\r\n \"deleteOption\": \"Detach\"\r\n }\r\n ]\r\n + \ },\r\n \"osProfile\": {\r\n \"computerName\": \"myVM\",\r\n \"adminUsername\": + \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": + true,\r\n \"enableAutomaticUpdates\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"AutomaticByOS\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234\",\"properties\":{\"primary\":true}}]},\r\n \ \"provisioningState\": \"Creating\"\r\n }\r\n}" headers: azure-asyncnotification: Enabled - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b44afcc4-0d67-47da-bcaf-3aca318221e3?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d3c7bba-574f-49fb-93df-419485c746cd?api-version=2021-03-01 cache-control: no-cache - content-length: '2333' + content-length: '2487' content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:12:41 GMT + date: Tue, 25 May 2021 10:02:31 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -562,24 +564,28 @@ interactions: status: code: 201 message: Created - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b44afcc4-0d67-47da-bcaf-3aca318221e3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d3c7bba-574f-49fb-93df-419485c746cd?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:12:42.5609043+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"b44afcc4-0d67-47da-bcaf-3aca318221e3\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b2Ht3bHe/ce/Dw4cHeJzv0wc5HI/NSu27wxtny + ZV1d1HnT6FfLTEAdzO5NH0wm2fb9B/vn2/sPzyfbD+/N6Lfdh/sH96cP9j+dzj76jZNf8v8A7I3L + I4YAAAA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:12:52 GMT + date: Tue, 25 May 2021 10:02:41 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -591,24 +597,28 @@ interactions: status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/b44afcc4-0d67-47da-bcaf-3aca318221e3?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/8d3c7bba-574f-49fb-93df-419485c746cd?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b44afcc4-0d67-47da-bcaf-3aca318221e3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d3c7bba-574f-49fb-93df-419485c746cd?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:12:42.5609043+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"b44afcc4-0d67-47da-bcaf-3aca318221e3\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b2Ht3bHe/ce/Dw4cHeJzv0wc5HI/NSu27wxtny + ZV1d1HnT6FfLTEAdzO5NH0wm2fb9B/vn2/sPzyfbD+/N6Lfdh/sH96cP9j+dzj76jZNf8v8A7I3L + I4YAAAA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:13:43 GMT + date: Tue, 25 May 2021 10:03:32 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -616,29 +626,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29994 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29994 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/b44afcc4-0d67-47da-bcaf-3aca318221e3?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/8d3c7bba-574f-49fb-93df-419485c746cd?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b44afcc4-0d67-47da-bcaf-3aca318221e3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d3c7bba-574f-49fb-93df-419485c746cd?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:12:42.5609043+00:00\",\r\n \"endTime\": - \"2021-04-06T03:14:01.8890599+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"b44afcc4-0d67-47da-bcaf-3aca318221e3\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b2Ht3bHe/ce/Dw4cHeJzv0wc5HI/NSu27wxtny + ZV1d1HnT6FfLTEAdzO5NH0wm2fb9B/vn2/sPzyfbD+/N6Lfdh/sH96cP9j+dzj76jZNf8v8A7I3L + I4YAAAA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:14:12 GMT + date: Tue, 25 May 2021 10:04:01 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -646,58 +659,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29992 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29993 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/b44afcc4-0d67-47da-bcaf-3aca318221e3?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/8d3c7bba-574f-49fb-93df-419485c746cd?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d3c7bba-574f-49fb-93df-419485c746cd?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"virtualmachinexxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"8de6786e-85ad-4cee-9562-c0ea2c8cef7f\",\r\n - \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n - \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": - \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": - \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": - \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk\"\r\n - \ },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": - [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n \"name\": - \"virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": - \"myVM\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": - true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": - {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234\",\"properties\":{\"primary\":true}}]},\r\n - \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b2Ht3bHe/ce/Dw4cHeJzv0wc5HI34pX84GXtl/ + dG9vvHf/04N794M3qJt23eCF1+vpNM9n+Uy/WWYC6GB2b/pgMsm27z/YP9/ef3g+2X54b0a/7T7c + P7g/fbD/6XT20W+c/JL/B0rLsia3AAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:14:12 GMT + date: Tue, 25 May 2021 10:04:33 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -705,11 +692,61 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31997 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29991 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/8d3c7bba-574f-49fb-93df-419485c746cd?api-version=2021-03-01 +- request: + body: null + headers: + User-Agent: + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UfLbJF/9Cj96LKo23VWLrLpvFjm7969e5g9uLe7d2//oxG3K2ZodbdZT5ppXazaolo2d3cmu+ef + 7j/Y3d6dnO9s789m2XaWT+9tTycP9x7sne88vP9w526dN9W6nuaf19V61dytL1bX2/ufPiir+5PF + vCqW2U9f/qC62FssLrMHq+x+W7xd/PTk3U9f7U2z++WDsl7fv36w+MFP/3R5ea94cP9B8Wn7trl/ + /6fbe+f36vvT1d1VXV0Ws7xu7n5RTOuqqc7b8Um1WK3b/K6O6gsZVWP+Hhxle71iatwISduX1TQD + KfBOnjXt2nxBSK3yui2o5aOUKU0fXi7OmIr3Z3ufTnfuT7bv5ffy7f0H96fb2f7sYPsgnx482NvL + aZT3BQ69NM/q2VVW5y/r6rwogZ2Co+8uF6+LH+Cjj1632XJGLX//p3u//+XeR9LilxgYTVvV2UUU + RLGgL17l53mdL6fBV/Tlaj0pi2ae1/S5o8l3i+Wsumpe5/UlfaN94PmoOic4aDvcpHm7RoO9nd1P + t59mbTbNl22nCb3SKE3LrM2bNvg2f5dN2590TXb37z28N97f39kb7+3u3N+5T/8eKAEcCejFqnla + NG/pFX+EVfNGp1xRDvoywrG4/skvqmaG1/2vp3VO+H3JwoBmz+pqcQZ6hq2YZS7Q4FWezb5bF23Y + YJEt6Z1ZHzv6TmfueDqt1svW4Gpn+/mr1z4oeuH/m3IK0jZ3PTK7MbkZpNHhO7D8509olLt7D4Lv + 8jL3Z+NpTtw1t5AcnI9mxHegNmTze+bTtEP5cg0oO/YtPJYhVBv09cjvDwz3fv+d89nu+d6nk4Pd + B/f270/OH+7v7e0ePJjt7N7/NH+wu9OZtC4jnS5W7XW3DffFbPSiWgYcRN9u4CH69n25iF75/zIf + ffDs+LRwfIOnw4E7e/fCr9vqSS6Ml4OA51nZ5GGLG9g07DCYSGXJXe97+vB2LHnv99//dJpN7s/u + 7++c39s/380OZjvT/N7s3mx/Mts92NsNOeBHLPnDZMlbzI5PC59DiC6A8LPMkubX78svBgEynzGf + YipDr18oa0Kvu9n8KJstiuVXTV4b1oWNX9PfXpsrscYn1fK8uFjXxsmyfVATJjq8gJ/84viCvAj6 + uq3X/tA+ypfZpMyP1221IAjTr1ak+dkj6zZcZe10/jpvW2JnfO/1Y779opoxshbak+svOzz6UdY0 + edMsCBnTmt2Bp/l5ti7bGEENJenlJieZa9H7977vPs3Ksro6fdfmSwz1S3IqqW9ifGoWDOKjOv9F + 66LOP18TMWlShDSvi4tlVmpbaWp6/GiZt1dV/Zbamgk0H53BJTsn14x6+d4vZrn7/4zYvZAh3O0N + 5W5hfvWk76MR2IiIKp76L6a/yCGurz96BIL9kl/yfUstaiYkJQ4hLUUuHM3u6/V0muczkiu0okn9 + Jf8P3EYnkVUNAAA= + headers: + cache-control: no-cache + content-encoding: gzip + content-type: application/json; charset=utf-8 + date: Tue, 25 May 2021 10:04:33 GMT + expires: '-1' + pragma: no-cache + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + vary: Accept-Encoding + x-content-type-options: nosniff + x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31942 + status: + code: 200 + message: OK + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 - request: body: '{"location": "eastus", "properties": {"publisher": "Microsoft.Azure.NetworkWatcher", "type": "NetworkWatcherAgentWindows", "typeHandlerVersion": "1.4", "autoUpgradeMinorVersion": @@ -722,10 +759,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachineextensionxxx9a731234\",\r\n \"id\": @@ -737,39 +774,43 @@ interactions: \"1.4\"\r\n }\r\n}" headers: azure-asyncnotification: Enabled - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/43a6d829-af4d-4275-8bfc-7ef13bf483e1?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/86aeb1d1-1471-4a77-99c7-967942b89929?api-version=2021-03-01 cache-control: no-cache content-length: '641' content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:14:12 GMT + date: Tue, 25 May 2021 10:04:35 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff x-ms-ratelimit-remaining-resource: Microsoft.Compute/UpdateVM3Min;239,Microsoft.Compute/UpdateVM30Min;1199 - x-ms-ratelimit-remaining-subscription-writes: '1197' + x-ms-ratelimit-remaining-subscription-writes: '1198' status: code: 201 message: Created - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/43a6d829-af4d-4275-8bfc-7ef13bf483e1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/86aeb1d1-1471-4a77-99c7-967942b89929?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:14:13.3265269+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"43a6d829-af4d-4275-8bfc-7ef13bf483e1\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b2H93bH9//9OG9vQeffrJDH+x8NDIvtesGb5wt + X9bVRZ03jX61zATUwadZPtmd7W7v7j/Y3d7PHjzYfvhwSv98+uDh/t7k4OHDvYcf/cbJL/l/AIEq + wqeGAAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:14:43 GMT + date: Tue, 25 May 2021 10:05:04 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -777,28 +818,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29991 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29990 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/43a6d829-af4d-4275-8bfc-7ef13bf483e1?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/86aeb1d1-1471-4a77-99c7-967942b89929?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/43a6d829-af4d-4275-8bfc-7ef13bf483e1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/86aeb1d1-1471-4a77-99c7-967942b89929?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:14:13.3265269+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"43a6d829-af4d-4275-8bfc-7ef13bf483e1\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b2H93bH9//9OG9vQeffrJDH+x8NDIvtesGb5wt + X9bVRZ03jX61zATUwadZPtmd7W7v7j/Y3d7PHjzYfvhwSv98+uDh/t7k4OHDvYcf/cbJL/l/AIEq + wqeGAAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:15:13 GMT + date: Tue, 25 May 2021 10:05:35 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -806,28 +851,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29990 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29989 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/43a6d829-af4d-4275-8bfc-7ef13bf483e1?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/86aeb1d1-1471-4a77-99c7-967942b89929?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/43a6d829-af4d-4275-8bfc-7ef13bf483e1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/86aeb1d1-1471-4a77-99c7-967942b89929?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:14:13.3265269+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"43a6d829-af4d-4275-8bfc-7ef13bf483e1\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b2H93bH9//9OG9vQeffrJDH+x8NDIvtesGb5wt + X9bVRZ03jX61zATUwadZPtmd7W7v7j/Y3d7PHjzYfvhwSv98+uDh/t7k4OHDvYcf/cbJL/l/AIEq + wqeGAAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:15:43 GMT + date: Tue, 25 May 2021 10:06:04 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -835,29 +884,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29989 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29988 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/43a6d829-af4d-4275-8bfc-7ef13bf483e1?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/86aeb1d1-1471-4a77-99c7-967942b89929?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/43a6d829-af4d-4275-8bfc-7ef13bf483e1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/86aeb1d1-1471-4a77-99c7-967942b89929?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:14:13.3265269+00:00\",\r\n \"endTime\": - \"2021-04-06T03:15:48.2486479+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"43a6d829-af4d-4275-8bfc-7ef13bf483e1\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b2H93bH9//9OG9vQeffrJDH+x8NDIvtesGb5wt + X9bVRZ03jX61zATUwadZPtmd7W7v7j/Y3d7PHjzYfvhwSv98+uDh/t7k4OHDvYcf/cbJL/l/AIEq + wqeGAAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:12 GMT + date: Tue, 25 May 2021 10:06:35 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -865,33 +917,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29987 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29987 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/43a6d829-af4d-4275-8bfc-7ef13bf483e1?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/86aeb1d1-1471-4a77-99c7-967942b89929?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/86aeb1d1-1471-4a77-99c7-967942b89929?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"virtualmachineextensionxxx9a731234\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": - \"eastus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"publisher\": \"Microsoft.Azure.NetworkWatcher\",\r\n - \ \"type\": \"NetworkWatcherAgentWindows\",\r\n \"typeHandlerVersion\": - \"1.4\"\r\n }\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b2H93bH9//9OG9vQeffrJDH+x8NOKX8uVs4JVP + H907GO8/3P109+HD4BXqp103eOP1ejrN81k+02+WmUA6+DTLJ7uz3e3d/Qe72/vZgwfbDx9O6Z9P + Hzzc35scPHy49/Cj3zj5Jf8PjpTXRLgAAAA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:04 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -899,66 +950,81 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31995 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29984 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/86aeb1d1-1471-4a77-99c7-967942b89929?api-version=2021-03-01 - request: body: null headers: - Accept: - - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/instanceView?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 response: body: - string: "{\r\n \"computerName\": \"myVM\",\r\n \"osName\": \"Windows Server - 2016 Datacenter\",\r\n \"osVersion\": \"Microsoft Windows NT 10.0.14393.0\",\r\n - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.41491.1008\",\r\n \"statuses\": - [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": - \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": - \"GuestAgent is running and processing the extensions.\",\r\n \"time\": - \"2021-04-06T03:16:01+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - [\r\n {\r\n \"type\": \"Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows\",\r\n - \ \"typeHandlerVersion\": \"1.4.1693.1\",\r\n \"status\": {\r\n - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": - \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": - \"Plugin enabled (handler name: Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows, - extension name: , version: 1.4.1693.1).\"\r\n }\r\n }\r\n ]\r\n - \ },\r\n \"disks\": [\r\n {\r\n \"name\": \"myVMosdisk\",\r\n \"statuses\": - [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T03:12:44.3577807+00:00\"\r\n - \ }\r\n ]\r\n },\r\n {\r\n \"name\": \"virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\",\r\n - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T03:12:44.3577807+00:00\"\r\n - \ }\r\n ]\r\n },\r\n {\r\n \"name\": \"virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\",\r\n - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T03:12:44.3577807+00:00\"\r\n - \ }\r\n ]\r\n }\r\n ],\r\n \"extensions\": [\r\n {\r\n - \ \"name\": \"virtualmachineextensionxxx9a731234\",\r\n \"type\": - \"Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows\",\r\n \"typeHandlerVersion\": - \"1.4.1693.1\",\r\n \"statuses\": [\r\n {\r\n \"code\": - \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": - \"Provisioning succeeded\",\r\n \"message\": \"Plugin enabled (handler - name: Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows, extension - name: , version: 1.4.1693.1).\"\r\n }\r\n ]\r\n }\r\n ],\r\n - \ \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": - \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": - \"Provisioning succeeded\",\r\n \"time\": \"2021-04-06T03:15:48.2330209+00:00\"\r\n - \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \"level\": - \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n }\r\n ]\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UfLbJF/9Cj96LKo23VWLrLpvFjm+bs2XzZFtXz37t3D7MG93b17+x+N+IVihuZ3m/WkmdbFqqVG + zd2dye75p/sPdrd3J+c72/uzWbad5dN729PJw70He+c7D+8/3Llb5021rqf553W1XjV364vV9fb+ + pw/K6v5kMa+KZfbTlz+oLvYWi8vswSq73xZvFz89effTV3vT7H75oKzX968fLH7w0z9dXt4rHtx/ + UHzavm3u3//p9t75vfr+dHV3VVeXxSyvm7tfFNO6aqrzdnxSLVbrNr+rw/tChteYv3W43ijv2qF3 + G9kvvNZKk/Z6xUS8uV8LpNFXy2qagYZ4Pc+adm2+oNGs8rot8oa+4rmiD7N1W321uqizWf5Fsazq + n6TRysttvc75RWpFr14W+LxYXrxus5Zxe72eTvN8ls8EPpqtJ2XRzPMaXzvUj3+wrvPxi7y9quq3 + 383aKVqYd8xIw6+PL/Jl+91iOauuFH1t+u1sOStzD82Pdsf7H6HBL/mNk1/y/wBTOK4HggIAAA== + headers: + cache-control: no-cache + content-encoding: gzip + content-type: application/json; charset=utf-8 + date: Tue, 25 May 2021 10:07:05 GMT + expires: '-1' + pragma: no-cache + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + vary: Accept-Encoding + x-content-type-options: nosniff + x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31948 + status: + code: 200 + message: OK + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/instanceView?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UfTarFat3n9IlvkHz1KP1pc/+QXH434q6oxH363WM6qqyZ9ndeXeZ3u7ex+mj7N2myaL+lV2/wn + 87opqiXe+KKY1lVTnbepeffFm3R3Z7wz3t2/9/DeeEdfulwcXxAQeoXRcZ94sPbGD8b7u/sPd8e7 + O7v6IjVs2qxdN3lDTb4nH6UGCB4a2YyRf1lXlwVgFcuL1/ROfrdZT6d5PstnBhaej8r8Mi/xwtny + vAq+mRXNqsyu8fIa3X30Ks9m10GTRd402QX39/k6b1oeQ1o0ab1eouM0W87SVV1NqR3+bOd5mr9r + 8yUQa8YBrLYQqu/t7O1u79zf3rv/Znfn0c6nj+7d/2SHftn5yDT+JfLL9/XtjyzEb1N3JVGQwERp + 016vuAs7TePjH6zrfPwib6+q+u13s3Y6z+vOnzwmnc4QYYKmPXrTtjveH+9+SnN9L2gs00YNPHzo + 4/ecLXpjcL7ou5tnjBp5c/ayXF8UyzRfZpMyn6VbcxlNuiQBeJR+bSqN3BwrqFFKAoS/H6WOPnfG + dkbtnNpfvo8fv4Qxx7DeYjg6p5aCHwE4fc7SWzVo5saqFA8FxXsZz882+X2w6RDEAb7fe3Rvf/xg + 7/7+g08/7fA/Ecb8ymSivxWkHZ0lzWVRt+usXGTTebHM37179zB7cG93797+70/Yvt37/XfOZ7vn + e59ODnYf3Nu/Pzl/uL+3t3vwYLaze//T/IHTOwTyRwQF1M0Evff77386zSb3Z/f3d87v7Z/vZgez + nWl+b3Zvtj+Z7R7s7Tpkf34RFD9EYzt9DRR05HbUA4S273gUd2iyLsZLX1tndWDdTq//f2YG/1+u + 8yM8MqdJqH/y83yZ11lLQID6T6rwRMhuSf5+5B4i9fuTeUhIyH05GJOE7OzshELS1zAW8+oqr9Fz + flfdKK+bWyP8k18YJ8x0iB9E6V/y/wBCEAHwAgsAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:05 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -966,35 +1032,38 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31994 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31947 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/instanceView?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/instanceView?api-version=2021-03-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"virtualmachineextensionxxx9a731234\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": - \"eastus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"publisher\": \"Microsoft.Azure.NetworkWatcher\",\r\n - \ \"type\": \"NetworkWatcherAgentWindows\",\r\n \"typeHandlerVersion\": - \"1.4\"\r\n }\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UfLbJF/9Cj96LKo23VWLrLpvFjm+bs2XzZFtXz37t3D7MG93b17+x+N+IVihuZ3m/WkmdbFqqVG + zd2dye75p/sPdrd3J+c72/uzWbad5dN729PJw70He+c7D+8/3Llb5021rqf553W1XjV364vV9fb+ + pw/K6v5kMa+KZfbTlz+oLvYWi8vswSq73xZvFz89effTV3vT7H75oKzX968fLH7w0z9dXt4rHtx/ + UHzavm3u3//p9t75vfr+dHV3VVeXxSyvm7tfFNO6aqrzdnxSLVbrNr+rw/tChteYv3W43ijv2qF3 + G9kvvNZKk/Z6xUS8uV8LpNFXy2qagYZ4Pc+adm2+oNGs8rot8oa+4rmiD7N1W321uqizWf5Fsazq + n6TRysttvc75RWpFr14W+LxYXrxus5Zxe72eTvN8ls8EPpqtJ2XRzPMaXzvUj3+wrvPxi7y9quq3 + 383aKVqYd8xIw6+PL/Jl+91iOauuFH1t+u1sOStzD82Pdsf7H6HBL/mNk1/y/wBTOK4HggIAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:05 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -1002,134 +1071,208 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31993 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31946 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 - request: body: null headers: Accept: - application/json, text/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/runCommands/RunPowerShellScript?api-version=2020-12-01 - response: - body: - string: "{\r\n \"script\": [\r\n \"param(\\r\\n [string]$arg1,\\r\\n [string]$arg2\\r\\n)\\r\\nWrite-Host - This is a sample script with parameters $arg1 $arg2\\r\\n\\r\\n# SIG # Begin - signature block\\r\\n# MIIjjgYJKoZIhvcNAQcCoIIjfzCCI3sCAQExDzANBglghkgBZQMEAgEFADB5Bgor\\r\\n# - BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG\\r\\n# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCB6jm9GJUxEj/xj\\r\\n# - xRn7NMmK1YlgeGDCHEVx3xVyCBNnmaCCDYEwggX/MIID56ADAgECAhMzAAAB32vw\\r\\n# LpKnSrTQAAAAAAHfMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD\\r\\n# - VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy\\r\\n# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p\\r\\n# - bmcgUENBIDIwMTEwHhcNMjAxMjE1MjEzMTQ1WhcNMjExMjAyMjEzMTQ1WjB0MQsw\\r\\n# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u\\r\\n# - ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy\\r\\n# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB\\r\\n# - AQC2uxlZEACjqfHkuFyoCwfL25ofI9DZWKt4wEj3JBQ48GPt1UsDv834CcoUUPMn\\r\\n# s/6CtPoaQ4Thy/kbOOg/zJAnrJeiMQqRe2Lsdb/NSI2gXXX9lad1/yPUDOXo4GNw\\r\\n# - PjXq1JZi+HZV91bUr6ZjzePj1g+bepsqd/HC1XScj0fT3aAxLRykJSzExEBmU9eS\\r\\n# yuOwUuq+CriudQtWGMdJU650v/KmzfM46Y6lo/MCnnpvz3zEL7PMdUdwqj/nYhGG\\r\\n# - 3UVILxX7tAdMbz7LN+6WOIpT1A41rwaoOVnv+8Ua94HwhjZmu1S73yeV7RZZNxoh\\r\\n# EegJi9YYssXa7UZUUkCCA+KnAgMBAAGjggF+MIIBejAfBgNVHSUEGDAWBgorBgEE\\r\\n# - AYI3TAgBBggrBgEFBQcDAzAdBgNVHQ4EFgQUOPbML8IdkNGtCfMmVPtvI6VZ8+Mw\\r\\n# UAYDVR0RBEkwR6RFMEMxKTAnBgNVBAsTIE1pY3Jvc29mdCBPcGVyYXRpb25zIFB1\\r\\n# - ZXJ0byBSaWNvMRYwFAYDVQQFEw0yMzAwMTIrNDYzMDA5MB8GA1UdIwQYMBaAFEhu\\r\\n# ZOVQBdOCqhc3NyK1bajKdQKVMFQGA1UdHwRNMEswSaBHoEWGQ2h0dHA6Ly93d3cu\\r\\n# - bWljcm9zb2Z0LmNvbS9wa2lvcHMvY3JsL01pY0NvZFNpZ1BDQTIwMTFfMjAxMS0w\\r\\n# Ny0wOC5jcmwwYQYIKwYBBQUHAQEEVTBTMFEGCCsGAQUFBzAChkVodHRwOi8vd3d3\\r\\n# - Lm1pY3Jvc29mdC5jb20vcGtpb3BzL2NlcnRzL01pY0NvZFNpZ1BDQTIwMTFfMjAx\\r\\n# MS0wNy0wOC5jcnQwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQsFAAOCAgEAnnqH\\r\\n# - tDyYUFaVAkvAK0eqq6nhoL95SZQu3RnpZ7tdQ89QR3++7A+4hrr7V4xxmkB5BObS\\r\\n# 0YK+MALE02atjwWgPdpYQ68WdLGroJZHkbZdgERG+7tETFl3aKF4KpoSaGOskZXp\\r\\n# - TPnCaMo2PXoAMVMGpsQEQswimZq3IQ3nRQfBlJ0PoMMcN/+Pks8ZTL1BoPYsJpok\\r\\n# t6cql59q6CypZYIwgyJ892HpttybHKg1ZtQLUlSXccRMlugPgEcNZJagPEgPYni4\\r\\n# - b11snjRAgf0dyQ0zI9aLXqTxWUU5pCIFiPT0b2wsxzRqCtyGqpkGM8P9GazO8eao\\r\\n# mVItCYBcJSByBx/pS0cSYwBBHAZxJODUqxSXoSGDvmTfqUJXntnWkL4okok1FiCD\\r\\n# - Z4jpyXOQunb6egIXvkgQ7jb2uO26Ow0m8RwleDvhOMrnHsupiOPbozKroSa6paFt\\r\\n# VSh89abUSooR8QdZciemmoFhcWkEwFg4spzvYNP4nIs193261WyTaRMZoceGun7G\\r\\n# - CT2Rl653uUj+F+g94c63AhzSq4khdL4HlFIP2ePv29smfUnHtGq6yYFDLnT0q/Y+\\r\\n# Di3jwloF8EWkkHRtSuXlFUbTmwr/lDDgbpZiKhLS7CBTDj32I0L5i532+uHczw82\\r\\n# - oZDmYmYmIUSMbZOgS65h797rj5JJ6OkeEUJoAVwwggd6MIIFYqADAgECAgphDpDS\\r\\n# AAAAAAADMA0GCSqGSIb3DQEBCwUAMIGIMQswCQYDVQQGEwJVUzETMBEGA1UECBMK\\r\\n# - V2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0\\r\\n# IENvcnBvcmF0aW9uMTIwMAYDVQQDEylNaWNyb3NvZnQgUm9vdCBDZXJ0aWZpY2F0\\r\\n# - ZSBBdXRob3JpdHkgMjAxMTAeFw0xMTA3MDgyMDU5MDlaFw0yNjA3MDgyMTA5MDla\\r\\n# MH4xCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdS\\r\\n# - ZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMT\\r\\n# H01pY3Jvc29mdCBDb2RlIFNpZ25pbmcgUENBIDIwMTEwggIiMA0GCSqGSIb3DQEB\\r\\n# - AQUAA4ICDwAwggIKAoICAQCr8PpyEBwurdhuqoIQTTS68rZYIZ9CGypr6VpQqrgG\\r\\n# OBoESbp/wwwe3TdrxhLYC/A4wpkGsMg51QEUMULTiQ15ZId+lGAkbK+eSZzpaF7S\\r\\n# - 35tTsgosw6/ZqSuuegmv15ZZymAaBelmdugyUiYSL+erCFDPs0S3XdjELgN1q2jz\\r\\n# y23zOlyhFvRGuuA4ZKxuZDV4pqBjDy3TQJP4494HDdVceaVJKecNvqATd76UPe/7\\r\\n# - 4ytaEB9NViiienLgEjq3SV7Y7e1DkYPZe7J7hhvZPrGMXeiJT4Qa8qEvWeSQOy2u\\r\\n# M1jFtz7+MtOzAz2xsq+SOH7SnYAs9U5WkSE1JcM5bmR/U7qcD60ZI4TL9LoDho33\\r\\n# - X/DQUr+MlIe8wCF0JV8YKLbMJyg4JZg5SjbPfLGSrhwjp6lm7GEfauEoSZ1fiOIl\\r\\n# XdMhSz5SxLVXPyQD8NF6Wy/VI+NwXQ9RRnez+ADhvKwCgl/bwBWzvRvUVUvnOaEP\\r\\n# - 6SNJvBi4RHxF5MHDcnrgcuck379GmcXvwhxX24ON7E1JMKerjt/sW5+v/N2wZuLB\\r\\n# l4F77dbtS+dJKacTKKanfWeA5opieF+yL4TXV5xcv3coKPHtbcMojyyPQDdPweGF\\r\\n# - RInECUzF1KVDL3SV9274eCBYLBNdYJWaPk8zhNqwiBfenk70lrC8RqBsmNLg1oiM\\r\\n# CwIDAQABo4IB7TCCAekwEAYJKwYBBAGCNxUBBAMCAQAwHQYDVR0OBBYEFEhuZOVQ\\r\\n# - BdOCqhc3NyK1bajKdQKVMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMAsGA1Ud\\r\\n# DwQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFHItOgIxkEO5FAVO\\r\\n# - 4eqnxzHRI4k0MFoGA1UdHwRTMFEwT6BNoEuGSWh0dHA6Ly9jcmwubWljcm9zb2Z0\\r\\n# LmNvbS9wa2kvY3JsL3Byb2R1Y3RzL01pY1Jvb0NlckF1dDIwMTFfMjAxMV8wM18y\\r\\n# - Mi5jcmwwXgYIKwYBBQUHAQEEUjBQME4GCCsGAQUFBzAChkJodHRwOi8vd3d3Lm1p\\r\\n# Y3Jvc29mdC5jb20vcGtpL2NlcnRzL01pY1Jvb0NlckF1dDIwMTFfMjAxMV8wM18y\\r\\n# - Mi5jcnQwgZ8GA1UdIASBlzCBlDCBkQYJKwYBBAGCNy4DMIGDMD8GCCsGAQUFBwIB\\r\\n# FjNodHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpb3BzL2RvY3MvcHJpbWFyeWNw\\r\\n# - cy5odG0wQAYIKwYBBQUHAgIwNB4yIB0ATABlAGcAYQBsAF8AcABvAGwAaQBjAHkA\\r\\n# XwBzAHQAYQB0AGUAbQBlAG4AdAAuIB0wDQYJKoZIhvcNAQELBQADggIBAGfyhqWY\\r\\n# - 4FR5Gi7T2HRnIpsLlhHhY5KZQpZ90nkMkMFlXy4sPvjDctFtg/6+P+gKyju/R6mj\\r\\n# 82nbY78iNaWXXWWEkH2LRlBV2AySfNIaSxzzPEKLUtCw/WvjPgcuKZvmPRul1LUd\\r\\n# - d5Q54ulkyUQ9eHoj8xN9ppB0g430yyYCRirCihC7pKkFDJvtaPpoLpWgKj8qa1hJ\\r\\n# Yx8JaW5amJbkg/TAj/NGK978O9C9Ne9uJa7lryft0N3zDq+ZKJeYTQ49C/IIidYf\\r\\n# - wzIY4vDFLc5bnrRJOQrGCsLGra7lstnbFYhRRVg4MnEnGn+x9Cf43iw6IGmYslmJ\\r\\n# aG5vp7d0w0AFBqYBKig+gj8TTWYLwLNN9eGPfxxvFX1Fp3blQCplo8NdUmKGwx1j\\r\\n# - NpeG39rz+PIWoZon4c2ll9DuXWNB41sHnIc+BncG0QaxdR8UvmFhtfDcxhsEvt9B\\r\\n# xw4o7t5lL+yX9qFcltgA1qFGvVnzl6UJS0gQmYAf0AApxbGbpT9Fdx41xtKiop96\\r\\n# - eiL6SJUfq/tHI4D1nvi/a7dLl+LrdXga7Oo3mXkYS//WsyNodeav+vyL6wuA6mk7\\r\\n# r/ww7QRMjt/fdW1jkT3RnVZOT7+AVyKheBEyIXrvQQqxP/uozKRdwaGIm1dxVk5I\\r\\n# - RcBCyZt2WwqASGv9eZ/BvW1taslScxMNelDNMYIVYzCCFV8CAQEwgZUwfjELMAkG\\r\\n# A1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQx\\r\\n# - HjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEoMCYGA1UEAxMfTWljcm9z\\r\\n# b2Z0IENvZGUgU2lnbmluZyBQQ0EgMjAxMQITMwAAAd9r8C6Sp0q00AAAAAAB3zAN\\r\\n# - BglghkgBZQMEAgEFAKCBrjAZBgkqhkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgor\\r\\n# BgEEAYI3AgELMQ4wDAYKKwYBBAGCNwIBFTAvBgkqhkiG9w0BCQQxIgQgtFV7nVIA\\r\\n# - MzAyvGRGFyVFPBXkTNlNDitxIkf6V1ugHIUwQgYKKwYBBAGCNwIBDDE0MDKgFIAS\\r\\n# AE0AaQBjAHIAbwBzAG8AZgB0oRqAGGh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbTAN\\r\\n# - BgkqhkiG9w0BAQEFAASCAQCdcZkwG3N2yyK8zjw+MCmVYaQKrdUoDeuk/eGP1cNs\\r\\n# 2/0LZ1Nl5T1BXbVxIXU8gqL9GzokG58Fo1kTzUx0Vk/mJyAaV+KHVPDe0pIfreZL\\r\\n# - cosVVdCKCXc6zhBrapOG/fY5bmrhSMVsGGe04uvInKlItOltcAc1xx/z3yl3e4L7\\r\\n# d1esSaFrr+e95j4YwkCuQ8cUiAMWi9817841qYi36oIwVgsE29/d2b7+l5S2eEDy\\r\\n# - 0Umdiz2jWVXfSA6CePldzhOk5ySI5ShcBpn2b132gIs5lWlj3r1OD/lkOgOjQhSN\\r\\n# khCltIJso0c+f+LP822OJeHCSc1S6aKMH54rsrLZlSr9oYIS7TCCEukGCisGAQQB\\r\\n# - gjcDAwExghLZMIIS1QYJKoZIhvcNAQcCoIISxjCCEsICAQMxDzANBglghkgBZQME\\r\\n# AgEFADCCAVUGCyqGSIb3DQEJEAEEoIIBRASCAUAwggE8AgEBBgorBgEEAYRZCgMB\\r\\n# - MDEwDQYJYIZIAWUDBAIBBQAEICye+7PcMlsaxZQZ4xS/CJz3pTAcisYNJPqQgd+y\\r\\n# OPl2AgZgWeQWWNYYEzIwMjEwMzIzMTYzNjUxLjc1NlowBIACAfSggdSkgdEwgc4x\\r\\n# - CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRt\\r\\n# b25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsTIE1p\\r\\n# - Y3Jvc29mdCBPcGVyYXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFsZXMg\\r\\n# VFNTIEVTTjpEOURFLUUzOUEtNDNGRTElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUt\\r\\n# - U3RhbXAgU2VydmljZaCCDkAwggT1MIID3aADAgECAhMzAAABYfWiM16gKiRpAAAA\\r\\n# AAFhMA0GCSqGSIb3DQEBCwUAMHwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNo\\r\\n# - aW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29y\\r\\n# cG9yYXRpb24xJjAkBgNVBAMTHU1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEw\\r\\n# - MB4XDTIxMDExNDE5MDIyMVoXDTIyMDQxMTE5MDIyMVowgc4xCzAJBgNVBAYTAlVT\\r\\n# MRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQK\\r\\n# - ExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsTIE1pY3Jvc29mdCBPcGVy\\r\\n# YXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFsZXMgVFNTIEVTTjpEOURF\\r\\n# - LUUzOUEtNDNGRTElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUtU3RhbXAgU2Vydmlj\\r\\n# ZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJeInahBrU//GzTqhxUy\\r\\n# - AC8UXct6UJCkb2xEZKV3gjggmLAheBrxJk7tH+Pw2tTcyarLRfmV2xo5oBk5pW/O\\r\\n# cDc/n/TcTeQU6JIN5PlTcn0C9RlKQ6t9OuU/WAyAxGTjKE4ENnUjXtxiNlD/K2ZG\\r\\n# - MLvjpROBKh7TtkUJK6ZGWw/uTRabNBxRg13TvjkGHXEUEDJ8imacw9BCeR9L6und\\r\\n# r32tj4duOFIHD8m1es3SNN98Zq4IDBP3Ccb+HQgxpbeHIUlK0y6zmzIkvfN73Zxw\\r\\n# - fGvFv0/Max79WJY0cD8poCnZFijciWrf0eD1T2/+7HgewzrdxPdSFockUQ8QovID\\r\\n# IYkCAwEAAaOCARswggEXMB0GA1UdDgQWBBRWHpqd1hv71SVj5LAdPfNE7PhLLzAf\\r\\n# - BgNVHSMEGDAWgBTVYzpcijGQ80N7fEYbxTNoWoVtVTBWBgNVHR8ETzBNMEugSaBH\\r\\n# hkVodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpL2NybC9wcm9kdWN0cy9NaWNU\\r\\n# - aW1TdGFQQ0FfMjAxMC0wNy0wMS5jcmwwWgYIKwYBBQUHAQEETjBMMEoGCCsGAQUF\\r\\n# BzAChj5odHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpL2NlcnRzL01pY1RpbVN0\\r\\n# - YVBDQV8yMDEwLTA3LTAxLmNydDAMBgNVHRMBAf8EAjAAMBMGA1UdJQQMMAoGCCsG\\r\\n# AQUFBwMIMA0GCSqGSIb3DQEBCwUAA4IBAQAQTA9bqVBmx5TTMhzj+Q8zWkPQXgCc\\r\\n# - SQiqy2YYWF0hWr5GEiN2LtA+EWdu1y8oysZau4CP7SzM8VTSq31CLJiOy39Z4RvE\\r\\n# q2mr0EftFvmX2CxQ7ZyzrkhWMZaZQLkYbH5oabIFwndW34nh980BOY395tfnNS/Y\\r\\n# - 6N0f+jXdoFn7fI2c43TFYsUqIPWjOHJloMektlD6/uS6Zn4xse/lItFm+fWOcB2A\\r\\n# xyXEB3ZREeSg9j7+GoEl1xT/iJuV/So7TlWdwyacQu4lv3MBsvxzRIbKhZwrDYog\\r\\n# - moyJ+rwgQB8mKS4/M1SDRtIptamoTFJ56Tk6DuUXx1JudToelgjEZPa5MIIGcTCC\\r\\n# BFmgAwIBAgIKYQmBKgAAAAAAAjANBgkqhkiG9w0BAQsFADCBiDELMAkGA1UEBhMC\\r\\n# - VVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNV\\r\\n# BAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEyMDAGA1UEAxMpTWljcm9zb2Z0IFJv\\r\\n# - b3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTAwHhcNMTAwNzAxMjEzNjU1WhcN\\r\\n# MjUwNzAxMjE0NjU1WjB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3Rv\\r\\n# - bjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0\\r\\n# aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EgMjAxMDCCASIw\\r\\n# - DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKkdDbx3EYo6IOz8E5f1+n9plGt0\\r\\n# VBDVpQoAgoX77XxoSyxfxcPlYcJ2tz5mK1vwFVMnBDEfQRsalR3OCROOfGEwWbEw\\r\\n# - RA/xYIiEVEMM1024OAizQt2TrNZzMFcmgqNFDdDq9UeBzb8kYDJYYEbyWEeGMoQe\\r\\n# dGFnkV+BVLHPk0ySwcSmXdFhE24oxhr5hoC732H8RsEnHSRnEnIaIYqvS2SJUGKx\\r\\n# - Xf13Hz3wV3WsvYpCTUBR0Q+cBj5nf/VmwAOWRH7v0Ev9buWayrGo8noqCjHw2k4G\\r\\n# kbaICDXoeByw6ZnNPOcvRLqn9NxkvaQBwSAJk3jN/LzAyURdXhacAQVPIk0CAwEA\\r\\n# - AaOCAeYwggHiMBAGCSsGAQQBgjcVAQQDAgEAMB0GA1UdDgQWBBTVYzpcijGQ80N7\\r\\n# fEYbxTNoWoVtVTAZBgkrBgEEAYI3FAIEDB4KAFMAdQBiAEMAQTALBgNVHQ8EBAMC\\r\\n# - AYYwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBTV9lbLj+iiXGJo0T2UkFvX\\r\\n# zpoYxDBWBgNVHR8ETzBNMEugSaBHhkVodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20v\\r\\n# - cGtpL2NybC9wcm9kdWN0cy9NaWNSb29DZXJBdXRfMjAxMC0wNi0yMy5jcmwwWgYI\\r\\n# KwYBBQUHAQEETjBMMEoGCCsGAQUFBzAChj5odHRwOi8vd3d3Lm1pY3Jvc29mdC5j\\r\\n# - b20vcGtpL2NlcnRzL01pY1Jvb0NlckF1dF8yMDEwLTA2LTIzLmNydDCBoAYDVR0g\\r\\n# AQH/BIGVMIGSMIGPBgkrBgEEAYI3LgMwgYEwPQYIKwYBBQUHAgEWMWh0dHA6Ly93\\r\\n# - d3cubWljcm9zb2Z0LmNvbS9QS0kvZG9jcy9DUFMvZGVmYXVsdC5odG0wQAYIKwYB\\r\\n# BQUHAgIwNB4yIB0ATABlAGcAYQBsAF8AUABvAGwAaQBjAHkAXwBTAHQAYQB0AGUA\\r\\n# - bQBlAG4AdAAuIB0wDQYJKoZIhvcNAQELBQADggIBAAfmiFEN4sbgmD+BcQM9naOh\\r\\n# IW+z66bM9TG+zwXiqf76V20ZMLPCxWbJat/15/B4vceoniXj+bzta1RXCCtRgkQS\\r\\n# - +7lTjMz0YBKKdsxAQEGb3FwX/1z5Xhc1mCRWS3TvQhDIr79/xn/yN31aPxzymXlK\\r\\n# kVIArzgPF/UveYFl2am1a+THzvbKegBvSzBEJCI8z+0DpZaPWSm8tv0E4XCfMkon\\r\\n# - /VWvL/625Y4zu2JfmttXQOnxzplmkIz/amJ/3cVKC5Em4jnsGUpxY517IW3DnKOi\\r\\n# PPp/fZZqkHimbdLhnPkd/DjYlPTGpQqWhqS9nhquBEKDuLWAmyI4ILUl5WTs9/S/\\r\\n# - fmNZJQ96LjlXdqJxqgaKD4kWumGnEcua2A5HmoDF0M2n0O99g/DhO3EJ3110mCII\\r\\n# YdqwUB5vvfHhAN/nMQekkzr3ZUd46PioSKv33nJ+YWtvd6mBy6cJrDm77MbL2IK0\\r\\n# - cs0d9LiFAR6A+xuJKlQ5slvayA1VmXqHczsI5pgt6o3gMy4SKfXAL1QnIffIrE7a\\r\\n# KLixqduWsqdCosnPGUFN4Ib5KpqjEWYw07t0MkvfY3v1mYovG8chr1m1rtxEPJdQ\\r\\n# - cdeh0sVV42neV8HR3jDA/czmTfsNv11P6Z0eGTgvvM9YBS7vDaBQNdrvCScc1bN+\\r\\n# NR4Iuto229Nfj950iEkSoYICzjCCAjcCAQEwgfyhgdSkgdEwgc4xCzAJBgNVBAYT\\r\\n# - AlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYD\\r\\n# VQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsTIE1pY3Jvc29mdCBP\\r\\n# - cGVyYXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFsZXMgVFNTIEVTTjpE\\r\\n# OURFLUUzOUEtNDNGRTElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUtU3RhbXAgU2Vy\\r\\n# - dmljZaIjCgEBMAcGBSsOAwIaAxUAFW5ShAw5ekTEXvL/4V1s0rbDz3mggYMwgYCk\\r\\n# fjB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMH\\r\\n# - UmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSYwJAYDVQQD\\r\\n# Ex1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EgMjAxMDANBgkqhkiG9w0BAQUFAAIF\\r\\n# - AOQEYpYwIhgPMjAyMTAzMjMxNjUwMzBaGA8yMDIxMDMyNDE2NTAzMFowczA5Bgor\\r\\n# BgEEAYRZCgQBMSswKTAKAgUA5ARilgIBADAGAgEAAgFFMAcCAQACAhBTMAoCBQDk\\r\\n# - BbQWAgEAMDYGCisGAQQBhFkKBAIxKDAmMAwGCisGAQQBhFkKAwKgCjAIAgEAAgMH\\r\\n# oSChCjAIAgEAAgMBhqAwDQYJKoZIhvcNAQEFBQADgYEASFz2koXme1HDHP+dkfx+\\r\\n# - a54ml6mJ8Db379GDu+Ndy+o1bYBgu+uPYn95h4r1pABWj59V1GuzAg6wzMZJnZyX\\r\\n# zcC3J4GjDbr3NdoAW8YSiwngi5YUi/rEgy4i6MTZLrwCDtpeOa39lRWmRZ04qKGH\\r\\n# - cY0FsK7leG1HvZCeyNSWCe4xggMNMIIDCQIBATCBkzB8MQswCQYDVQQGEwJVUzET\\r\\n# MBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMV\\r\\n# - TWljcm9zb2Z0IENvcnBvcmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1T\\r\\n# dGFtcCBQQ0EgMjAxMAITMwAAAWH1ojNeoCokaQAAAAABYTANBglghkgBZQMEAgEF\\r\\n# - AKCCAUowGgYJKoZIhvcNAQkDMQ0GCyqGSIb3DQEJEAEEMC8GCSqGSIb3DQEJBDEi\\r\\n# BCDo0JUcyI7Uoe4l/JwTfXam0Y7YmXgJDbU1AQ0Q12fuwDCB+gYLKoZIhvcNAQkQ\\r\\n# - Ai8xgeowgecwgeQwgb0EIGHPi6fqaRIt3/MD7Q3lgsMani9b9UG01b+WmaG0CThv\\r\\n# MIGYMIGApH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAO\\r\\n# - BgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEm\\r\\n# MCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTACEzMAAAFh9aIz\\r\\n# - XqAqJGkAAAAAAWEwIgQgWFoBkMIVNfb/Lm5cSa+g4KaG8AfLrBdjhdBmg5BixwAw\\r\\n# DQYJKoZIhvcNAQELBQAEggEAMj8wQu8zZNSnFoTZ25lID6Eimu5S3pOAumsfR2VX\\r\\n# - oHRxotHYD2JUHRW43cHA0Q37ixkK0K4ihA1aB3bRkdKZmCTROx517iRV9YRR++67\\r\\n# LQIqC8b0vqUMhY0R/xiGiHA9IdbGB0m5fSVKUbcoCR9b/MlXxx3kPpO1TEy/VVzt\\r\\n# - W6QKy9mL+L68ULkkGrM2oYc3zg7DbunM3Gk10fYOqzp0Q2O41gPe7PCsmuM3Rvqd\\r\\n# X8sSTEjt+KG8gVH2tVPE0uopJ9kg+8YlF2R8+oDKfF+Z7ACIo3R9ajFfzeSqbaWh\\r\\n# - 2XjAmSNRck1yD75/P6oDl7aF0zdesEfofHV3yW4hcfiDNw==\\r\\n# SIG # End signature - block\\r\\n\"\r\n ],\r\n \"parameters\": [\r\n {\r\n \"name\": \"arg1\",\r\n - \ \"type\": \"string\",\r\n \"required\": false\r\n },\r\n {\r\n - \ \"name\": \"arg2\",\r\n \"type\": \"string\",\r\n \"required\": - false\r\n }\r\n ],\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"RunPowerShellScript\",\r\n \"osType\": \"Windows\",\r\n \"label\": - \"Executes a PowerShell script\",\r\n \"description\": \"Custom multiline - PowerShell script should be defined in script property. Optional parameters - can be set in parameters property.\"\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/runCommands/RunPowerShellScript?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UfNtC5W7UeP0u/hT/pgldXZYuv3rX/fZZp+r2nrYnnx/d8tqy92R/3P9vDRHfzz3bpo8+1vV02b + vpkXTUr/y9ImW6zKPJUu0quinacMPW/zukkBYJf/ZTD4/4+nr88+T388fZJfFMu0KS6WWbuu83RS + VtO30uCLs7OffvsTv893fq/qp87ml9MXxz8xPanos4ufPjk5u7d/cvwTp++e/uD4xZOL8mL+9uLJ + T/3EF6fHF6fPjp8+uf/koqoFypOL09Pj3+fsHn1zWn3eXGVvjnfwrfd5/sXJ73NyfHV6fHz8Ez/x + 7YOrB7/Ps/L5yemn977z4vnnAuX3+r0f/OCrnzh7cnzc+f/T43dfHO98fvLdk89fHz8rj69+gvD6 + 6vjJyZNPf3rx8PPvfPXu9KfvvvtpgfLu1fLBiy8Wv9fu71Ne5J8/Pfn26U++u/fuJ69PnrxYLrKT + k6e/z+nVxcXvfZdG/vT+pwT74vTkeP7FDwixJ/f2Lq8EyvPV77V8Xb/5CfqUnm+fc/+vf9Hnr88m + 957+xOmTk6uvjr/49v67kx8cf+fJxYuffHL8+7w5Ln/yzRevvrg6/Ynf56lA+cmf+Imz06vV7/37 + /N4vquy795ezzx+uv3h1fPX04vd5St99+/Rq9vqnvvuqnezdf/vFq/2rbx/z57/X6buffJF998W1 + QJnce3H5U8ufuPiJvYfX088fXv8+v/er1WRv/93v9fR4IX1/8ebbO7ur3+fedy6new8Xs5MnTyd7 + r8qzZy9WP7V3f6VQFtOLr05fPDl7enb1xZvTq2/Ppy+++Gmi7E+f7tL/f/DFm5/Y/S5/dkqfHV/T + T/nsp5/sfPETjdLlhMZGGH5+evWdn/zqB6dvvnhy+vnx7lenJ0+++L1+cu/ZD7LPy/VP3Xt1Ofnp + 05/44nifv3vy7otvf7X4ybeT7z5cC5Sfekr88OSKvz2Zf/GTb75b/vR08fAHk72f2jk7fXE5XT65 + nC6e7WT0hkeXp7eiC83uadGdL/DL8f7Zk6dXx/j+9zquzp4IlOOfONlbvyt/6vT45Kd/0fm3366f + XVcnV+fP9+5X52cPn/7Ud3+vdv/q9KfvfefJT+wffP6y3f2qeXp5QKIxrb766uUXKmjN3U9P2pdV + 9hP7b+bXd99Ovvzy4u4PvnO8rL+TF1/8xC96le89b2aTuy9en+1d/N6/9+/9sMxmu3evX3719Mvf + u9r//IVS9+VP/96/aPc7P1V88u2f+smHu5Ov6k9/6qd/kL/86d2LTyb5qvlFs7vfPtn9vV9Pf3rn + /M297Pjd81fXb7/z+gen706fLL56mL8WKNfrL6++Wv+iT07qYj37ifa7n38x+85Xn97fubz7ey1+ + cP7F/qe/z6dldfeLk+VydfmDez84ff7g5Rezr2ZXv+in7y5/n/nnKo33vvrJs+fvfu8H7fHsi8kP + Hjx/8cmn3/3ybPVm93h/t77Kqi9/cnn5ycFX2cP9b1/Nf/qnFuvd1w/uXec/+eDVT/3Ui3fVXKCc + 5hffKR7+Pr9P0/ze2YOvfuqrr96enBx/8nstjy++INn+/KcvLp59QpL4JP/p43Pw8rdff3X6+dPj + 7xrtIVCgQ94cXzx5cnGBT589+Ynp0+MfHM/4jZ/YP3128RNfffly8sXzg7PZ2xeftyfnXyx+8mV7 + efbpT/7UwSdfKHW/Ahe92nn15PTt1atPXz374vSLd7/Xm+MloDw5bt6cnQYy9HL6+U8qT93/wdmz + J7sC5ad+7+/sTK6fvCY+vPzi1e9z9QxQf+Innp1e7VyTFiHZOqtfPP19fvDF0+P7Xzw5AI/Pzq5+ + 4vf54kl2/Ox0biTgy5/8iSezL09+0Xx678X177U7yX7695r9xO/1k188+wl+49tXr158cdpcvc6e + fLs6/e7nP7E335l9+/jT59cP783uTRXKxJOb54sXl5PXD6+yvfJy+u0vLmkkzXNohR2SEmiC3SdP + f+INZP/ZOcn3uy9e7yhdXlzvXH15cp8gXV39Pj/x+5z9Xle/z5MnP/HVt0n3n/7kmydvvnh2+vnJ + SfM5ydCzJz84Ppm//clq9u1XV18WB5czwkagPF9QX5Z69396srdzOf28XU3uPfnB870X5XT56geb + 8BEowMris/yJq6eg7qudN8c/8e27T47Prkhfky16+4vmb4vPH17tkFw3z46PvzwhLX68XP6ibwuU + 9un17/PVs+wnj99eHv9eO/kv+kWfLufV84f3X//UT6zvvVqufupBO/uJg4c/8ereJ588OP5kf17X + D35y/927xVuyal9OVI52fp/f65Mvjp+f7uxl7U9ffffi5Wz1+/zEpwffnT3/vK6+81Pffjv5qdnF + 6avPP3nQnr55Vt7Lfq9n+7/Xqnqdff5l8/anfm/Vu29eLk+yL6q9l793dfzFT37x+ar5iVNSp8Xi + p37RvbOfuLd89RPnT8rv7Lysvvhi+uLuJy/fNgc/9eb57pPq5e/TfGdVqZ1uP53+ovL+w1/06cn1 + 6qd+n7Ori+vvHDzc+/aqba8n3/69LnZ/qv2J51+Vr3/v6fTVF+X64uXF6fTFT30nu3h5evHy91kW + +wJlsrvbLH/61fHF+c7s+id2fnD2MHv+e/+iN++++9VX91cnZ8+Kl292JntXzbsfvPpFJ+31579o + 9fbzLw5ePvw8+8GXB3lWCZTFT561J7/Pk+l3Xj+5fvLu7ur1zvT173P15Mm3j3/q3Xe+fPrVL3r3 + +veuXn/+9HLx5vwXffWd33vZLr/79vl+9bZ6u/usOFHb+FP7P726/r2//In1cvJpfnH2e1++vfiJ + B8Q16y/3Pv3yamdx8OqqzJ9ezr/8ol5+u1mvChLw6ge/V030/XSVPWsFyk++nh88zCZfva6qVwc/ + MfupaZEvFtWz+fS7b0+vnl3sN6sfXP4+L17uL8+a3Yf39j7d/e71m+zVFz9VTfPP18sHqutO3pC5 + /PT+vfVXP/3Js08uHu5PP713PP/B61+0/3Y+e77/7fLZ2cu9/OXl3sNmcf7V8tvt57/o0+vf59nT + 58s3O7/o7u/ziUB5Wtz76auyenZw+t23b7/9qn29/r3LZ19N3iyu6rvl06cXk9VPFb/X/PnrBydP + 3jz96Xt7ZzvP7xf37+19sv729AdXB+y2/Xha/dTTxe9D/5199fqLyU99efH60/vzBw8f1D99/zvf + +fTLt/npV9+pjn/yiqzY7FPSnM9+n19EMgEf5mI1f7p6qrxLTguep107yH7L2ednsOibbLlAuY1F + 32TLBUrPokPqIdew6NclW3Rjy79aPLwk3fsUWjb77k+tfp+9Zwrlp14/eTL7vV9Vk3vfWc2+/fYC + OuOLN8f5s6sd/Lz3xdOL6y+efnX/i6dlRp9dv/hp/ewN6WH6TKBs8tkInxu9NYGyyWczI+l4JYG3 + JlA2+Wxdb+3i4qzn0wgU0srwbE7EszmDZ0Pe8Ul98HJ1ffrkal3P5utfVJ39xJs3rz89qEl3/NTD + k8+vV/WnP7n6iV9UX6gEfPmkOn09Wd29urrK772Z1e/mz3+fk7vH+1ekAZovLu7v/sTpV1989fxN + 8RO793/qbPZJ+fnx28nv9Un++qd+QML4QOly7377prmomqtP7/7UL3q9XucXi0tq/1PXi+PsSV4u + ZuuL66+K3+f180/y+uTZ05fNzut7v/fsp0+fX7zY/UV7P/0DgXK9d+8HX5bX82eXrz5fr4/3f+r3 + ekdc9pP7q1/05KefXt978xPfebm/T27H09lPTvPsJ7/ze+XTF5e/6PjN7MGnX73M7z4QKPvXbXb6 + 5OGLnyyKIl8+vzj96V907/VPPvh9HuS7T9/+Pi9/Kn/wnQfz+eVPvaw//+L3zovvvNn/iezgF51e + fjd//RNfXu+phf1i96eftT948MkX7Zc/OP7B3rvmF33y+stvP3i9/H2Om4df3f/u29enu9+ZfnF/ + snh196sHv2j69NOdnzrbf/P84fPq6by6p7bx97779Ce+qj/5ojzLD65Onu185ycPfp/f6/nki+9c + X+x/56cu7r/+6cnL8+efv67nVz+9+rRcPPj89Dxbn1avf2r3vPjyrFQosy/mr39w//W75z/5e7+8 + /omnBy+effrd67s/efbJi6vf+ycevnq1zH/wyfHT+eXvdXVyUd6dXD357g8uX11+9ZNfXS6/zE5f + CpRPX7/4zuWTYv/Vt989u//Ft59Ol/XFdD19e+/Bw88X09/78mr+7vfe2//yxQMa2Be/V17/dHu3 + +e79Ty7vvti7+qn1c+W6cv/ZgwezSfv6k9l3fq9s+ub3+r2y5fl38+P71arIn31y/Xz/ze/9k/ff + TS/vTavf6+W328n0i+qnr69f/sTT2cur/PNnAuXV2fL05KsfPNv9vX7y6XOanYd7D/bzkye/z/Mn + L2a/z3e+m718e/CD+YtfdFU8Oc+Xbx/slPXJwatf9KRZvHh+sVsVXwiUk6uzp8c/cfykIv/+wRvy + L/O3FGdSTAs/5vjzkxfvvqKfX5BUHF99G3L+aufLJ09+n1N4Y/DDBErUG3vyliQOns9PPLn46elX + xxc/8cW3L6rjr66e7B5/fnb8E2T1vjim78ljEyhPr37i9Pjq7Mn8p49fQtq//Yr83POD0ydvSEuT + D9PzCL991n55cfbu7emX958d/+SXAmU//0XLdz/49quz/bc7Xzyr+I1vX72CJ3b15tMnL6rT9eev + v2s9QtK3V2vfFxQoziN8K97gvSfXpGN2f5976ontfudyskOe2dtnuzPWM+KJffGTB1df7B5olPVF + QZ4YeYa/90XoGX71009+4ovT/Y5n+J3AM4RPKFCof9VzzjMMvMLb40Je4cVPKRWPXz8pf3DypHx6 + 8oSzGMAPM369/5Ss3NMvnh44/GhWBMqzn37RwzKG34Q911dEuy/Io/7OavLdZ9f5d02sNr2+X80+ + 37n6CQpOuF/Q5eLs6sWT/euzJzvHb46flMefT49/n5940hw/OzieHj+5PP786jj7iSc/ffztt8cC + 5fe+Irp9m2D8BL3y+VfHk5/AW/vHs+PjNUG5eopR2dzM6fMnP3H8lLQ8DfL8ev6Lvvv7CJT9Z6/u + f148eLP37VfLs1XzvJx/e/773P+9fuonVj/1cGf59ou3Xzwrf+/r/ebl5U8/nbbP2ou7n37y8pOL + 3+v6p9d3X3260MzJwd5y8vs8OCjIjP3ev/d3v3v69tt7z1+VT35y7/j69fmLs+z1ux/84OXp7/X8 + q/bk6u53L3/6JemN3+unLhcvX63L3edGAmb3f+L+/rp8e/3VTzzMv1399MG7Fw9Xqyc7F/v3dq6v + f5+TV0V9UsxPHqx+r7fPnn7nss1erqrnq+9e/F4/ffCLst35dwTK7/Pu4Dtkg7PFdyZvL+6+Of7p + uy8+/70ePjj48uHJwxf5w/V3sgdlfX3e7ry494Onv+iTn/q9vpP/Pm9+Yv/hyd2zs2L2+5wLlKsf + nP0++5dPnz2f3p8s61ff+fIn6s9PGnLf6e2mXU6e/T7zV69+8mL/i+Xp8vPlJ+8enpzv3yuuPj37 + fPH7NOVCcck+v3+5ejDbudo5fvbkF/0+T36v4uKTi58+ePPmu7/P86vnL148zD9/ef7u3eWz33v3 + 2erepPyJk1VZHbyYfbX4vT6/erer1H2xyj+/97D+wScvz75b/VS13J/uleXDp+vf+7vEMbvNt5dn + 00+eLKef7/xE9m726uCry8WzeXv+dPpu3pxetg+Vd99d7VcP2vvl80+uf++Hv+jZtGwvjnd/0bPP + L39y+YPy06++83rn4icWv8/x+c7x8erd5PPJ6s3DZ7N3+7vv2t+rqFYPPxUoefH809ff+er8F91t + v322/3R3eVnczR7MnpefPK9nv/dF9uDL6t7i9377+7y+e/e7zTVJS55dfnJ5/fzTq/Xxp4u3amFr + 8hYe/MSrL8hCnM++u/vTb99QbPWTP/XlmwefHP/k9e81z5+cXp/93vXlT/zEL3r38u6anPdXs6vs + 87PF7uzdT769fyZQXk2fnFz/VLv33atfdPz688uH+U/dfXL53d02a8rX03dfvMjLpy+++H3OfvKn + KCP57LvwbU5J/r+6Oie34Yvjt+q/kDY4fTL/4uQnf/KLd6c/OH4F3fvk+OLNSTmbT/fm5E/NKLLZ + f3f69PhL+W765snud8qf+nz3crL4iXcC5ds/fTyVb6s3z77ytQJ5Z/e+c0X/n88+L+ELV5TPhA46 + JR11bnxegTIhDQyf96c+/+riq71yOVmQB3395Cd+YudUvNafOHvzxRV557OH9cHJp69XO79oh+YL + z5N7lGsVKL2M6+918qT+6eOf8qPfk5/44h1FyL8X6x/oPdJxT55iDJHM7PMvfmL/qtv62ZvjyxDi + T7w7u/iJi/bZTz5Y/uSZainKa1xffv7q82fXP/ns5ZPf++2bF+WLp0X77uzt+ac/ubu++PbZV1c/ + cRFCfvr0dOeLp7/XxTNS0gLl+HRHtd/ZMTknPzj+/OD4py6e7FSvftHx559ba0YaeRpYM7Zjbxxd + HLbEC8+Oj18TT5zMpj/19urzey/2rq9/r4Mf/PTVJ1+cLH7y98l+4veqZ19VT/P127skpbvTF41A + 2bu78/yndl+U99/sPvm9Jz/57uz3/urg4hc9f/j5D6q3n98/eFbtvn3zg6/e7fzk27uL71wfZz/5 + ye/17Z98+TTfWZ2d1/lPPRco06r5yZ+cnfxeJ7/39NMfzJ/U2erLz++e/z7kDdbz11/8ZPP55/nO + /vrybPl7lWTmy3Z6PN199+7uD+5dl/fy/ecqR7PdvHmdPavrT/KH9396//e5enuy/omD6VfF8Rff + LR4e7D442N/9Rb9Pce/T6uzqJy+a072Hd2d7kweflPdf7+WnT9U27ny1mBU/2Pvp7/7k733++vjT + k/xlOfvB/Mu3969fn91/PZ8+WS33Jrv39i7OmvslUfdevfvl07vl2y8vvvzpn5i/Vuq+nZ+U7dl3 + mmpn+sn5J89fHuztffmd/Nsnr6e7rz/Nfq8vvn1/v27q5z9Vvq4fVr/P2euDpycnp+urz08KWNmf + UC1FvtJTyvW/u5g/n35xdvZ6D96YtWK8wvD6mjy10+YrmjviYeJ6n98FCvEsrTOQP/eTP/H5ybWN + e75zekyrDJQz/Ikrmvk3B1eUz31AbZ+A64XfX/3UCeUXBcoXT0/ZilLgc3b83a+eUhaJbPXx6dnJ + df7Jg5fTL8ome/dTP/FT++9e3z35zg/urd4cT4vm93nxnZe/6CcuZp8odb98We4dX/zURXG+evqL + itPf5/SnyUf56dOrFxSbffHTX+y+eHO89/ynz+5996ePTy+oh4ckrbu/1+snO29OnvyANJVAgb6C + zvi6mkqgQF+9h6ZafXEy5V5P3n1xAU0lUIx0nZ0+vKJoW1ovv7j46ts/Ca/s8uzZdyj6Pnj3nZ8+ + fis9NW++/ZOvqt/nu+/K6fWTrwTKV7tfXLz6yRdffvn297n3E29+n/bVm7NdyuG9e/GGPOPXX12d + Xf0+iI4pc/+O3AoXHf/k52X7U693NRKeff6snVJWhPDYo1Ylze6Xr2jmn7z8imb35YwyZ8QnZye0 + IkFK8tlPLe++++T3vv7BLzp4i7+PVUsd/+RbnmnHaewvXZ0/Jd13C8oLlE30vw3lFYqj/+KLE87p + wlLMQH9L+WeUGfjuV+1X917NJ7/3sRfvHysUWaMhDntDuvTNW+K0U12jIT+TaGo/+2nhsu4oBUps + rO8zSoESGyv934yyx2V2lMpfAoVbvweXdflLoLwvl3X5S6CQZnpy9tPQPF2LQvnknzigPNnZk5OL + 34t+Pz2ulz99+vtMy+W7s9np652d4uLzn9Yo63hSXa9/+vr41dvf69677Mnv/cnvs7tT3Mt2rvbv + nr/4yfmbn/703edXxYTs5t0v3v7EF89+avXiB83l51+9eX739z5/81MPBcrnP3Xv4bez5cnsp9fL + 77y89+b3evj25KeeHLfL6uV9UrTffnry+fPFun3wyd7vc1ruNk+mP7m8ri5/n7cvflDcO/38XP3d + n7i+/Or51RdfPdtripdPaE3q+U892zm+v3p+XPzg7rOTq3f33z6lDMni5e5Xr+6d1D/49OwHq/lV + e139ovbi6fFdzRLvv1n+4PzyJ7/zcvH65U/dXf+i+1/O77/In/1eBy9+8MWqaL9b/MTlbHH+Zr/a + OZmtF8uiOf/u7vnvlWVPZpQP/uq55hm+enPw5vnVzuvrh8uvvvvi9y6P7/6i4uCLdy/fXZz8dFO/ + WBUPX1789LcfnL777sPJg9/77lfXs/nqF82//a5Zz55+/lMvNO+978X2n/+AbMGraRjDv5z8xC/6 + fX7y88vf696n979slrv7P33y8vnz1Yu9l0vE2gKF+NJF3C9+8qcpu/R7ffFTT3/wE/fag1fzy2df + 7M2z+Xd3afWFfTrE2i+/ON25ev3pk+9Up7lCebUh4n6+IB9lY6z9yuiXn3yx8/v8JK19/OQB5StP + r55T7pL+/468nOvJ0yeZt8ZF3Pjqyy9Or65ee7G3QPni+Pf6/OXC4hP3mQw+ez95PaMVIUglJAL6 + RqBA4/zeP2CN035BkSHhsybsd7445nzu7PTq9MldWm0nLXt1Chl7tVM+Ob6i9JLgI1CAFeUeY7qX + YlVaez3be/WTTyghtv/55+3B70Mzmf30dHV9/1U9//R6b6n88nud33+7/u7rb79+S/HLYnnx6ie+ + bNrs+jv3L75zl9Ix8x9c/aIXX10939+ZfvWT3z2Yrtuz62fZ7NtvKfD4Rb/3bKnUfX25M//i2fOX + dfFy+eTFs9M31wdFeXI2+8nixbOvdg5+6tvZ3u9VUXK1urv89Orl6/btT/90fbH/1b2XxXn7afOF + ct2n5e/dFJOvLj+5evrk4fn+75PPf1C8XLSf7J/cf/LFT/70D7J3u8UnO9MfXLQvv/3k9753b/3p + 51999wfL7GL2i8qdn5yobVzl937RwQ9OX+Wz75xfX8+fPHx1b/8H94t6ulzf3/3B6tv3fvqr7MGz + h/eqp68f3n/3ey+rxZefZG9/r/xp8eJzWnpQ6j74zt2HO7/op568Wn37Jw9+0cFx8+z05KcWP/Hk + 9W72e714fnd6/er+yd1PfvL1wey7P938Pge/9xfLgwfnx2/Jbv7UO9Jg6kt9N6P8k64SnPw+p7+I + jCYemtkwpzy0PiBQuqsE77s+IFC6qwSIld5nfUCgwAaRPqc3ZJXgp2LrA091feAp1gJOaS3gi70X + b36S1wcECvlt+s1P8DdffPvqvdYHBEp3leB91wcECuyxs4NfvPn2V6Q3nMX9Kvvubvkc2uO7u1e0 + Hv30J14fswahWWY7JlBuY81+0audF5ffnr4qfrq6ePDy6k159/f+9Hxv8VV275Xy7umL75YnFycn + 8/PL9vzz+fPnz+4+u/rkJ+dXy+zey8XvU3/37vFPfnU9Pf3i1cMnn7/7RT/57en+d0737x/8Pm+e + /FTz5onO9NO7zy6Ks1df/cTVD37vN5OL/ZPnL07u/dSXze7yi6ufvM5Oqp2vXux8We++2v/2i8vr + VxdflPOLV5ff+X1e7f8+JC/31cL+Pt/NX/3e+8++aqafvHnznedP3v1ePzXb+e7pm0nx059/frn4 + /OL55fnvc05W9vV09p3Pp6+n82pe/KKHz3/qrPyJ36d+pnmpu7/39Pzl+ZPfe5ZdPyzefufFTzz7 + 9qun969Ii87uPvzu5Pj4/k+dnq/v/sTru7vr+z9V/15N9tPXeVH9Xl+cP83eXGSvBEpbXZy9yOf7 + 337+dLWY7hzcv354uv5F5zv3Pn/9cHX87Sdnx4s3+Rf3Di6/ePqdV89282crShF/dVC8+QmxYwIF + 1uz+T5M1y8+uKFxxecuhTHXHZgmUwHK9R6ba5KgFyvy2meoXv/feTzbrl5/+Xt+Z/j6Ln3718qde + /8R3H55rxnox/+nTIet5G7spUNhaRa2nlx1+Zu3m3vM3Zz8gCNZuCpRN1vM2dlOgACvGx7Oe0D4/ + QX//xO/9kzvObv4+LUWAYjfPPr9gWr42Mw2KIlt18VO0Zv/7UDbazdH6mDLXF2+OHwJzxZn8m9/n + XfbtVzvTp9Xlc8JOoMyu77ee7lj/PnsP2+e7T56/fv3w7WTvBdHoxU98df3w7U9996fms+++o1HM + dyZvnhwbyAKF4f/08c63f/rs4ts/QexA+eafunoyR1aa8tA/gXzM5PjJ6vjzL47zn3hyfvzsi+PZ + MX1P+emf+okn6nvjrQllbY5P9i++TVmZUN80om8uTo+ffJKdffUT94p365Pf5+X+s3e0ejarPj1V + z2Py4GW9an6w+wX98iT/vVZ3L1e/9+TV26vm4Pmzn2rKX3Tv7u+9PPh28fDdp0X+nfzl/csvd+uf + fDY9+712Pz959cRkTtY/+eUXP3j56uK0Wu394JS6/6nL6e/95Pzu7/2yzJ/94Lu/z3ee/dTzGaWM + T78oLi/v3f38/O7ZvfOfrO5+++Xv9VP5V79IZfqri5PLL48Pfu+HZIYvvvt7/9Qvmvxkff+L8y8f + NqtPjz9/+PyL0594e/bTP3j54Ce+LMvq4U/9XpPrvbs/8WY+/c7B9eviXD34n8wOLu/Wk/Knf/rL + B79P+Um2tzs7/vT8218uvpv9xE+/fPiLfp/l3dm7r6rnb19Pii/zq596vXz208vfu5lPpl9Oq0/P + VKY/WT58WC5+0U/kv9dPtTvrz6efvLp38OWL4quHX2TlySr7nBZN8s9/0f7pT1Rf7re/z8nk7Kcv + LtrXv3f5U1/+4N7D5w8/ESi/z+7b8um9av3lT872quXnv+hJVb0sXmWf/j7Z9NX1/fr3efo2zy6+ + +L1/4gfZ+U88uLf39ODL0wfTn1ie/96/9+vf5+xirnO0Vz/5iW8vPnl4kJ8e3/tk+u7Jp6/ffHk5 + K1/d++nqk99rfvaL7p7n0+X9ebb38N4v+n2+/Xx1tWi+nFw275rL3+eifqUW9gev7u2sz7568u3q + 6YPP99/+op98urj+7sP67OlPfven8mr2gy+vfnqxOLn3i346P/7B8/nZ6uH0+PInT6bzhwdF86at + KoGyfv75au9+dr3a+b2K6+nBT/3EV/cu5pdvf9HiF33x6qd++umb9b2fuH798OFP53e/+1NFcTB5 + d/355Xcn313fO/2Jg3L3iUbCu59++/W7n/y9fzqb3f+9r2bfzr/44unDH3z5Uy8+udq7+3t/dXe1 + fLX/U1+efHLwg92LZ8/XBy+qZ8e7e+uD73zn3Q9+srm3vytQvn1RfLr305PJzu4nL+8tX5+9fvV7 + zS8unr8mC3vyJenVY8r53P29Pg/yP35kLlAQn39IZC5QEJ9/SGQuUMiPktZfMzIXKIjPPyQyFyjU + qqSl3d+L/JSrJ1e/z7Pf62r/6fG8evrsJ45/0axpjn/63SenDygO/062Lhez/OH01eL6NCNNCm36 + e71SCXhfP67rwQmU9/XjMG+OXl9o5uTWflzHFyd7dUxZIc1u3T/9cn759Lj4/Bj274x82q/o/6d7 + 5C3vvHhW/T5PYY8oV0QZScoL/T7vvvjpn9j57k8/Ie+WoFJ2VqDA9syfvf29nhyfvnv+A7Jex9XJ + k594+vYnPiXlT1obf5P3cXJcfHt5fEFewDHZDPw9f/YG3wkUvEE2Xt54+vswfAf57N3v9fR4gRjS + //z46veiyP/4DO8IlOOLL75dvT6Zm0/p7yfzX0TzEMaRZBcpjvx9To/PTubF5693Pv3u2dOL6vV3 + NY/5Ew/bCYWT5Ijt/aKfelFfPpv83m/Orj9plr/Pwae/98PqxfL5/u+VFctP5s309y6qLz/dq77z + i57uvH7506++czJ7N1Fc7p59+97y99k9O62a8+c//ZP397PF3e/8xLr8qcmnn9z9qZPf+2Ln/mKx + s793b/rJT33n6t6bt58+Obl4/snOzu9F5qh6p3Hj2cXbz9/SIuynP/V7LT6d/fTdZ/Ofnn96+oM6 + f1q9u7j44gVpiKcnPyEa4u0Pnhz8nEZZr3+fq+8IT5N07gY8DekUKJ6MuvWrY12/+snF+d1v3z9/ + /mV9/RP4m9avvsseQTST/3udnBx/VV19fuHP7tunX/wE8Wcnu//FCTwl95lAefL0tHhycvKdn5h8 + /qB+e01a+ov2i9OTN/d/0S/68vnvdXH+++z+xO/17dc7d0+vr37vn/6JZ9WXpBE+ufh9npveBAr1 + +RPHxcG7i7y6usin9P+fuLqY7JyeHZP7evDJ3S++/KmD3fvPv/x9ypc/fX/n93n66acvP/lF9eXD + g1/06vX5+S9S7/B052VF3t7vQ/8/Xn17/9Y5ZqPdFcoNOv4m7S5QiCe+To7ZZtMFSjenjmw6VgLv + f375g+N3+e+1c/CD3/s7q29/8fTqdLmzP5+uv9z9iZ98cXd6ftX8RPvJC6Vu++1pV36RBzqlPNDx + xfyL/MUnT768fHL3q0++vH6xys7unt89/85PPLz7i06X63evP/n8uwLl0zeLn5qvDtaLJ69Jg3/6 + 9IsvF6vJzne++9Xvdf98/8tXy+rF3au932fn5dP23ndpBfMke/1TZ7/Pq8vnv8/usy9n19/RHNnx + y9+72nt7Xbz77vPF7puf+Kmf/onZ8f2v3n317nU9m7943X7xez1czcnzfPrV8pPvLo7vte0pra7+ + XnsHP/l77f5er5bqY169eFje/8nTuz95/Xt/+eQHb8/rl9/e/2I6253Pzx98scjOfu+T68+vf7p4 + 8erJu3vHxX59v62rz3/w4OGDZ9ev7y6PjUzvPP/8yVdv93/i1evq/OD3+ur3ebf45Cc+zY7X87OL + st37dn1v9uT3nr75qekn+1/8Xvd/8kH+8sUvOmn2ro4fPHi5/PIXaQx78fLZ2VfZLNt/NW9/+mS9 + Lq/uk4r66SftT0yet6ShLnbeUVboy1Wx9+Ve/tXvffWTV599Jm++Pvs8JX5bztKmuFhm7brO00lZ + TVlxffQbJ2n6/RH+/WiV1dkib/O6+ehR+j18lKa/WH7Qt0v6jj7/KKsvdj/iF/B81F6v+OOmrYvl + hfdFnf+idVHnM/ryPCubXL74JdogCnfPe/194eKHjuN3a6bzfJFRg4/mbbt6dPeufDBeZJSnyxf5 + sh1nPyAyjKfVQr9r7u7t7H66vbu7vfvgbr1e0jfUetaMf7qpltL7RwX6/OjVevmyusrr1/O8LF9P + 62LV6vdV80aR/m6xnFVXjX5eZpO8xMen73JKXuZNmqUORNr4MGa5/FlQr/TGybppq0W6WJdtURbL + vP9e2syrdTlLJ3k6y8+pySwtlua7VV2t8rq9HqdfMsisTN0kp9NsideavMUr3hf2NeKOX/L/ALyN + /1ndNgAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:05 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -1141,844 +1284,108 @@ interactions: status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/runCommands/RunPowerShellScript?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/runCommands/RunPowerShellScript?api-version=2021-03-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/vmSizes?api-version=2020-12-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"Standard_A0\",\r\n - \ \"numberOfCores\": 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 20480,\r\n \"memoryInMB\": 768,\r\n \"maxDataDiskCount\": 1\r\n - \ },\r\n {\r\n \"name\": \"Standard_A1\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 71680,\r\n \"memoryInMB\": 1792,\r\n \"maxDataDiskCount\": 2\r\n - \ },\r\n {\r\n \"name\": \"Standard_A2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 138240,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_A3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 291840,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_A5\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 138240,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_A4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 619520,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_A6\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 291840,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_A7\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 619520,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Basic_A0\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 20480,\r\n \"memoryInMB\": 768,\r\n \"maxDataDiskCount\": 1\r\n - \ },\r\n {\r\n \"name\": \"Basic_A1\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 40960,\r\n \"memoryInMB\": 1792,\r\n \"maxDataDiskCount\": 2\r\n - \ },\r\n {\r\n \"name\": \"Basic_A2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 61440,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Basic_A3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 122880,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Basic_A4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 245760,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D1_v2\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D3_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D5_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_D11_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D12_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D13_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D14_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_D15_v2\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1024000,\r\n \"memoryInMB\": 143360,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2_v2_Promo\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D3_v2_Promo\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4_v2_Promo\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D5_v2_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_D11_v2_Promo\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D12_v2_Promo\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D13_v2_Promo\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D14_v2_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_F1\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384,\r\n \"memoryInMB\": 2048,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_F2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 4096,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_F4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_F8\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F16\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_A1_v2\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 10240,\r\n \"memoryInMB\": 2048,\r\n \"maxDataDiskCount\": 2\r\n - \ },\r\n {\r\n \"name\": \"Standard_A2m_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 20480,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_A2_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 20480,\r\n \"memoryInMB\": 4096,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_A4m_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 40960,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_A4_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 40960,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_A8m_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 81920,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_A8_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 81920,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2_v3\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4_v3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_B1ls\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4096,\r\n \"memoryInMB\": 512,\r\n \"maxDataDiskCount\": 2\r\n },\r\n - \ {\r\n \"name\": \"Standard_B1ms\",\r\n \"numberOfCores\": 1,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 4096,\r\n - \ \"memoryInMB\": 2048,\r\n \"maxDataDiskCount\": 2\r\n },\r\n - \ {\r\n \"name\": \"Standard_B1s\",\r\n \"numberOfCores\": 1,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 4096,\r\n - \ \"memoryInMB\": 1024,\r\n \"maxDataDiskCount\": 2\r\n },\r\n - \ {\r\n \"name\": \"Standard_B2ms\",\r\n \"numberOfCores\": 2,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 16384,\r\n - \ \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_B2s\",\r\n \"numberOfCores\": 2,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 8192,\r\n - \ \"memoryInMB\": 4096,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_B4ms\",\r\n \"numberOfCores\": 4,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 32768,\r\n - \ \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_B8ms\",\r\n \"numberOfCores\": 8,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 65536,\r\n - \ \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_B12ms\",\r\n \"numberOfCores\": 12,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 98304,\r\n - \ \"memoryInMB\": 49152,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_B16ms\",\r\n \"numberOfCores\": 16,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 131072,\r\n - \ \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n },\r\n - \ {\r\n \"name\": \"Standard_B20ms\",\r\n \"numberOfCores\": 20,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 163840,\r\n - \ \"memoryInMB\": 81920,\r\n \"maxDataDiskCount\": 32\r\n },\r\n - \ {\r\n \"name\": \"Standard_D48_v3\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1638400,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2_v3\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4_v3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20_v3\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 512000,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48_v3\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64i_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1638400,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1638400,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D1\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D11\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D12\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D13\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D14\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS1\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 7168,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 14336,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS11\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS12\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS13\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS14\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 229376,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS1_v2\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 7168,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS2_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 14336,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS3_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS4_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS5_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS11-1_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS11_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS12-1_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS12-2_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS12_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS13-2_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS13-4_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS13_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS14-4_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 229376,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS14-8_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 229376,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS14_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 229376,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS15_v2\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 286720,\r\n \"memoryInMB\": 143360,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_F1s\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4096,\r\n \"memoryInMB\": 2048,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_F2s\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 8192,\r\n \"memoryInMB\": 4096,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_F4s\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_F8s\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F16s\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8s_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16s_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32s_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48s_v3\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 393216,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64s_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2s_v3\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4-2s_v3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4s_v3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-2s_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-4s_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8s_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-4s_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-8s_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16s_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20s_v3\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 327680,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-8s_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-16s_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32s_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48s_v3\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 786432,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-16s_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-32s_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64is_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64s_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS2_v2_Promo\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 14336,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS3_v2_Promo\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS4_v2_Promo\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS5_v2_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS11_v2_Promo\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS12_v2_Promo\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS13_v2_Promo\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS14_v2_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 229376,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_F2s_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384,\r\n \"memoryInMB\": 4096,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_F4s_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_F8s_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_F16s_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F32s_v2\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F48s_v2\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 393216,\r\n \"memoryInMB\": 98304,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F64s_v2\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F72s_v2\",\r\n \"numberOfCores\": - 72,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 589824,\r\n \"memoryInMB\": 147456,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_E4_v4\",\r\n \"numberOfCores\": 4,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 0,\r\n - \ \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_E8_v4\",\r\n \"numberOfCores\": 8,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 0,\r\n - \ \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_E16_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2d_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 76800,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4d_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 153600,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8d_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16d_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20d_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 768000,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32d_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48d_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1843200,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64d_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2s_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_E4-2s_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_E4s_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_E8-2s_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_E8-4s_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_E8s_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_E16-4s_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-8s_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16s_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20s_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-8s_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-16s_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32s_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48s_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-16s_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-32s_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64s_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E80is_v4\",\r\n \"numberOfCores\": - 80,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2ds_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 76800,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4-2ds_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 153600,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4ds_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 153600,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-2ds_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-4ds_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8ds_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-4ds_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-8ds_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16ds_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20ds_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 768000,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-8ds_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-16ds_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32ds_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48ds_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1843200,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-16ds_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-32ds_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64ds_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E80ids_v4\",\r\n \"numberOfCores\": - 80,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4362240,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2d_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 76800,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4d_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 153600,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8d_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16d_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32d_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48d_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1843200,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64d_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_D4_v4\",\r\n \"numberOfCores\": 4,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 0,\r\n - \ \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_D8_v4\",\r\n \"numberOfCores\": 8,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 0,\r\n - \ \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_D16_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n },\r\n - \ {\r\n \"name\": \"Standard_D32_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2ds_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 76800,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4ds_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 153600,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8ds_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16ds_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32ds_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48ds_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1843200,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64ds_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2s_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_D4s_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_D8s_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_D16s_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n },\r\n - \ {\r\n \"name\": \"Standard_D32s_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48s_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64s_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2a_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4a_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8a_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16a_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32a_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48a_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64a_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1638400,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D96a_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2as_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4as_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8as_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16as_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32as_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48as_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 393216,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64as_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D96as_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 786432,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2a_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4a_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8a_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16a_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20a_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 512000,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32a_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48a_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64a_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1638400,\r\n \"memoryInMB\": 524288,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E96a_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 688128,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2as_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4-2as_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4as_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-2as_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-4as_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8as_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-4as_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-8as_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16as_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20as_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 327680,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-8as_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-16as_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32as_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48as_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 786432,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-16as_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 524288,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-32as_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 524288,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64as_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 524288,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E96-24as_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 688128,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E96-48as_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 688128,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E96as_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 688128,\r\n \"maxDataDiskCount\": 32\r\n - \ }\r\n ]\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/vmSizes?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UeXWbnOP3qUfg9/pSl/iOejZbbA5x+9brPlLKtnv/+T3bL5aOS+Xy8mef3l+UlV5w013HVfVc3T + onn7uvhBfrb84gm+29l/cP/+nmtBr1Trepp32u3vPPzUNVrki6q+1q/u73qvL7J3T7M2w9sn1XrZ + 0vd78uUv0UYbx7H4ORzH3s7+gffVhw3k53Acuzt7+95XHzSOvY0T4qH5tQey++m9Ax9dfyQHuw89 + AJGR7MuXtxrJz/ZAOsj64+hM1geNY3/jjHiU/NoDubf34FNfEPyRdGerP5QD+fI2QznYOBQPha89 + lE/v37/nU94fSneY/aHsfirf3mYsu5slxVeRX3s0Dw/u7fjE90ez/3DXh/Cho/l082g8mn7t0eze + 29154DULhtOduP5w7r2PFtvZOJy9Hffd1x8OJMMDFAwHusH/7oOG83T397/c2zCcb8K8kE3f8RH2 + B3Pv/g0q4Pba7One5qF4iH7tocAcDo7lwe4NOuD26uzpvc1j8Wj2tccCF2VwLLv7926QmfdQAU/3 + N4/Go9rXHg3M4uBo9g4+DbRDfzTvIzL3N4/mG1FoLORDw7n/4N6+xwGR4Xz6HmKze4MK8JD92sPZ + KDc389p7CM7uDVrAo9vXHs1GybmZ195HcnZvUAQ/66JzM6+9j+js3qAJfvZlZ3d3/9MDj2qRAb2X + 8NygDHxL/bUHJNLjQQpHBPHxv/ywEUF+fv+XdbWoNg3LffWBo3LNgkF907b0xhF5PP61R7RRL/A0 + ed/1h/Q+egFydOOYPAp+7TFtVA4367r3UQ4QpRvH9LOvIW7WeO8jTmxdbxyVh/LXHtRGebqZ+95D + oNjG3jgmj4Zfe0wbJepm7nsfiWJLe+OgftZF6mbuex+RYnt746B+9mXqm7W6z3Y3DcZ99bXHwvG3 + axUMBSzpfdUfyHuMY6Pn4L762uPopqX8cYALva/647i9Qni2v2EcHh2/9ji6GRx/HOA776v+ON5D + CTw72DAQj5BfeyAb81RdrusP5T1E/9nupxvG8o1I/N6ne7uBrvIH02W9/mDeQ+CfvoYV3TQe99XX + Hk7H5QwG8w1mqV7DeG4Yiofo1x5K19r7Y+kMsz+W28v909ewmRvG4hHta4+la+X9sXTH2R/Mewj/ + 09cwlhtG45Hta4+ma9790XRH2h/Ne8j/09dwpzeM5htRAT277o+nO9b+eN5PBexu36AFPHy/9oi6 + k+AP6GZ2ex/Z4cjgZ380P6zR7N00Ox4rfO3Z6bKUP57uzPXH817KgAZ0g6b2EPn/xoD+/zWcezfN + j6eXvvaAPlDBvZfCphH9ECzQD3dE/z8bz/5NM/SNWNW9vYf3HniAgiH1xtsf0/uZ1f3tg///jen/ + dyO6wZv7RtYZWEN7gMIRwV3wv/zAEUF535iZ8nD+2qNixF2rYFDfeDB044g8bfS1R8Tz5FoFI+qO + tj+k3fexshCkG8fkkfBrj6mrqf0xdcfbH9N7aXGI0o1j+kZURE8L+KPqjrg/qveSJw4nbhyWh/PX + HlV3OvxB3cx+7yNR7LLeOCaPiF97TN3J8MfUHW9/TO8lUuwU3Tgoj2u+9qA+kP3eS6jY5N44qm9E + qn6IhvfZbrNpNO6rrz2YThreH8o3utKwaRwell97HJ00vD+OzhD747i9Sni2v2kcHjt/7XF0k/D+ + QDpj7A/kPfTAs4NNI/Hm/WuPpJuB90fSHWV/KO8h/LTUsGks34jMb1oB6g60P5j3kPhjmNFNo3Ff + fe3B8Eq9axUM5kahv/28HO8tNo/Fw/RrjwX4Do3lZi57j3mBK/BzOJYbldh7DGX/hnnxaPa1xwJ8 + h8Zys8DcXiMfw+7/HI7lRp38HkM5uGFePJp97bEA36GxdJVcfzDvYWCOb8jq/GwP5mbhf4/BPCXp + v7dhMB6qX3sw93f3doYGg4F6X/XHcnvpf0oCs2koHs2+9lDYwAyN5eaJub3IPCUm2zSYb4LJWCsP + DeZmVfY+XLb76ebhfCOuDGuzofHcrALewzF7eu8GsbnnYfu1xwPZGBzP7r3dnRuC5/cZ0P4N/Ob7 + Tl97QLt7ewfDHLf78NNPd7xuPnBEn96gDj71RPXrjwgiPziivU/3dr/BVMBes3lEHrofNiDXKhgO + +NH7qj+Y99HVN4zFw+Frj6WrwvyxdMfZH8yBfDk8GDeYgxsG4yHxtQfT1V/+YLoD7Q/m/XT1DcP5 + RpR1T3/5A+oOtj+g95GbezcJzjeirXvC7g+oN9oPG9H+TRz3jajrew/v7flzHY7om9bWN4zoG1HX + 9/f2yQK5ZsGIehP4QSM6vcFD8JD9+sPZ4FjfrOBur61PbzClXj9feywbPeubFdztPevTGzwdr5+v + PZiNnvXNyu09tPXpz71n/c3qttO9nc0D8uPirz0glhwPUDggiI7/5YcN6Oc+VvimNdsNqtrD9muP + pyvx/nB4frzv+qN5H9W2fdNwvK6+9nC6Mu8PpzvU/nDeQ7ndZEb/PzWYgxvnxuvqaw+np7/88XTH + 2h/P+yjrg+2b5uf/awP6/9dwdj+9cYK+EXvaU8j+kHrj7Y/pfbQ1jemmWfr/4Jj+/zaivZ0bRvSN + uD2snT1A4YhgVv0vP2xE9/Zu5LtvxPP5YcZ0NKYbWe//g4P6/9mIjnc2DGbXffW1x8LhnWsVDIUE + zPumP45d+fI2w9j9WR7Gg90NyuDBDbne95iOTYulXidfexy79w4od+CaBQO5d/8bixWONwmJ18nX + Hsjew91QA/sDwWx5X/UHcnvH+vj+hoF4aH7tgWyckd39eze4bO8xJfsbRuKR62uP5NPdh/d90/ue + I3kP5/P40w1D+Vnnrr2DT2/wZt6DvR5sGMnP+qTcf3DvBlNy86Q8yZpi+v9xO6Jj+Nk2IpwadK2C + MXy4EdFB/GxbkE/J+xgaxIcbEB3Ez7b1kNV11ywYxYdbDx3Fz7bC3du//2CYob5JhXu6f8NKwDey + iCazMjSg3hJbf0Tv4fiefrpfbB7SN7KKJoHi0JD29/fu3cBr7zek/7eO6GuO6OnPtkbmtQ3XKpic + D1dmbhw/20p544rgh+szN5BNAuNR62sPhM380EC+UZX29GdbO7O1HxrKzT7ke4nJJjnxuvnaY9nd + xF83T8t7MNjuJlH5Weewm6flfThsd5O0/Kyz2M3O/Xux2CZx8c3y1x7MxmXZ3d39T4OUWH80n76H + Pn69SWC+CcPS0bn+UL5Ju/J6k7R4WH7tcXRl2x9IZ4z9gbyH2L/eJCoeub72QLqS7Q+kO8j+SN5H + 6l9vkhSPYF97KF3B9ofSHWZ/KO8j9K93N8mJ18/XHksXX38sN0/L+zDYz7ph+bBpeS8O+1k3LD11 + 6w+mO9D+YN6PxzbJyzdiWfb2Ht574AEKRtMban8472FZKFC+YYXoG4mUHxx8uu8vNQUj+sYD5ZsX + 8r6RWPngYP9BIPD+oL7xUHn7xrW8/w8Oqvj/35D+/zaivd//cpPC85D92sMZdKKRjPK+6w/kfRTd + 5nF4/Xzj47i3d1PG//aOwSklNjeNw+vnGx/Hp/fvB1zXH8d7eAWnu59uHolvEr7xoeze2925wcN5 + LyHZ2TwWf0Xrmx8LxMT/8sPGcu8Gifft+Dc+lr1P92i9xvvyw8aCZYBNY/lGnJuhsXzjfs3msXwj + lmVoLPd3P6Xcjfflh41lb7Z5LB6iX3sopHOH0zMQGe+7/mjex7LcMBivo689mF3SvIOj+Wbtyw2j + 8Tr62qO5R7p3cDTftJW5YTy+hH7tAfEi89CAvnFbc8OIvhFjQxy1MzwiiI//5YeN6N5N6uAbMTm7 + G1drv3HDc8OQvhHLs3tAUfXgkL5x+3PDkL4RA7S3f//BsKb7ps0QBWubRuSh+7UHNDQUliHvu/5I + 3scEbd80FK+rb3wo36j9QQD9wQMx4L/uQOhdevvDBnJw45x4NPvG5+SbtaIH2zdNy/+HxvL/m5Hs + fnrjtPj6/xsfzTfs2NBwbpqb/28N5/9Hg9nbuWEw34jT6cEIBwNb6X/5YYO5t3cjo30jHqePsT+c + b9jXpOHcyGv/3xrP/48Gw+trmwbzjQQCQ4P5xkOAmzntG4kChsbzDfv/NJ4bme3/W+P5/9FgDnaw + OrhpNAceJv9vH83e7IbBeJh+7bFQGDYYOrMN9b7rD+f94s2bxuP19bXH88PLeu7//2s4FHveNCCv + r689oB9iHpci0P+/jej/Z+Oh8O3GKfJ9ka89pk/JPxsc0zcc99Cgbpyn/w8O6v93Q6JFkRuG9I0E + qKSif4irIjez3jcSCf1QF0ZoVDez3/8Xh/X/vzHRGtYNY/pGYtcf8iLWLdjvG4mSfqgLWTSsmznw + /4vD+v/fmCisvWlQ30hcu3/v0729wBz97A3q6U0L+B66X3tAbHtdq2A4B7sPPQCRwdw+tn160zL3 + N8FxGyNB9iO87/qjuX0k+PTghtF8Exp8Y5Bxc1z7HkHGU1Lem8fj24qvPaBPyYwODujmqOl9JIfU + 9uYB/RD8hm/WF39KfsPmIf0Q3Ibdh59+uuN1855D6g7p05uUwg/BDn2z3t3Tvc0D8rD92uMZGsk3 + qq03D8Oj1zc+jG9WT28eh8fK3/g4vmkNvXkk34iCHhrKN62bNw/lG1HNQ0P5xpXy5rF8Izp5cCzf + tDbePJZvRBkPjeWbVsM3BQMepl97LCTfg2blG1XGNw3Go9vXHswP03e+YTgeS3/t4fxwnecbBvSN + KOdPST4GR/RNa+ibRvSN6Ogftvt8w5i+EV39w/afbxjTN6Kzf7gO9A0j8tD92gMaGso3qrRvGIdH + sW98HN+sur5hIB47f+MD+aYV9Q1D+Ub09NBYvmkVfcNYvhENPTSWb1w33zCYb0Q1Dw7mm1bKNwzm + G9HJQ4P5ZrXxM3DZ3oaxeIh+7aF0tZU/nP2b0um318jPMC+bxuLh8LXH0lVY/lhutC63V8rPIDCb + xuLh8LXH0lVY/li6c9YfzHso5mesmDcN5xtRzD2l5Q+oO3H9Ab2P2LB23jSgb0Q792TdH1B39j5s + QKyhNw3oG9HQvVVpf0APD+7t+IP9sAGxlt40oG9ES9/f26cQxzULBtTjxw8b0YObeM7v6+uP6ODh + wZ5HmnBE+w/27/vz90EjerqXbTakHrZffzy7w9HajQr79sbn6f4NY/FI+rXHsrtDK9NDg7lZY9/e + /Dw9uGE0Hst/7dHs7ewPJwduVtfvYX8oMLhhPL5S+toDgi8zOKBvVF1TdHDDgL4R+wP5GBzQ7jeq + 3ShEuGFE34gBuiEj9U0HCjcM6RsxQSz3g0PquRAfNqSHNwmS781/7SFtzkf1nIgPG9JeRmZ105A8 + fL/2iHiSXKtgPJAy76v+aN7LCm0cDMFSIPT21x5MVze7wRCMzkD7o3kvK3TDaDwsvvZouorZH013 + pP3RvKcVumE8Plt/7QHtdhWzP6LuaPsjeh/ZITN0w4i+ETvUU2L+iHrD/bAhkR26YUjfiCHqKbFg + SN+4HbphSN+IIdoYC/Wm8MOGRHbohiF9I4bowcGntNrjmgVD6k3hBw3p9CaPzkPja49nUzB0s+a+ + vR06vcnz8Tr62oPZGA3drLlvb4dOb3JNvY6+9mg2RkM3a+33sEOnuzc5cT5Xf+0BbYyGdr9RpX26 + t3PDiPY8RL72iFh6PEDhiCA+/pcfNiKyrJtH5Kulrz0iuJ6DI/pmVfYpGdbNI/pG7OrmAO8bVtlk + WDcP6Ruxq8JZQ0PqWd0PGxIZ1s1D+kbs6uYA79ODg929b25IN/qoHr5fe0Rde+OPhyfQ+64/nPex + rNs3jsfr62uPp2tx/PF0x9ofz3vY1ht90/9Pjebg5tnx+vra4+mZT39A3cH2B/Q+zsLB9o0z9P+1 + Ef3/bDy7n948Rb7R+9pj6jkE/ph6A+4P6n2UNg3qxnn6/+Cg/n83JPK8bxjSN+J6s5L2AIVDgn31 + v/ywId3bu5n1vhHvu+e6+YPqTeIHD2r3Ru77/+Co/n83JAqTbhjSNxIn/TAzW5/u34L3vpFQ6eBg + /0FgWf1R9Wbxg0d1M/v9f3BU/78b0sNPt/duHNU3Etbu3nvw6d59D1IwrG84rKVh3awr/r84rP+P + jQk/vv8bJ7/k/wFHStuU/NwAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:05 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -1986,35 +1393,39 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3992,Microsoft.Compute/LowCostGet30Min;31992 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3992,Microsoft.Compute/LowCostGet30Min;31945 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/vmSizes?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/vmSizes?api-version=2021-03-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions?api-version=2021-03-01 response: body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"virtualmachineextensionxxx9a731234\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": - \"eastus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": - true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"publisher\": - \"Microsoft.Azure.NetworkWatcher\",\r\n \"type\": \"NetworkWatcherAgentWindows\",\r\n - \ \"typeHandlerVersion\": \"1.4\"\r\n }\r\n }\r\n ]\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UeXWbnOP3qUfg9/pSl/iOejZbbA5x9dFnW7zspFNp0Xyzx/1+bLpqiW7969e5g9uLe7d2//o5F9 + qZjhlbvNetJM62LVUsPm7s5k9/zT/Qe727uT853t/dks287y6b3t6eTh3oO9852H9x/u3K3zplrX + 0/zzulqvmrv1xep6e//TB2V1f7KYV8Uy++nLH1QXe4vFZfZgld1vi7eLn568++mrvWl2v3xQ1uv7 + 1w8WP/jpny4v7xUP7j8oPm3fNvfv/3R77/xefX+6uruqq8tiltfN3S+KaV011Xk7PqkWq3Wb39Uh + fiFDbMzfOmRvpHft8LuN7Bdea48u7fWKiXlz3xZQ471eVtMMtASIPGvatf8ljWyV122RN/S1nT/6 + Ilu31Verizqb5V8Uy6r+SRq9AGnrdW4BUEsCcVngu2J58brNWsb19Xo6zfNZPnN9oel6UhbNPK/R + xA3n+AfrOh+/yNurqn773aydooX/nqFA2OT4Il+23y2Ws+rKG5I2/3a2nJW5h/ZHu+P9j0yjXyK/ + 8I/v/8bJL/l/AO7XV8bPAgAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:05 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -2022,1226 +1433,150 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3991,Microsoft.Compute/LowCostGet30Min;31991 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3991,Microsoft.Compute/LowCostGet30Min;31944 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions?api-version=2021-03-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/vmSizes?api-version=2020-12-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"Standard_B1ls\",\r\n - \ \"numberOfCores\": 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4096,\r\n \"memoryInMB\": 512,\r\n \"maxDataDiskCount\": 2\r\n },\r\n - \ {\r\n \"name\": \"Standard_B1ms\",\r\n \"numberOfCores\": 1,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 4096,\r\n - \ \"memoryInMB\": 2048,\r\n \"maxDataDiskCount\": 2\r\n },\r\n - \ {\r\n \"name\": \"Standard_B1s\",\r\n \"numberOfCores\": 1,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 4096,\r\n - \ \"memoryInMB\": 1024,\r\n \"maxDataDiskCount\": 2\r\n },\r\n - \ {\r\n \"name\": \"Standard_B2ms\",\r\n \"numberOfCores\": 2,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 16384,\r\n - \ \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_B2s\",\r\n \"numberOfCores\": 2,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 8192,\r\n - \ \"memoryInMB\": 4096,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_B4ms\",\r\n \"numberOfCores\": 4,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 32768,\r\n - \ \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_B8ms\",\r\n \"numberOfCores\": 8,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 65536,\r\n - \ \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_B12ms\",\r\n \"numberOfCores\": 12,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 98304,\r\n - \ \"memoryInMB\": 49152,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_B16ms\",\r\n \"numberOfCores\": 16,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 131072,\r\n - \ \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n },\r\n - \ {\r\n \"name\": \"Standard_B20ms\",\r\n \"numberOfCores\": 20,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 163840,\r\n - \ \"memoryInMB\": 81920,\r\n \"maxDataDiskCount\": 32\r\n },\r\n - \ {\r\n \"name\": \"Standard_DS1_v2\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 7168,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS2_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 14336,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS3_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS4_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS5_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS11-1_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS11_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS12-1_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS12-2_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS12_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS13-2_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS13-4_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS13_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS14-4_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 229376,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS14-8_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 229376,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS14_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 229376,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS15_v2\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 286720,\r\n \"memoryInMB\": 143360,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS2_v2_Promo\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 14336,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS3_v2_Promo\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS4_v2_Promo\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS5_v2_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS11_v2_Promo\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS12_v2_Promo\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS13_v2_Promo\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS14_v2_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 229376,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_F1s\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4096,\r\n \"memoryInMB\": 2048,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_F2s\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 8192,\r\n \"memoryInMB\": 4096,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_F4s\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_F8s\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F16s\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2s_v3\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4s_v3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8s_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16s_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32s_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2a_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4a_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8a_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16a_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32a_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48a_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64a_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1638400,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D96a_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2as_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4as_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8as_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16as_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32as_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48as_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 393216,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64as_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D96as_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 786432,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2a_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4a_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8a_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16a_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20a_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 512000,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32a_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48a_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64a_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1638400,\r\n \"memoryInMB\": 524288,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E96a_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 688128,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2as_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4-2as_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4as_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-2as_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-4as_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8as_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-4as_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-8as_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16as_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20as_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 327680,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-8as_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-16as_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32as_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48as_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 786432,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-16as_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 524288,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-32as_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 524288,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64as_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 524288,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E96-24as_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 688128,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E96-48as_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 688128,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E96as_v4\",\r\n \"numberOfCores\": - 96,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 688128,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D1_v2\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D3_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D5_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_D11_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D12_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D13_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D14_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_D15_v2\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1024000,\r\n \"memoryInMB\": 143360,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2_v2_Promo\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D3_v2_Promo\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4_v2_Promo\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D5_v2_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_D11_v2_Promo\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D12_v2_Promo\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D13_v2_Promo\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D14_v2_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_F1\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384,\r\n \"memoryInMB\": 2048,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_F2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 4096,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_F4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_F8\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F16\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_A1_v2\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 10240,\r\n \"memoryInMB\": 2048,\r\n \"maxDataDiskCount\": 2\r\n - \ },\r\n {\r\n \"name\": \"Standard_A2m_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 20480,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_A2_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 20480,\r\n \"memoryInMB\": 4096,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_A4m_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 40960,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_A4_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 40960,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_A8m_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 81920,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_A8_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 81920,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2_v3\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4_v3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48_v3\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1638400,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48s_v3\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 393216,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64s_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2_v3\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4_v3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20_v3\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 512000,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48_v3\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1638400,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2s_v3\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4-2s_v3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4s_v3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-2s_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-4s_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8s_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-4s_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-8s_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16s_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20s_v3\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 327680,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-8s_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-16s_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32s_v3\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48s_v3\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 786432,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-16s_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-32s_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64s_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_A0\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 20480,\r\n \"memoryInMB\": 768,\r\n \"maxDataDiskCount\": 1\r\n - \ },\r\n {\r\n \"name\": \"Standard_A1\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 71680,\r\n \"memoryInMB\": 1792,\r\n \"maxDataDiskCount\": 2\r\n - \ },\r\n {\r\n \"name\": \"Standard_A2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 138240,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_A3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 291840,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_A5\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 138240,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_A4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 619520,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_A6\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 291840,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_A7\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 619520,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Basic_A0\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 20480,\r\n \"memoryInMB\": 768,\r\n \"maxDataDiskCount\": 1\r\n - \ },\r\n {\r\n \"name\": \"Basic_A1\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 40960,\r\n \"memoryInMB\": 1792,\r\n \"maxDataDiskCount\": 2\r\n - \ },\r\n {\r\n \"name\": \"Basic_A2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 61440,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Basic_A3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 122880,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Basic_A4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 245760,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64i_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1638400,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64is_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 884736,\r\n \"memoryInMB\": 442368,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_M208ms_v2\",\r\n \"numberOfCores\": - 208,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4194304,\r\n \"memoryInMB\": 5836800,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M208s_v2\",\r\n \"numberOfCores\": - 208,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4194304,\r\n \"memoryInMB\": 2918400,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M416-208s_v2\",\r\n \"numberOfCores\": - 416,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 8388608,\r\n \"memoryInMB\": 5836800,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M416s_v2\",\r\n \"numberOfCores\": - 416,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 8388608,\r\n \"memoryInMB\": 5836800,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M416-208ms_v2\",\r\n \"numberOfCores\": - 416,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 8388608,\r\n \"memoryInMB\": 11673600,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M416ms_v2\",\r\n \"numberOfCores\": - 416,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 8388608,\r\n \"memoryInMB\": 11673600,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_H8\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1024000,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_H8_Promo\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1024000,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_H16\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_H16_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_H8m\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1024000,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_H8m_Promo\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1024000,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_H16m\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_H16m_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_H16r\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_H16r_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_H16mr\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_H16mr_Promo\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_D1\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D11\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D12\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D13\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D14\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 819200,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV6\",\r\n \"numberOfCores\": - 6,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 389120,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 24\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV12\",\r\n \"numberOfCores\": - 12,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 696320,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 48\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV24\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1474560,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV6_Promo\",\r\n \"numberOfCores\": - 6,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 389120,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 24\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV12_Promo\",\r\n \"numberOfCores\": - 12,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 696320,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 48\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV24_Promo\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1474560,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV6s_v2\",\r\n \"numberOfCores\": - 6,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 344064,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 12\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV12s_v2\",\r\n \"numberOfCores\": - 12,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 688128,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 24\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV24s_v2\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV12s_v3\",\r\n \"numberOfCores\": - 12,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 344064,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 12\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV24s_v3\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 688128,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 24\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV48s_v3\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_HB120rs_v2\",\r\n \"numberOfCores\": - 120,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 960000,\r\n \"memoryInMB\": 466944,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC6s_v2\",\r\n \"numberOfCores\": - 6,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 344064,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 12\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC12s_v2\",\r\n \"numberOfCores\": - 12,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 688128,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 24\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC24rs_v2\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC24s_v2\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F2s_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384,\r\n \"memoryInMB\": 4096,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_F4s_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 32768,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_F8s_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 65536,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_F16s_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 131072,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F32s_v2\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 262144,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F48s_v2\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 393216,\r\n \"memoryInMB\": 98304,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F64s_v2\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 524288,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_F72s_v2\",\r\n \"numberOfCores\": - 72,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 589824,\r\n \"memoryInMB\": 147456,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC6\",\r\n \"numberOfCores\": - 6,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 389120,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 24\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC12\",\r\n \"numberOfCores\": - 12,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 696320,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 48\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC24\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1474560,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC24r\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1474560,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC6_Promo\",\r\n \"numberOfCores\": - 6,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 389120,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 24\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC12_Promo\",\r\n \"numberOfCores\": - 12,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 696320,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 48\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC24_Promo\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1474560,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC24r_Promo\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1474560,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_E4_v4\",\r\n \"numberOfCores\": 4,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 0,\r\n - \ \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_E8_v4\",\r\n \"numberOfCores\": 8,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 0,\r\n - \ \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_E16_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2d_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 76800,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4d_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 153600,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8d_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16d_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20d_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 768000,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32d_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48d_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1843200,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64d_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2s_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_E4-2s_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_E4s_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_E8-2s_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_E8-4s_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_E8s_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_E16-4s_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-8s_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16s_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20s_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-8s_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-16s_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32s_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48s_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-16s_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-32s_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64s_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E80is_v4\",\r\n \"numberOfCores\": - 80,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E2ds_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 76800,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4-2ds_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 153600,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E4ds_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 153600,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-2ds_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8-4ds_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E8ds_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-4ds_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16-8ds_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E16ds_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E20ds_v4\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 768000,\r\n \"memoryInMB\": 163840,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-8ds_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32-16ds_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E32ds_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E48ds_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1843200,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-16ds_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64-32ds_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E64ds_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_E80ids_v4\",\r\n \"numberOfCores\": - 80,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4362240,\r\n \"memoryInMB\": 516096,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2d_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 76800,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4d_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 153600,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8d_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16d_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32d_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48d_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1843200,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64d_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_D4_v4\",\r\n \"numberOfCores\": 4,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 0,\r\n - \ \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_D8_v4\",\r\n \"numberOfCores\": 8,\r\n - \ \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": 0,\r\n - \ \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_D16_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n },\r\n - \ {\r\n \"name\": \"Standard_D32_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2ds_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 76800,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_D4ds_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 153600,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_D8ds_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 307200,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_D16ds_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 614400,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D32ds_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1228800,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48ds_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1843200,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64ds_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2457600,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D2s_v4\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 4\r\n },\r\n - \ {\r\n \"name\": \"Standard_D4s_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 8\r\n },\r\n - \ {\r\n \"name\": \"Standard_D8s_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 16\r\n },\r\n - \ {\r\n \"name\": \"Standard_D16s_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 32\r\n },\r\n - \ {\r\n \"name\": \"Standard_D32s_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D48s_v4\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_D64s_v4\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_L8s_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1830912,\r\n \"memoryInMB\": 65536,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_L16s_v2\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 3661824,\r\n \"memoryInMB\": 131072,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_L32s_v2\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 7323648,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_L48s_v2\",\r\n \"numberOfCores\": - 48,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 10985472,\r\n \"memoryInMB\": 393216,\r\n \"maxDataDiskCount\": - 32\r\n },\r\n {\r\n \"name\": \"Standard_L64s_v2\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 14647296,\r\n \"memoryInMB\": 524288,\r\n \"maxDataDiskCount\": - 32\r\n },\r\n {\r\n \"name\": \"Standard_L80s_v2\",\r\n \"numberOfCores\": - 80,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 18309120,\r\n \"memoryInMB\": 655360,\r\n \"maxDataDiskCount\": - 32\r\n },\r\n {\r\n \"name\": \"Standard_DC8_v2\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 409600,\r\n \"memoryInMB\": 32768,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DC1s_v2\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 51200,\r\n \"memoryInMB\": 4096,\r\n \"maxDataDiskCount\": 1\r\n - \ },\r\n {\r\n \"name\": \"Standard_DC2s_v2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 2\r\n - \ },\r\n {\r\n \"name\": \"Standard_DC4s_v2\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_NP10s\",\r\n \"numberOfCores\": - 10,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 753664,\r\n \"memoryInMB\": 172032,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_NP20s\",\r\n \"numberOfCores\": - 20,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1509376,\r\n \"memoryInMB\": 344064,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_NP40s\",\r\n \"numberOfCores\": - 40,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 3018752,\r\n \"memoryInMB\": 688128,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS1\",\r\n \"numberOfCores\": - 1,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 7168,\r\n \"memoryInMB\": 3584,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS2\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 14336,\r\n \"memoryInMB\": 7168,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS11\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 28672,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS12\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 57344,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS13\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 114688,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_DS14\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 229376,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_HC44rs\",\r\n \"numberOfCores\": - 44,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 716800,\r\n \"memoryInMB\": 360448,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC4as_T4_v3\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 180224,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC8as_T4_v3\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 360448,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC16as_T4_v3\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 360448,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC64as_T4_v3\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2883584,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_ND6s\",\r\n \"numberOfCores\": - 6,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 344064,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 12\r\n - \ },\r\n {\r\n \"name\": \"Standard_ND12s\",\r\n \"numberOfCores\": - 12,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 688128,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 24\r\n - \ },\r\n {\r\n \"name\": \"Standard_ND24rs\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_ND24s\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_ND40rs_v2\",\r\n \"numberOfCores\": - 40,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2969600,\r\n \"memoryInMB\": 688128,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_DC2s\",\r\n \"numberOfCores\": - 2,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 102400,\r\n \"memoryInMB\": 8192,\r\n \"maxDataDiskCount\": 2\r\n - \ },\r\n {\r\n \"name\": \"Standard_DC4s\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 204800,\r\n \"memoryInMB\": 16384,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_M64\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 8192000,\r\n \"memoryInMB\": 1024000,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M64m\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 8192000,\r\n \"memoryInMB\": 1792000,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M128\",\r\n \"numberOfCores\": - 128,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384000,\r\n \"memoryInMB\": 2048000,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M128m\",\r\n \"numberOfCores\": - 128,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 16384000,\r\n \"memoryInMB\": 3891200,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M8-2ms\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 256000,\r\n \"memoryInMB\": 224000,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_M8-4ms\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 256000,\r\n \"memoryInMB\": 224000,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_M8ms\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 256000,\r\n \"memoryInMB\": 224000,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_M16-4ms\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 512000,\r\n \"memoryInMB\": 448000,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_M16-8ms\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 512000,\r\n \"memoryInMB\": 448000,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_M16ms\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 512000,\r\n \"memoryInMB\": 448000,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_M32-8ms\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1024000,\r\n \"memoryInMB\": 896000,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_M32-16ms\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1024000,\r\n \"memoryInMB\": 896000,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_M32ls\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1024000,\r\n \"memoryInMB\": 262144,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_M32ms\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1024000,\r\n \"memoryInMB\": 896000,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_M32ts\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1024000,\r\n \"memoryInMB\": 196608,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_M64-16ms\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 1792000,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M64-32ms\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 1792000,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M64ls\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 524288,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_M64ms\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 1792000,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M64s\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2048000,\r\n \"memoryInMB\": 1024000,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M128-32ms\",\r\n \"numberOfCores\": - 128,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4096000,\r\n \"memoryInMB\": 3891200,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M128-64ms\",\r\n \"numberOfCores\": - 128,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4096000,\r\n \"memoryInMB\": 3891200,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M128ms\",\r\n \"numberOfCores\": - 128,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4096000,\r\n \"memoryInMB\": 3891200,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M128s\",\r\n \"numberOfCores\": - 128,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4096000,\r\n \"memoryInMB\": 2048000,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M32ms_v2\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 896000,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_M64ms_v2\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 1835008,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_M64s_v2\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 1048576,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_M128ms_v2\",\r\n \"numberOfCores\": - 128,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 3985408,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_M128s_v2\",\r\n \"numberOfCores\": - 128,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 2097152,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_M192ims_v2\",\r\n \"numberOfCores\": - 192,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 4194304,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_M192is_v2\",\r\n \"numberOfCores\": - 192,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 0,\r\n \"memoryInMB\": 2097152,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_M32dms_v2\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1048576,\r\n \"memoryInMB\": 896000,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_M64dms_v2\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2097152,\r\n \"memoryInMB\": 1835008,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M64ds_v2\",\r\n \"numberOfCores\": - 64,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 2097152,\r\n \"memoryInMB\": 1048576,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M128dms_v2\",\r\n \"numberOfCores\": - 128,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4194304,\r\n \"memoryInMB\": 3985408,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M128ds_v2\",\r\n \"numberOfCores\": - 128,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4194304,\r\n \"memoryInMB\": 2097152,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M192idms_v2\",\r\n \"numberOfCores\": - 192,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4194304,\r\n \"memoryInMB\": 4194304,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_M192ids_v2\",\r\n \"numberOfCores\": - 192,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 4194304,\r\n \"memoryInMB\": 2097152,\r\n \"maxDataDiskCount\": - 64\r\n },\r\n {\r\n \"name\": \"Standard_HB120-16rs_v3\",\r\n \"numberOfCores\": - 120,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1920000,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_HB120-32rs_v3\",\r\n \"numberOfCores\": - 120,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1920000,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_HB120-64rs_v3\",\r\n \"numberOfCores\": - 120,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1920000,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_HB120-96rs_v3\",\r\n \"numberOfCores\": - 120,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1920000,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_HB120rs_v3\",\r\n \"numberOfCores\": - 120,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1920000,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC6s_v3\",\r\n \"numberOfCores\": - 6,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 344064,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 12\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC12s_v3\",\r\n \"numberOfCores\": - 12,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 688128,\r\n \"memoryInMB\": 229376,\r\n \"maxDataDiskCount\": 24\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC24rs_v3\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_NC24s_v3\",\r\n \"numberOfCores\": - 24,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 1376256,\r\n \"memoryInMB\": 458752,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_PB6s\",\r\n \"numberOfCores\": - 6,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 344064,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 12\r\n - \ },\r\n {\r\n \"name\": \"Standard_HB60rs\",\r\n \"numberOfCores\": - 60,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 716800,\r\n \"memoryInMB\": 233472,\r\n \"maxDataDiskCount\": 4\r\n - \ },\r\n {\r\n \"name\": \"Standard_ND40s_v3\",\r\n \"numberOfCores\": - 40,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 39630000,\r\n \"memoryInMB\": 688128,\r\n \"maxDataDiskCount\": - 32\r\n },\r\n {\r\n \"name\": \"Standard_A8\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 391168,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_A9\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 391168,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_A10\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 391168,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_A11\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 391168,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 64\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV4as_v4\",\r\n \"numberOfCores\": - 4,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 90112,\r\n \"memoryInMB\": 14336,\r\n \"maxDataDiskCount\": 8\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV8as_v4\",\r\n \"numberOfCores\": - 8,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 180224,\r\n \"memoryInMB\": 28672,\r\n \"maxDataDiskCount\": 16\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV16as_v4\",\r\n \"numberOfCores\": - 16,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 360448,\r\n \"memoryInMB\": 57344,\r\n \"maxDataDiskCount\": 32\r\n - \ },\r\n {\r\n \"name\": \"Standard_NV32as_v4\",\r\n \"numberOfCores\": - 32,\r\n \"osDiskSizeInMB\": 1047552,\r\n \"resourceDiskSizeInMB\": - 720896,\r\n \"memoryInMB\": 114688,\r\n \"maxDataDiskCount\": 32\r\n - \ }\r\n ]\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/vmSizes?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UeXWbnOP3qUfg9/pSl/iOejZbbA5x+9brPlLKtnv/+T3bL5aOS+Xy8mef3l+UlV5w013HVfVc3T + onn7uvhBfrb84gm+29l/cP/+nmtBr1Trepp32u3vPPzUNVrki6q+1q/u73qvL7J3T7M2w9sn1XrZ + 0vd78uUv0UYbx7H4ORzH3s7+gffVhw3k53Acuzt7+95XHzSOvY0T4qH5tQey++m9Ax9dfyQHuw89 + AJGR7MuXtxrJz/ZAOsj64+hM1geNY3/jjHiU/NoDubf34FNfEPyRdGerP5QD+fI2QznYOBQPha89 + lE/v37/nU94fSneY/aHsfirf3mYsu5slxVeRX3s0Dw/u7fjE90ez/3DXh/Cho/l082g8mn7t0eze + 29154DULhtOduP5w7r2PFtvZOJy9Hffd1x8OJMMDFAwHusH/7oOG8/T17u9/ubdhPN+EfXmwGwiH + P5h7929QAbfXZk9f720eiofo1x7K7v69gJf8sXSG2R/L7dXZ09f3No/FI9rXHsvewaeDMtMdZ38w + 76ECnr7e3zwaj2xfezT3H9zb96gSjKY70v5o3ktk7m8ezTej0Xb3Pz3w6BKMpzvW/ng+fR+52d3d + vkELePh+7RF1J8Ef0M3s9j6ys/v/r9Hs3TQ7Hit87fF0WcofT3es/fG8lzKgAd2gqT1E/r8xoP9/ + DefeTfPj6aWvPaAPVHDvpbBpRD8EC/TDHdH/z8azf9MMfSNWdW/v4b0HHqBgSL3x9sf0fmZ1f/vg + /39j+v/diG7w5vxY6+uPCBraAxSOCO6C/+UHjgjK+/d/WVeLatOw3Fdfe1SMuGsVDOobD4ZuHJGn + jb72iHieXKtgRN3R9oe0+z5WFoJ045g8En7tMXU1tT+m7nj7Y3ovLQ5RunFM34iK6GkBf1TdEfdH + 9V7yxOHEjcPycP7ao+pOhz+om9nvfSSKXdYbx+QR8WuPqTsZ/pi64+2P6b1Eip2iGwflcc3XHtQH + st97CRWb3BtH9Y1I1Q/R8D77uVzVunF17j3G8f/qtaDbq4Rn+5vG4bHz1x4HJ7Vdq2AgnTH2B/Ie + euDZwaaRePP+tUfSXe3xR9IdZX8o7yH8z3Y/3TSWW8m8fZveiQ2muzriD6Y70P5g3kPin+41v//l + vQ3D8Qj/taemS35/NDcy2XuMZf+GsXg4fO2xdKnvj6U7zv5gbi/6Tw9uGIyHxNcezIex2XuI/1OS + mc3D+UbE5oe34vj03k2Cc8/D42sPaO/Tvd3AbfEH1Bvth41oL/v9L/c3DMjr6WuP5/7u3o4fVPvD + +UY1wQ1j8Uj6tceyu7O3PziYb1YV3DAaT0y/9mjgfQ2O5pvWBTeM5xvRBXDDBgf0TeuCGwb0jegC + yMfggHa/WV2wfxPL+a761x7R7t7ewTDT7T789NMdr5sPHNKnN+mETz15/fpDgtwPDqmnzj9sSA9v + EiQ/EPnaQ9rbv/9gWJLuPby358vrBw5pLyOzumlIHr5fe0Q8Sa5VMB5ImfdVfzTvZYVuGIyHxNce + TFc3+4PpDrQ/mveyQjeMxsPia4+mq5j90XRH2h/Ne1qhG8bjs/XXHtBuVzH7I+qOtj+i95EdMkM3 + jOgbsUM9JeaPqDfcDxsS2aEbhvSNGKKeEguG9I3boRuG9I0Yovt7+2RcXbNgSL0p/LAhkR26YUjf + iCF6cPDpvs/BwZB6U/hBQzq9yaPz0Pja49kUDN2suW9vh05v8ny8jr72YDZGQzdr7tvbodObXFOv + o689mo3R0M1a+z3s0OnuTU6cz9Vfe0Abo6Hdb1Rpn+7t3DAif9H9a4+IpccDFI4I4uN/+WEjIsu6 + eUS+WvraI4LrOTiib1Zln5Jh3Tyib8Subg7wvmGVTYZ185C+EbsqnDU0pJ7V/bAhkWHdPKRvxK5u + DvBoeXF375sb0o0+qofv1x5R19744+EJ9L7rD+d9LOv2jePx+vra4+laHH883bH2x/MetvVG3/T/ + U6M5uHl2vL6+9nh65tMfUHew/QG9j7NwsH3jDP1/bUT/PxvP7qc3T5Fv9L72mHoOgT+m3oD7g3of + pU2DunGe/j84qJ+9Id00pJ+lIZHnfcMsfSOuNytpD1A4S7Cv/pcfNqR7ezez3jfiffdcN39QPb78 + 4EHt3sh9/x8c1f/vhkRh0g1D+kbipB9mZuvT/Vvw3jcSKh0c7D8ILKs/qt4sfvCobma//w+O6v93 + Q3r46fbejaP6RsLa3XsPPt2770EKhvUNh7U0rJt1xf8Xh/X/uzE93f39L/c2DGjXffW1x8O5Sdcq + GM29+99Y+uHp3uaheIh+7aFszOs/2P3GgvWn9zaPxaPZ1x7Lxqz+7v69QAf2B/MeYeDT/c2j8aj2 + tUezMaW/d/DpNxdXPL2/eTS+d/K1h7Mx+33/wb0bvLpP30Nsdm9QAR6yX3s4G+XmZl57D8HZvUEL + eHT72qPZKDk389r7SM7uDYrgZ110bua19xGd3Rs0wc++7Ozu7pMF9b7sD+i9hOcGZfCNZBhEejxI + 4YggPv6XHzYiyM/v/7KuFtWmYbmvPnBUrlkwqG/alt44Io/Hv/aINuoFnibvu/6Q3kcvQI5uHJNH + wa89po3K4WZd9z7KAaJ045h+9jXEzRrvfcSJreuNo/JQ/tqD2ihPN3PfewgU29gbx+TR8GuPaaNE + 3cx97yNRbGlvHNTPukjdzH3vI1Jsb28c1M++TH2zVvfZ7qbBuK++9lg4a+9aBUMBS3pf9QfyHuPY + 6Dm4r772OHhpwrUKxgEu9L7qj+P2CuHZppSIR8evPY7uoqQ/DvCd91V/HO+hBJ4dbBiIR8ivPZDd + 7gqXP5Iu1/WH8h6i/2z30w1j+UYkvre64A+my3r9wbyHwB/DiG4ajvvqa4+GzadrFQzmRpm//bwc + 7y02j8XD9GuPBfgOjeVmLnuPeYEj8HM4lht12HsMZf+GefFo9rXHAnyHxnKzwNxeIR/D7P8cjuVG + nRwOZeNQDm6YF49mX3sswHdoLF3b0x/MexiY44Of28HcLPzvMRikCu5tGIyH6tcezKa1AwzU+6o/ + lttLP+LpTUPxaPa1h8IGZmgsN0/M7UXmKTHZpsF8E0zGWnloMDersvfhst1PNw/nG/FlWJsNjedm + FfAejtnTezeIzT0P2689HsjG4Hh6XuiHDWj/Bn7zfaevPaDdPVp3Hx7Rw08/3fG6+cARfXqDOvjU + E9WvPyKI/OCIes71h41o/4BWrjcN6RuZpHsP7+354hiM6BufoxtG9I1M0v29feI71ywY0Tc7R6c3 + 6AUP2a8/nA3mlPnR+64/mNvb09MbBMjr52uPZaM9vdkE3d6ent6g37x+vvZgNtrTm+3Pe9jT0597 + e/rN2p/TvZ3NA/K94a89IJYcD1A4IIiO/+WHDejn3kP4hjXb/ws8hJ5p+rAR/b/AQ9jf37t3g457 + nxHt3WBOPXS/9oC6WtkfDg/W+64/mvcxP9s3Dcfr6msPp6uX/eF0h9ofznsYoJtcnf9PDebgxrnx + uvraw+nZGH883bH2x/M+BvVg+6b5+f/agP7/NZzdT2+cIN8yfO0h9YymP6TeePtjeh9tTWO6aZb+ + Pzim/7+NaG/nhhF9I64pa2cPUDgimFX/yw8b0b29G/nuG/FOf5hxN43pRtb7/+Cg/v82oh9OCuvB + waf7PmmCEX3jQcTNjPeNBBIHB/sPAoPqD+objiNoUDfy3v8HB/X/sxEd72wYzK776muPhRNarlUw + FDJX3jf9cezKl7cZxu7P8jAe7G4wrQ9uWH98j+nYtCjsdfK1x7F774Cypa5ZMJB79z8s8vYHsklI + hmQEONx2IHsPd0N/xh8IZsv7qj8jtw9Tj+9vGIiH5s/OjOzu3wsUQX8kt0+GHO9vGIlHrq89kk93 + H973Hdn3HMl7hHLHn24Yys86d+0dfHpDbPAe7PVgw0h+1ifl/oN7NzhmN0/Kk6wppv8ftyM6hp9t + I8KLIa5VMIYPNyI6iJ9tC/Ip+fJDg/hwA6KD+Nm2HrJG4JoFo/hw66Gj+NlWuHv79x8MM9Q3qXDJ + 8S1+CI6vJCmGRvTNer4Y0v/PnPkv9nYOFjSmjSpgx+vuaw9qf/fh/r0djzzBqO4f0KCCaewP69Mb + VUEwrP8XjEp8gm9uVPuUuyW8bxgZtXJffu2RHdw7OPjUp1Ewsm96vgjn/3+OCvN1k4BRM/flz9LQ + dnc/JZ3yzY7t/4/j+vbBhgF5SHzt4ezuUOwW4OsP52b3+j2U+7cPfv+XdbWo/n80ot1NYdw3wm4c + NQyOZnd3/9Mga90fzvsw2+6nN87Q//cGdbDYMByvm689ms0Md4vRvA/HHSxunCKvs/9vjIlU94bh + /BA4bm/v4b0HXjeR8bwPx9F4bpyk/y+Oqv65Hc8tuO49x/P/hln6xke1+Dmepm+c7Rb/r5inb3ZY + T3+2M3X3d/cGh/LhSS43jk0Ot4fl1x6HGCLXLBjIh+e53EA2pVE8an3tgQh3uWbBQL7RVNfTn+2s + HWeBh4Zy89rCe7gGT3c3yYnXzdcey+4m/rp5Wt6DwXY3icrPOofdPC3vw2G7m6TlZ53FvtEY7unu + JnH5RgzLwe7DYWX8zdr/Fz+5KSL9JgZz7+AhmRbXLBjMzTOz9z5j2Sgyux6uX3s0nz789N7gaG4x + NfuhAtg8nL1NnLbn0e1rD2d3/8H+/cEFlW/WhSFWu9Ev8zr72mP64TLcjUP6/yLb3Tio/y8y3w3Z + Xq+rrz0i4q0dfwktGNAtpmn39mYIvHfDiL4Zzjs42N3zsfaHdIs5ei9x2tu/YUjfDN8Rznv3fbT9 + Me3fP3jgA4mM6T28BZ2mTe7PNzJNP1TO42naNKRvZJoI5R8e5+1jVXLTkPY9TL72kH6YnPftJ2QF + axrVJnmiJu7Lrz0suN6D/ur+p58+vMHkvodxOvn/mxo/Yf2waUTfiH4glH9ownSyt38T330jCuKH + KU0Y1P/fxvTsJs7zevr6A/r0XpA8DIZDQbv3VX8wt2e6ZzfNjofD1x7Lvb0HQf7QHwtidu+r/lhu + r+SewRZtGouHw9cey6f37wepKn8s3TnrD+Y9cj/Pdm9S2d9IzmT33u5OkLDyB9SduP6A3kds7t0k + N/c8PL72gPY+3dsN7KY/oO7sfdiA2PnZNKBvxPm59/Denj/VwYAeHtzb8Qf7YQP69CZt4Fv3rz2g + +3v7e4En4A+ox48fNqIHN/Gc39fXH9HBwwPfjIUj4nDd+/KDRnS69/tfbkxvua++9nCGXNKb9dvt + Dc/p/uZxeP184+O4Wa3d3uicHmweh9fPNz6Om7XZe9ib091PN4/E10Hf+FC+WbE/3dvZPJZvJHzz + YIRjgZj4X37YWO7dIPHfiNX00fXH0rOmHzaW/Ruk5RsxmENj6RnSDxvLpzdosG/EVg6N5f7upzcF + Ae8zlr3Z5rF4iH7toZDOHUx2sMh43/VH8z6W5YbBeB197cHskuYdHM03a19uGI3X0dcezT3SvYOj + +aatzA3j8SX0aw/oU1JagwP6xm3NDSP6RowNcdRwrpDFx//yw0Z07yZ18I2YnN09igIGh/SNG54b + hvSNWJ7dg31abhwa0jduf24Y0jdigPb27z8Y1nRDZohgfJ0hIVjbNCKL7gcMaGgoLEPed/3JeR8T + tH3TULyuvvGhfKP2BymB/18M5ODGOfG6+saH8s1a0YPtm6bl/0Nj+f/NSHY/vXFafP3/jY/mG3Zs + aDg3zc3/t4bz/6PB7O3cMJhvxOn0YISDga30v/ywwdzbu5HRvhGP08fYH8437GvScG7ktf9vjef/ + R4PhNZtNg/lGAoGhwXzjIcDNnPaNRAFD4/mG/X8az43M9v+t8fz/aDAHO8UNoznwMPl/+2j2ZjcM + xsP0a4+FopfB0JltqPddfzjvF2/eNB6vr689nh9e1nP//1/DodjzpgF5fX3tAf0Q87gUgf7/bUT/ + PxsPhW83TpHvi3ztMX1K/tngmL7huIcGdeM8/X9wUP+/GxItitwwpG8kQCUV/UNcFbmZ9b6RSOiH + ujBCo7qZ/f6/OKz//42J1rBuGNM3Erv+kBexbsF+30iU9ENdyKJh3cyB/18c1v//xkRh7U2D+kbi + 2v17n+7tBeboZ29QT29awPfQ/doDYtvrWgXDOdh96AGIDOb2se3Tm5a5vwmO2xgJsh/hfdcfze0j + wacHN4zmm9DgG4OMm+Pa9wgynpLy3jwe31Z87QF9SmY0GJA/oJujpveRHFLbmwf0Q/Abvllf/Cn5 + DZuH9ENwG3YffvrpjtfNBw7p05uUwg/BDn2z3t3Tvc0D8rD92uMZGsk3qq03D8Oj1zc+jG9WT28e + h8fK3/g4vmkNvXkk34iCHhrKN62bNw/lG1HNQ0P5xpXy5rF8Izp5cCzftDbePJZvRBkPjeWbVsM3 + BQMepl97LCTfg2blG1XGNw3Go9vXHswP03e+YTgeS3/t4fxwnecbBvSNKOdPST4GR/RNa+ibRvSN + 6Ogftvt8w5i+EV39w/afbxjTN6Kzf7gO9A0j8tD92gMaGso3qrRvGIdHsW98HN+sur5hIB47f+MD + +aYV9Q1D+Ub09NBYvmkVfcNYvhENPTSWb1w33zCYb0Q1Dw7mm1bKNwzmG9HJQ4P5ZrXxi5NPNw3E + ffW1x3Hv4OGuv4YcDOb+g3s3jGXv9hr5xcnu3obB7Hq4fu3RfPrwU7L+rlkwmt3d/U8PNvPZ/u31 + 8ouTvU1MtufR7WsPZ3f/wf79T4fGs7f38N4Djwci4/n0faZnb7/+/9eAPv39X9bVotowKK+zrz2m + H64E3Tik/y/K0Y2D+v8g85E0/f9vWM/hKGzS4h5bfP0BHdzbIZFy7YIB3ezGvYdL+pxd0k0D+kZc + 0nuffrp74E92MKJv1pl7zp7ppiF9I57pg3t79z713cJgSN+sF/Sc/dNNQ/IR+dpD2t15eHB/P5gJ + f0z3Ht7b87nhA8fEbuqmMX0jbiqpahrRQx9tf0z39/YpBeR9+WFjOti5YUwHnpr6+mMS/eCBCsbE + CsL/8oPG9PSEVhg2Dsl99d4jMiPa33k4nN+5OQa/vbF9erLrzxCadIazq0Doq689nPs0OUOjwVC9 + r/qD2ZUvbzWYmzSdh+rXHszuzt5w2vfGhNX7MNpNCuGb0Ad7O/sbMr43pq1u7ym8eLq/U980IA+R + rz+ih+SsDg6JHNXdvW9Kel683N1pNoxn18Pia4/nAWkvX/UHw9mlRRXffH/gcPY2DsfXsF97OLv3 + dzoOqD8eCo52gsH2x/Me3tyLl/sbB/SN8Nu9nd2DB367YEC34Lf3MT6vdzcM55tQ1Q92A9viD+Xe + /W9MGTx9vUkNeFh+7XHs7t8LogJ/IJ0x9gdye5F5+vrehoF45PraA9k7+HTQA+0Osj+S9xCWp683 + pa88gn3toXRzH/5QusPsD+X9xGSTnHj9fO2xdPH1x3LztLwPg21Mknrk/NpD+bBpeS8O290kLd8E + i/VSUf5gugPtD+b9eGyTvPiB4dceTS9X44+mN9T+cN4jkfPtk/39eqOt9Cj3tQcEzTvomlGQtu/H + 7ZEB3X48L072s+b3f7P/+19uYrlvYky7Bzt7g6mcm+Xn9qrgxcnBLYbkEfBrD6k3E/6Qbpai91AJ + lMH+9BaD+kakaeOodnf3PvXdwciw3kM50FLDbdjP93S/9rAoX9PxzPxx7d/fCXPBHzaup59u0hHf + yCx1IwB/NLfQebvvM5rdvU3D8VPOX3s8hG8YAPjj6Sn4/njeZznoKa0xbBqQr6a+9oB2CeO9+z7S + /oj273eCof6I3ovf9vb/fzUgpKg2jcd99fWH80PMT20YyjcxMz+05NQXn27y5Xx19LXHAsrvDA+G + J83/tj+c9/DmaDyLn+MBPeh++2EDIh26YUD0rfvya4+IOSpE2h+ScKP/7QcPadMk0dfuy5+tMd07 + wMKJ/+2Hjelge2+xSSt8E0MiXT08IHLFwy/747m9x03D2f//1XD+/zSY3U9vmJxvJGjgpSsfZ39A + FE6EX/YH9B6xEEa0eYb+Pzii/3+N597eDTPkr8V87RH1nQF/SAdY3fK/7A/pPRxSDOmGWfr/4pjK + n+MB7X26t3tDluT9BvTDmaHhAX3jM9T+HM/Q7sNPP93xTN4HDujT/ZvE6Btxuvs+aDCmb9jppkHd + wHn/nxzURuXwQxjR/b19Stp5X37ogP7/N0U/1wPqqY4PGxDFcjdJEjVxX37tYe3vdPW0P6xvOtoj + nLdv4D5q4r78/86w/v84pp/rIfVF7sOGBIH6/S83rY5/I26Ej7A/nG/YI4IcbR7NN6L3fIT90ezS + ItLODf7Q+0wOqfCfy9EQq92/YWHlfUZD4nHT7FAT9+U3PqB7Dw/u73+D00PY/pyOZ2/n4YNd//0P + Hc/DveLGGfKXPr7xEe3vPty/t+Mx9Tcwop/TAX3TU3Rvb3bTDH0j+pradWTfH9U3rrVvHNQ3ouj6 + k+EP6ptX3rP/FwyqN48fNihSaDfOFbVxX37tcfVVgT+unwVVftNsURP35c/SsPqT+YHDIv1383x9 + Ixpw88D6334DA/t/wbi+4Qn79hOKVygHVtPQ7m0a2p6nfb/20IhApMY9SMHQ9u8fPPCBREb2Hkpe + RnZv7/+vI/t0//+vI3v4/1du/P/fsF6cfHrDmDxP4GuP6N7+/o7vugQD2t3d//SGtOzu+wxod++G + Ee16CH/tIRHKgXkPhrS39/DeDS7U3u1V/IuTvRtVxZ5H3a89pl1Ceu++j7c/qG+a8faQqvj/1Zhe + Pvl0U7LPQ+JrD+eHKEnffvIpKbxN4/FU1Nce0IPdTyk76ZoFA9q7d2//gQcjMqD3EKOn+zs3cNy+ + h8jXHtG9h5/eI/XtgQrGRDMUKo7+mN6D5V785H5Gg9rfNCj31dce08OdXV9rBgPa3b93z2PtyHgO + 5MtbDefgpuF4pLv1cLrD2T3Y2fO1SzCevYNPb+C53U/l21sNaPfTm0a0+6n77msP6d6nO/v7Hm2C + Id1/QHrD+64/pPdiuXt7Nw3pG8koPdjbobSRaxYM6Ra6zo4JP77/Gye/5P8BbIaVjmdBAQA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:05 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -3253,96 +1588,54 @@ interactions: status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/vmSizes?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/vmSizes?api-version=2021-03-01 - request: body: null headers: Accept: - application/json, text/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/runCommands?api-version=2020-12-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"DisableNLA\",\r\n \"osType\": \"Windows\",\r\n \"label\": - \"Disable Network Level Authentication\",\r\n \"description\": \"Disables - Network Level Authentication (NLA). You must restart the VM after the script - completes for the change to take effect. The script itself does not restart - the VM. You can use this script to disable NLA if RDP connections are failing - with error 'The remote computer that you are trying to connect to requires - Network Level Authentication (NLA), but your Windows domain controller cannot - be contacted to perform NLA.' or error 'An authentication error has occurred. - The Local Security Authority cannot be contacted.' NLA is a security feature - that should only be disabled temporarily to allow RDP connections to succeed - until the domain controller connectivity issue has been resolved.\"\r\n },\r\n - \ {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"DisableWindowsUpdate\",\r\n \"osType\": \"Windows\",\r\n - \ \"label\": \"Disable Windows Update Automatic Updates\",\r\n \"description\": - \"Disable Automatic Updates through Windows Update.\"\r\n },\r\n {\r\n - \ \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"EnableAdminAccount\",\r\n \"osType\": \"Windows\",\r\n - \ \"label\": \"Enable administrator account\",\r\n \"description\": - \"Checks if the local Administrator account is disabled, and if so enables - it.\"\r\n },\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"EnableEMS\",\r\n \"osType\": \"Windows\",\r\n \"label\": - \"Enable EMS\",\r\n \"description\": \"Enable Emergency Management Services - (EMS) to allow for serial console connection in troubleshooting scenarios.\"\r\n - \ },\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"EnableRemotePS\",\r\n \"osType\": \"Windows\",\r\n \"label\": - \"Enable remote PowerShell\",\r\n \"description\": \"Configure the machine - to enable remote PowerShell.\"\r\n },\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"EnableWindowsUpdate\",\r\n \"osType\": \"Windows\",\r\n - \ \"label\": \"Enable Windows Update Automatic Updates\",\r\n \"description\": - \"Enable Automatic Updates through Windows Update.\"\r\n },\r\n {\r\n - \ \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"ifconfig\",\r\n \"osType\": \"Linux\",\r\n \"label\": - \"List network configuration\",\r\n \"description\": \"Get the configuration - of all network interfaces.\"\r\n },\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"IPConfig\",\r\n \"osType\": \"Windows\",\r\n \"label\": - \"List IP configuration\",\r\n \"description\": \"Shows detailed information - for the IP address, subnet mask and default gateway for each adapter bound - to TCP/IP.\"\r\n },\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"RDPSettings\",\r\n \"osType\": \"Windows\",\r\n \"label\": - \"Verify RDP Listener Settings\",\r\n \"description\": \"Checks registry - settings and domain policy settings. Suggests policy actions if machine is - part of a domain or modifies the settings to default values.\"\r\n },\r\n - \ {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"RemoveRunCommandLinuxExtension\",\r\n \"osType\": \"Linux\",\r\n - \ \"label\": \"Removes the internal RunCommandLinux extension\",\r\n \"description\": - \"Removes RunCommandLinux extension deployed to execute previous RunCommand - operations.\"\r\n },\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"RemoveRunCommandWindowsExtension\",\r\n \"osType\": \"Windows\",\r\n - \ \"label\": \"Removes the internal RunCommandWindows extension\",\r\n - \ \"description\": \"Removes RunCommandWindows extension deployed to execute - previous RunCommand operations.\"\r\n },\r\n {\r\n \"$schema\": - \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"ResetRDPCert\",\r\n \"osType\": \"Windows\",\r\n \"label\": - \"Restore RDP Authentication mode to defaults\",\r\n \"description\": - \"Removes the SSL certificate tied to the RDP listener and restores the RDP - listener security to default. Use this script if you see any issues with the - certificate.\"\r\n },\r\n {\r\n \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"RunPowerShellScript\",\r\n \"osType\": \"Windows\",\r\n - \ \"label\": \"Executes a PowerShell script\",\r\n \"description\": - \"Custom multiline PowerShell script should be defined in script property. - Optional parameters can be set in parameters property.\"\r\n },\r\n {\r\n - \ \"$schema\": \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"RunShellScript\",\r\n \"osType\": \"Linux\",\r\n \"label\": - \"Executes a Linux shell script\",\r\n \"description\": \"Custom multiline - shell script should be defined in script property. Optional parameters can - be set in parameters property.\"\r\n },\r\n {\r\n \"$schema\": - \"http://schema.management.azure.com/schemas/2016-11-17/runcommands.json\",\r\n - \ \"id\": \"SetRDPPort\",\r\n \"osType\": \"Windows\",\r\n \"label\": - \"Set Remote Desktop port\",\r\n \"description\": \"Sets the default - or user specified port number for Remote Desktop connections. Enables firewall - rule for inbound access to the port.\"\r\n }\r\n ]\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/runCommands?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UeXWbnOP3qUfg9/pSl/iOej362ZzvNFRl99NG/b1aO7d+WD8SJbZhf5Il+24+wH6zofT6uFftfc + 3dvZ/XR7d3d798Hder2kb6j1rBn/dFMtPxpZ2MUMYJ8WTTYp8xfPj72vqubN9QoIffTdYjmrrhrv + uzKb5CW+0jfTF3l7VdVv0+f5ZV6mx+t2TlgV06wtgu5meTOtixV/6t5uNr6ebhFed8bp71Ot08W6 + adM6b9qsblNqlP7kF2l23uY1/yGwUxrrqsxbAnteyRfTeba8yNO2StvsbZ7m5+f5tB2nb+grfado + m7w8T2cVvbWsun1I59Nsma4bAjMvGvMegZzJIFLCMi3O01dPXxIGyyX1QMg3aVbn6XlWlMXyIr0q + 2nma1zWh9TE6r/NF1RJ6hPBaBpG16TV1hZfa+hrvUA8KDr/W+S9aF4TcLSg2SidrhlanOoE0vEVW + LAGvrauypB5pTBjuBEgs22za5jN0s8prot0CYxp/nBK6ivTxMs3CruSLedak1XS6rut8JnR9Xk2z + Mn2d02dFe80IVvxbpEfqgjpKiapZ2pg3zvOsJZ4WmjTzal3O0mpZXuNNJTmhmi9WVZ3VBX1OaGdl + WV31ZoC+aNbTaU7t14R4SSAJRJ8U+solei+aZp3zsCZ5vkyJ4lV5SZh+JKz8S5Slfw6EVOfyq9Us + a3Ov0XuJqzZJBQpmh8hBc6of+O/GRbb/ClG1rtYX8w7sn0uKnS6B6vFsUSyPp9OKJt9rcit6CYQ0 + A4iiaeusJWbPerA6NDqZ59O3DZQBOK1kSWAsuiCIzSwvj1IaCN5pqjTnbglC+3NPvtMvXnvfvA/V + wjc7NDJtFnl9kS+n1+kXFm3SGvVlMaXxbxGIO5BfEWxSSaQf6oLIScJKEsk6ZAmhJU1E0kyivCao + pC2qFrqzmRIl66Jqfu7J+IpV/UufIu9DS7UUL6urvH49z8vSa9uh7Em1PC8uCGPmvkU2nRdL+t1w + VR/Uzz1xdPyiMbw270MhbaFqp6+fvFc7BFMAvTeIfsRP/6/SaMU5MTzNrveFo9HzYrl+531jKfSc + 9E66VIdBAKxJD2H4rnWHKJ/n5G8Q/wTN0+ocomhhFUvyWs4zEtWfS6KcvRSW975wRNG5874LyXLG + vgK9rUP0GnYo8npOcNJZ3pIzR65EsSR1BH4hstBvTCwCls1m5Cw0o7RZT4hMJH/NW9bss/w8W5dt + ekEsdJWRf0Pv5CSc9Ea2IjKmE7II5NFU6ZuTl3fPXv5cUpQ8qNd5CxXqE+5WRP1J0s/n1+yDgb75 + kkYWgdWhrVrMOr+gd+pr0vLyhlCOxJKU+6oqC7IT5qtx+np9cUFuemO+IV+SwJHVPCeqi9Yj+7qC + Gw++NXCI7otqVpwXLOEUAShAkN5MEsdizc/pFJCWvsxfrZcn0oyF+/QdEbShQXrN3axwE+8bOycC + iwZIo2WRXZIF7YBO8wjsziwZOIOvEv1WZXVN0kG0zN+RK0+aeFXnl0W19l9LKwowWHSa/zfRWNl6 + M5W1kffdbemsbxJh+vBvpHTv5f/P0ZrkjLTCSV77nvMt6dqQ05yzUiEr7YefJMns26jg+q8PkJRe + T1+/fp5OCRFSAgSHABRCRnyHTkrSQqy5aDyklLh3eTP41saq9KoiME6/6mQISBtRDE5tKYxYamDZ + SCYAAD00fk6nZ710DuFrxtxrc6tZOhUeJJ3t+ZZKBa99Z1pOKKNTLSixU1JkXpDK7r1rgn/E/fk5 + NYHtNd+tarB3ez1Ov2SQJHCk8LMFpX/qBrkGvEach1e8L+xrP7ck52FuoDarV++bGK25DdGIIClR + vBduIrb/Gv3x/0s6k/dBUvuyen+9Q2+mUBukIZ7mzdu2WpGrEYDp0JdeEDVBBIQ2gK9BGUPSFKt8 + SlJOJAWAdLleTOhTuIAd+OSLLiWeJQdHAhNKY1LG7wp+d72mOAVvFUvxFimPQM4m9A96BWxLafz4 + /m+c/JL/BzapzD5dFgAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:05 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -3354,105 +1647,49 @@ interactions: status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/runCommands?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/runCommands?api-version=2021-03-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?$expand=instanceView&api-version=2020-12-01 - response: - body: - string: "{\r\n \"name\": \"virtualmachinexxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"8de6786e-85ad-4cee-9562-c0ea2c8cef7f\",\r\n - \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n - \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": - \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": - \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": - \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk\"\r\n - \ },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": - [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n \"name\": - \"virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": - \"myVM\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": - true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": - {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234\",\"properties\":{\"primary\":true}}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": - \"myVM\",\r\n \"osName\": \"Windows Server 2016 Datacenter\",\r\n \"osVersion\": - \"Microsoft Windows NT 10.0.14393.0\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": - \"2.7.41491.1008\",\r\n \"statuses\": [\r\n {\r\n \"code\": - \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": - \"Ready\",\r\n \"message\": \"GuestAgent is running and processing - the extensions.\",\r\n \"time\": \"2021-04-06T03:16:01+00:00\"\r\n - \ }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n - \ \"type\": \"Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows\",\r\n - \ \"typeHandlerVersion\": \"1.4.1693.1\",\r\n \"status\": - {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": - \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": - \"Plugin enabled (handler name: Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows, - extension name: , version: 1.4.1693.1).\"\r\n }\r\n }\r\n - \ ]\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": - \"myVMosdisk\",\r\n \"statuses\": [\r\n {\r\n \"code\": - \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n - \ \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": - \"2021-04-06T03:12:44.3577807+00:00\"\r\n }\r\n ]\r\n - \ },\r\n {\r\n \"name\": \"virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\",\r\n - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T03:12:44.3577807+00:00\"\r\n - \ }\r\n ]\r\n },\r\n {\r\n \"name\": - \"virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\",\r\n - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T03:12:44.3577807+00:00\"\r\n - \ }\r\n ]\r\n }\r\n ],\r\n \"extensions\": - [\r\n {\r\n \"name\": \"virtualmachineextensionxxx9a731234\",\r\n - \ \"type\": \"Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows\",\r\n - \ \"typeHandlerVersion\": \"1.4.1693.1\",\r\n \"statuses\": - [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"message\": \"Plugin enabled (handler name: - Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows, extension name: - , version: 1.4.1693.1).\"\r\n }\r\n ]\r\n }\r\n - \ ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n - \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": - \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n - \ \"time\": \"2021-04-06T03:15:48.2330209+00:00\"\r\n },\r\n - \ {\r\n \"code\": \"PowerState/running\",\r\n \"level\": - \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n }\r\n - \ ]\r\n }\r\n },\r\n \"resources\": [\r\n {\r\n \"name\": - \"virtualmachineextensionxxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": - \"eastus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": - true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"publisher\": - \"Microsoft.Azure.NetworkWatcher\",\r\n \"type\": \"NetworkWatcherAgentWindows\",\r\n - \ \"typeHandlerVersion\": \"1.4\"\r\n }\r\n }\r\n ]\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UfLbJF/9Cj96LKo23VWLrLpvFjm7969e5g9uLe7d2//oxG3K2ZodbdZT5ppXazaolo2d3cmu+ef + 7j/Y3d6dnO9s789m2XaWT+9tTycP9x7sne88vP9w526dN9W6nuaf19V61dytL1bX2/ufPiir+5PF + vCqW2U9f/qC62FssLrMHq+x+W7xd/PTk3U9f7U2z++WDsl7fv36w+MFP/3R5ea94cP9B8Wn7trl/ + /6fbe+f36vvT1d1VXV0Ws7xu7n5RTOuqqc7b8Um1WK3b/K6O6gsZVWP+Hhxle71iatwISduX1TQD + KfBOnjXt2nxBSK3yui2o5aOUKU0fXi7OmIr3Z3ufTnfuT7bv5ffy7f0H96fb2f7sYPsgnx482NvL + aZT3BQ69NM/q2VVW5y/r6rwogZ2Co+8uF6+LH+Cjj1632XJGLX//p3u//+XeR9LilxgYTVvV2UUU + RLGgL17l53mdL6fBV/Tlaj0pi2ae1/S5o8l3i+Wsumpe5/UlfaN94PmoOic4aDvcpHm7RoO9nd1P + t59mbTbNl22nCb3SKE3LrM2bNvg2f5dN2590TXb37z28N97f39kb7+3u3N+5T/8eKAEcCejFqnla + NG/pFX+EVfNGp1xRDvoywrG4/skvqmaG1/2vp3VO+H3JwoBmz+pqcQZ6hq2YZS7Q4FWezb5bF23Y + YJEt6Z1ZHzv6TmfueDqt1svW4Gpn+/mr1z4oeuH/m3IK0jZ3PTK7MbkZpNHhO7D8509olLt7D4Lv + 8jL3Z+NpTtw1t5AcnI9mxHegNmTze+bTtEP5cg0oO/YtPJYhVBv09cjvDwz3fv+d89nu+d6nk4Pd + B/f270/OH+7v7e0ePJjt7N7/NH+wu9OZtC4jnS5W7XW3DffFbPSiWgYcRN9u4CH69n25iF75/zIf + ffDs+LRwfIOnw4E7e/fCr9vqSS6Ml4OA51nZ5GGLG9g07DCYSGXJXe97+vB2LHnv99//dJpN7s/u + 7++c39s/380OZjvT/N7s3mx/Mts92NsNOeBHLPnDZMlbzI5PC59DiC6A8LPMkubX78svBgEynzGf + YipDr18oa0Kvu9n8KJstiuVXTV4b1oWNX9PfXpsrscYn1fK8uFjXxsmyfVATJjq8gJ/84viCvAj6 + uq3X/tA+ypfZpMyP1221IAjTr1ak+dkj6zZcZe10/jpvW2JnfO/1Y779opoxshbak+svOzz6UdY0 + edMsCBnTmt2Bp/l5ti7bGEENJenlJieZa9H7977vPs3Ksro6fdfmSwz1S3IqqW9ifGoWDOKjOv9F + 66LOP18TMWlShDSvi4tlVmpbaWp6/GiZt1dV/Zbamgk0H53BJTsn14x6+d4vZrn7/4zYvZAh3O0N + 5W5hfvWk76MR2IiIKp76L6a/yCGurz96BIL9kl/yfUstaiYkJQ4hLUUuHM3u6/V0muczkiu0krY0 + ETJqgme8C8tOA9o6N/MboGZfwgT8f0/x6RBNxGT+1iF7I71rh99tZL/wWnt0uXW05vXgvT4UvOHB + fFu2cPNHX2Qk/1+tLupsln9RLKvahSJgGQuAWhKITSwTNI0GWuPjH6zr3LD0d6GFqIX/nqFA2ITV + YSyeQfNvk4Utcw/tj3bH+8y/eFQx8Q9S9r/k/wHpHKeRJRAAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:06 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -3460,66 +1697,52 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3990,Microsoft.Compute/LowCostGet30Min;31990 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3990,Microsoft.Compute/LowCostGet30Min;31943 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?$expand=instanceView&api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines?api-version=2020-12-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"virtualmachinexxx9a731234\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": - \"eastus\",\r\n \"properties\": {\r\n \"vmId\": \"8de6786e-85ad-4cee-9562-c0ea2c8cef7f\",\r\n - \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n - \ },\r\n \"storageProfile\": {\r\n \"imageReference\": - {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": - \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": - \"latest\",\r\n \"exactVersion\": \"14393.4283.2103051830\"\r\n - \ },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n - \ \"name\": \"myVMosdisk\",\r\n \"createOption\": \"FromImage\",\r\n - \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n - \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk\"\r\n - \ },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": - [\r\n {\r\n \"lun\": 0,\r\n \"name\": - \"virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": - \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n - \ \"name\": \"virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": - \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n }\r\n ]\r\n },\r\n \"osProfile\": - {\r\n \"computerName\": \"myVM\",\r\n \"adminUsername\": - \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": - true,\r\n \"enableAutomaticUpdates\": true,\r\n \"patchSettings\": - {\r\n \"patchMode\": \"AutomaticByOS\"\r\n }\r\n },\r\n - \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n - \ \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": - {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234\",\"properties\":{\"primary\":true}}]},\r\n - \ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\": - [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234\"\r\n - \ }\r\n ]\r\n }\r\n ]\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UeXWbnOP3qUfg9/pSl/iOejZbbA5x9dFnW7zspFNp0Xy/zdu3cPswf3dvfu7X80sm2LGVrebdaT + ZloXq7aols3dncnu+af7D3a3dyfnO9v7s1m2neXTe9vTycO9B3vnOw/vP9y5W+dNta6n+ed1tV41 + d+uL1fX2/qcPyur+ZDGvimX205c/qC72FovL7MEqu98Wbxc/PXn301d70+x++aCs1/evHyx+8NM/ + XV7eKx7cf1B82r5t7t//6fbe+b36/nR1d1VXl8Usr5u7XxTTumqq83Z8Ui1W6za/qyP7QkbWmL83 + jrS9XjFVboTmvVNW0wwkwXt51rRr/0tCcJXXbUFvPHLUpy8uF2dM1fuzvU+nO/cn2/fye/n2/oP7 + 0+1sf3awfZBPDx7s7eU06vsOHr04z+rZVVbnL+vqvCiBrQeWvr9cvC5+gI8/et1myxm1/v2f7v3+ + l3sfuVa/xIfXtFWdXQyCKxb05av8PK/z5bT3NTVYrSdl0czzmr5zdPtusZxVV83rvL6kb7z+8HxU + nRM8tN/crHm7RqO9nd1Pt59mbTbNl22kGb3aKP3LrM2bttcif5dN2590zXb37z28N97f39kb7+3u + 3N+5T/8eeAQKSUQAquZp0bylV7ujr5o3yjI6lF7fRtAW1z/5RdXMAKbbZFrnhPeXLFho+qyuFmeg + e78ls98FGr3Ks9l366LtN1pkS3p3FseYvtcZP55Oq/WyNfhbbnn+6nUXJL30/00dAHI3dz3Sh+MK + Z5lGiTYQn8+f0Gh39x70vs/L3J+ppzlx5TyAGsL8aEZ8i5mA/KsSNk9/Zso1oO4EEPBYJlIt1Ndh + vz8w3/v9d85nu+d7n04Odh/c278/OX+4v7e3e/BgtrN7/9P8we5OZGK7zHe6WLXXsXbcJ7Pei2rZ + 4zpqcQPfUYuvw3n02v+Xee+DZ6xLj5C/8HS4dmfvXr9JWz3JhVlzEPM8K5u83+oW7N1HoDfRysa7 + nXb0xe3Y+N7vv//pNJvcn93f3zm/t3++mx3Mdqb5vdm92f5ktnuwt9vnkh+x8c8lG99ixrr06HIR + 0QeQfohs7P/5ffeHjxiZ9yG/aCrkqV8oS8PGhLP+UTZbFMuvmrw2bA/fZE1/d9pdiedwUi3Pi4t1 + bZzJoD9qxpMED+Ynvzi+IE+ImrT1ujv8j/JlNinz43VbLQjS9KsVWSD2PmONV1k7nb/O25ZEAm06 + fZoWX1QzHoCF+uT6ywiPf5Q1Td40C0LOvMFuzNP8PFuX7aYJ8KlOgJqc5LkFRt/7fvhNVpbV1em7 + Nl+CFF+Sc034kCBR094AP6rzX7Qu6vzzNRGeJlLI97q4WGaltnfNfQw+WubtVVW/pXfM5JuPzuCC + npMrSj1+7xezTP9/RqRfyBDu9oZytzC/epL90QgsRwSW6OUX018UDNTXHz0C4X7JL/l+QDFqKuQl + TiJNSG4pzf7r9XSa5zOSVdPSvUOTIxQg2L5nFLAg0/f/ezpTtaUJFs3ffe15Nzec3G1kv/BaWyoS + Hc2vqrn4b/r9l/w/Xih13/cPAAA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:06 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -3531,143 +1754,222 @@ interactions: status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines?api-version=2021-03-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/virtualMachines?api-version=2020-12-01 - response: - body: - string: '{"value":[{"name":"virtualmachinexxx9a731234","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-H5FONMQM77TECPRFFH3FOPVX4ETICL7WNFBB63OSFTMOETIGEMUDIVCWQZW22MPJV2B2GWERZCB/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234","type":"Microsoft.Compute/virtualMachines","location":"eastus","properties":{"vmId":"8de6786e-85ad-4cee-9562-c0ea2c8cef7f","hardwareProfile":{"vmSize":"Standard_D2_v2"},"storageProfile":{"imageReference":{"publisher":"MicrosoftWindowsServer","offer":"WindowsServer","sku":"2016-Datacenter","version":"latest","exactVersion":"14393.4283.2103051830"},"osDisk":{"osType":"Windows","name":"myVMosdisk","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk"},"diskSizeGB":127},"dataDisks":[{"lun":0,"name":"virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13","createOption":"Empty","caching":"None","managedDisk":{"storageAccountType":"Standard_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13"},"diskSizeGB":1023,"toBeDetached":false},{"lun":1,"name":"virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf","createOption":"Empty","caching":"None","managedDisk":{"storageAccountType":"Standard_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf"},"diskSizeGB":1023,"toBeDetached":false}]},"osProfile":{"computerName":"myVM","adminUsername":"testuser","windowsConfiguration":{"provisionVMAgent":true,"enableAutomaticUpdates":true,"patchSettings":{"patchMode":"AutomaticByOS"}},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234","properties":{"primary":true}}]},"provisioningState":"Succeeded"},"resources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-H5FONMQM77TECPRFFH3FOPVX4ETICL7WNFBB63OSFTMOETIGEMUDIVCWQZW22MPJV2B2GWERZCB/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234"}]},{"name":"vm2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ZXF-TEST/providers/Microsoft.Compute/virtualMachines/vm2","type":"Microsoft.Compute/virtualMachines","location":"eastus","tags":{},"properties":{"vmId":"f92da757-75f5-4979-b76d-7e95a287b224","hardwareProfile":{"vmSize":"Standard_DS1_v2"},"storageProfile":{"imageReference":{"publisher":"OpenLogic","offer":"CentOS","sku":"7.5","version":"latest","exactVersion":"7.5.201808150"},"osDisk":{"osType":"Linux","name":"vm2_OsDisk_1_8d9e27f1fb0f480cb7590e508b38fb68","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zxf-test/providers/Microsoft.Compute/disks/vm2_OsDisk_1_8d9e27f1fb0f480cb7590e508b38fb68"},"diskSizeGB":30},"dataDisks":[]},"osProfile":{"computerName":"vm2","adminUsername":"azureuser","linuxConfiguration":{"disablePasswordAuthentication":false,"provisionVMAgent":true,"patchSettings":{"patchMode":"ImageDefault"}},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zxf-test/providers/Microsoft.Network/networkInterfaces/vm2VMNic"}]},"provisioningState":"Succeeded"}},{"name":"vm3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ZXF-TEST/providers/Microsoft.Compute/virtualMachines/vm3","type":"Microsoft.Compute/virtualMachines","location":"eastus","tags":{},"properties":{"vmId":"bfb29420-33c3-4459-8e52-570368569a5a","hardwareProfile":{"vmSize":"Standard_DS1_v2"},"storageProfile":{"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest","exactVersion":"18.04.202103250"},"osDisk":{"osType":"Linux","name":"vm3_disk1_92168d67052f42808a2de2564e3d9805","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zxf-test/providers/Microsoft.Compute/disks/vm3_disk1_92168d67052f42808a2de2564e3d9805"},"diskSizeGB":30},"dataDisks":[]},"osProfile":{"computerName":"vm3","adminUsername":"azureuser","linuxConfiguration":{"disablePasswordAuthentication":false,"provisionVMAgent":true,"patchSettings":{"patchMode":"ImageDefault"}},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zxf-test/providers/Microsoft.Network/networkInterfaces/vm3VMNic"}]},"provisioningState":"Succeeded"}},{"name":"vm1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FYTEST2/providers/Microsoft.Compute/virtualMachines/vm1","type":"Microsoft.Compute/virtualMachines","location":"westus","tags":{},"properties":{"vmId":"e5ad9c48-4154-4035-9208-81ffc5a86654","hardwareProfile":{"vmSize":"Standard_B1s"},"storageProfile":{"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest","exactVersion":"18.04.202003250"},"osDisk":{"osType":"Linux","name":"vm1_disk1_acf86aae49414fe8b70f669510e33728","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FYTEST2/providers/Microsoft.Compute/disks/vm1_disk1_acf86aae49414fe8b70f669510e33728"}},"dataDisks":[]},"osProfile":{"computerName":"vm1","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj - fey@DESKTOP-ARGPJS4\n"}]},"provisionVMAgent":true,"patchSettings":{"patchMode":"ImageDefault"}},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest2/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]},"provisioningState":"Succeeded"}},{"name":"jiasli-ubuntu","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/JIASLI-CLI-DEV/providers/Microsoft.Compute/virtualMachines/jiasli-ubuntu","type":"Microsoft.Compute/virtualMachines","location":"westus","identity":{"type":"SystemAssigned","principalId":"fd3e7311-1900-46c5-b360-627e449242f9","tenantId":"00000000-0000-0000-0000-000000000000"},"properties":{"vmId":"26fec7fa-af01-4e17-86f3-c56039be846a","hardwareProfile":{"vmSize":"Standard_D4as_v4"},"storageProfile":{"osDisk":{"osType":"Linux","name":"jiasli-ubuntu_disk1_0912e54b68004f3793648af1525ee633","createOption":"Attach","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiasli-cli-dev/providers/Microsoft.Compute/disks/jiasli-ubuntu_disk1_0912e54b68004f3793648af1525ee633"},"diskSizeGB":30},"dataDisks":[]},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiasli-cli-dev/providers/Microsoft.Network/networkInterfaces/jiasli-ubuntu151"}]},"provisioningState":"Succeeded"}},{"name":"yswin","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/YISHITEST/providers/Microsoft.Compute/virtualMachines/yswin","type":"Microsoft.Compute/virtualMachines","location":"westus","properties":{"vmId":"a8eff2be-87bc-47a1-8238-b619a1a49c06","hardwareProfile":{"vmSize":"Standard_D2s_v3"},"storageProfile":{"imageReference":{"publisher":"MicrosoftWindowsDesktop","offer":"Windows-10","sku":"rs5-pro","version":"latest","exactVersion":"17763.1577.2011031610"},"osDisk":{"osType":"Windows","name":"yswin_disk1_37ea16f17fcd4820b18149bf1a3a4785","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.Compute/disks/yswin_disk1_37ea16f17fcd4820b18149bf1a3a4785"}},"dataDisks":[]},"osProfile":{"computerName":"yswin","adminUsername":"yswang","windowsConfiguration":{"provisionVMAgent":true,"enableAutomaticUpdates":true,"patchSettings":{"patchMode":"AutomaticByOS"}},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.Network/networkInterfaces/yswin170"}]},"diagnosticsProfile":{"bootDiagnostics":{"enabled":true}},"licenseType":"Windows_Client","provisioningState":"Succeeded"}},{"name":"veerCrossTenantVM-2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ZHOXING-TEST/providers/Microsoft.Compute/virtualMachines/veerCrossTenantVM-2","type":"Microsoft.Compute/virtualMachines","location":"westus","tags":{},"properties":{"vmId":"05f24a50-98b4-4e26-b9e1-62cf45c1591b","hardwareProfile":{"vmSize":"Standard_DS1_v2"},"storageProfile":{"imageReference":{"id":"/subscriptions/1c638cf4-608f-4ee6-b680-c329e824c3a8/resourceGroups/zhoxing-test/providers/Microsoft.Compute/galleries/zhoxing/images/zhoxing/versions/1.1.2","exactVersion":"1.1.2"},"osDisk":{"osType":"Linux","name":"clivmDisk","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Compute/disks/clivmDisk"},"diskSizeGB":30},"dataDisks":[]},"osProfile":{"computerName":"veerCrossTenantVM-2","adminUsername":"clitest1","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/clitest1/.ssh/authorized_keys","keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQC86Jgk+Wp0JneEvsoZMG3PIL/zMJIbuY+r3xakXOZ8thq9gOQVgxSLdwUELhPy1iekWGsoGrvQIMEb22upTPG/9VaulCAVXfZnIetNUlId5DNAxOiyvOMEIqhPuxIOce0KKeGnCMkfPGzXrT3hqg8mSU8xW4cDNKJGikpPLMTX+O8V0QptnO5n7E4vH3zPOWuH9Xf0D2uTc6Z8JUFIljy1LfmvJkAitEsPWBott4k4JtxueODbNB+RaQT/p4FUGcxKMObAgQw0jJWKoZTylQOi0xtOOBKAS19+bXwo8AMOoUOB+8CHDX+3okZI3thHN7C1oL7qm6pfHdgvNrt1sPFl"}]},"provisionVMAgent":true,"patchSettings":{"patchMode":"ImageDefault"}},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Network/networkInterfaces/zhoxing"}]},"provisioningState":"Succeeded"}},{"name":"jl-vm","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/JL-VM-SSH/providers/Microsoft.Compute/virtualMachines/jl-vm","type":"Microsoft.Compute/virtualMachines","location":"centralus","identity":{"type":"SystemAssigned","principalId":"4ce06159-b8da-462c-ab20-38cba2411ec6","tenantId":"00000000-0000-0000-0000-000000000000"},"properties":{"vmId":"eabf35d8-aa08-4416-afee-f4c510904eb5","hardwareProfile":{"vmSize":"Standard_D2s_v3"},"storageProfile":{"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest","exactVersion":"18.04.202103250"},"osDisk":{"osType":"Linux","name":"jl-vm_disk1_7ecd838af3c84a999275b4fab3990779","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jl-vm-ssh/providers/Microsoft.Compute/disks/jl-vm_disk1_7ecd838af3c84a999275b4fab3990779"},"diskSizeGB":30},"dataDisks":[]},"osProfile":{"computerName":"jl-vm","adminUsername":"azureuser","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/azureuser/.ssh/authorized_keys","keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDBLM3tteSR8hfG14o5pCAo/bqSyvOUCwH/tq9oAMAsoo12zX5Vnu00kCAmKGch5HBY4UtLwkG9E7LxA3cNXr2DGAkI4cy4Jeg81YlAHnFX/dEsS32Ko8Ku0pzAky9QctqNVbg/UUo4sjEDRsLjdzEJLbDK7HkqopW7tvj0u0B1U/P283MzjXDyEJh7heIfYaAFklYA0zGF2znk0dflRPG9p5OXpTFdJKo8ZRYVlRTbidSN4PJWEh8Fl1R4NvH93egaUrL/eX9diU9hn5mu5maLvY34AIo8BrF4I3MEn4H51+9qh1bfODXbsXrsjBOmZRaCny5h7U05U+NX3WUpjWZ5 - fareast\\jiasli@DESKTOP-37TQVO0\n"}]},"provisionVMAgent":true,"patchSettings":{"patchMode":"ImageDefault"}},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jl-vm-ssh/providers/Microsoft.Network/networkInterfaces/jl-vm370"}]},"provisioningState":"Succeeded"},"resources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/JL-VM-SSH/providers/Microsoft.Compute/virtualMachines/jl-vm/extensions/AADLoginForLinux"}]},{"name":"vm1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FYVM/providers/Microsoft.Compute/virtualMachines/vm1","type":"Microsoft.Compute/virtualMachines","location":"eastasia","tags":{},"properties":{"vmId":"9d81a31c-cbcd-42ff-84ff-2eea3f5d949d","hardwareProfile":{"vmSize":"Standard_DS1_v2"},"storageProfile":{"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest","exactVersion":"18.04.202007290"},"osDisk":{"osType":"Linux","name":"vm1_OsDisk_1_53a437614cfa458fa68ab0c7b28f5765","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FYVM/providers/Microsoft.Compute/disks/vm1_OsDisk_1_53a437614cfa458fa68ab0c7b28f5765"}},"dataDisks":[]},"osProfile":{"computerName":"vm1","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj - fey@DESKTOP-ARGPJS4\n"}]},"provisionVMAgent":true,"patchSettings":{"patchMode":"ImageDefault"}},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fyvm/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]},"provisioningState":"Succeeded"},"resources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/FYVM/providers/Microsoft.Compute/virtualMachines/vm1/extensions/AzureNetworkWatcherExtension"}]},{"name":"jlwin","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/JIASLI-CLI-DEV/providers/Microsoft.Compute/virtualMachines/jlwin","type":"Microsoft.Compute/virtualMachines","location":"westus2","identity":{"type":"SystemAssigned, - UserAssigned","principalId":"ae4cc216-0356-433e-8c5b-24f030ebff42","tenantId":"00000000-0000-0000-0000-000000000000","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/jiasli-cli-dev/providers/microsoft.managedidentity/userassignedidentities/jlid1":{"principalId":"2fdcd421-c744-440d-b253-3daf68c697eb","clientId":"da95e381-d7ab-4fdc-8047-2457909c723b"}}},"properties":{"vmId":"eee26d47-ba9b-410e-9002-1780170580a8","hardwareProfile":{"vmSize":"Standard_D4as_v4"},"storageProfile":{"osDisk":{"osType":"Windows","name":"jlwin_disk1_ff04c21eae1b4981963fae4387b0d03a","createOption":"Attach","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiasli-cli-dev/providers/Microsoft.Compute/disks/jlwin_disk1_ff04c21eae1b4981963fae4387b0d03a"},"diskSizeGB":127},"dataDisks":[]},"networkProfile":{"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jiasli-cli-dev/providers/Microsoft.Network/networkInterfaces/jlwin846"}]},"provisioningState":"Succeeded"},"resources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/JIASLI-CLI-DEV/providers/Microsoft.Compute/virtualMachines/jlwin/extensions/MDE.Windows"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/JIASLI-CLI-DEV/providers/Microsoft.Compute/virtualMachines/jlwin/extensions/MicrosoftMonitoringAgent"}]}]}' + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/virtualMachines?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ + uc4/evS9X/zRMlvQLx9dLj4afVTM6Le7zXrSTOti1RbVsrm7M9k9/3T/we727uR8Z3t/Nsu2s3x6 + b3s6ebj3YO985+H9hzt367yp1vU0/7yu1qvm7he/z6vP767q6rKY5TX9WUzrqqnO2/FJtVit2/zu + ZVG366z8IpvOi2Xe3OXe2+sVMLmxNTUtq2kG9Kh5njXtGp+12UXz0aNf/EtGH1HPq7xuC2r6iIa6 + OMOw7s/ufbo//XRn+9Pp/qfb+59+Otk+2M1n23t70wfT2WRvdzq5T1DmWT27yur8ZV2dFyXhAwCv + ix/Qbx+9brPljL7//Z++3v39L/c+oq6atqqzC791saC/X+XneZ0vp/zJaj0pi2ae1wTiJFtWy2Ka + ldRVdU6N6LOvJutlu36d15f0J4F8u6YPdw/GO/vbz9+8pk/o80YGW2Zt3rT0Uf4um7Y/aT/n1uO9 + nb3dnfu7ezvArGqeFs1b9F81b4Syz4vl+h29bKf8959Rk93ff39KtJntTc8fnN/b379/cLAzybNP + 84N79M/k0/sTemVa59T1l8wT9OqzulqcYaD4iqflgj59lWez79ZFi08X2ZK+nhkclE7H02lFg1V8 + Xtb5olgvfv/nrzDKb4r5Ftf1xUbmw6DBcrcdPRETLcEEnz/56NG9Hfo7L3OPHE/zlojADbM2w5iJ + 80i2yjV9S81Dgu/9/g/PP334aTa5N9u/92D/wfThJNs72JvM9qcHD/cOpvfuETU6BD9drNprfEz9 + CLFfVMv/L9H5FoMG+ailofMuEa6tnuRC3JywPs/KJqdGceJ/n96vGk8Sp4JH/cJQnwafzRbF8qsm + r3VKpiWxa9Pu0lclpOOkWp4XF+tatcsvBkbZpMxfZk1zVdWz43U7z5ctSbA0aOs1YdQ0c7RlQZ/+ + Xvm1zP4qa+njj+7Oq0V+13R0d0yN72YEpqppoLPf/y2ajz6iH0+Jd6g9fb9dN1l6TM+Tey9+kJ3s + Xk/3Tumv46fHP3H8hH4+Of6Jp/Pii0+uHhy3P33vk3cvXtz/qfIHky/eNpPvvn558uyns+kvqme/ + 12T+i74qXz9oj1+/zj45/+m9n/hFq/Od79ZfXjz45Mvny6dPvv2i/EWf7vyib//eP3X/3uxddffy + 2cPV0/urxbvnZ+ftp3d/+vzi3re/U3/S7pX52f2D33v/F33y4mzny+Ld05988J1ftP9Tb+5P7v7E + ND//9n798NOnb9bffrW+/r1fPXn56e+9893z7757MG8Wi9fXnx//4PfZOcv3s8ufevb83vPddw/q + 9e/Vfqe993r65gffXhx8/uXrV5/s7F//1E/O97+dF+3TF59Mf59PzrPzHzxrX12s6pcn85/64ur3 + fnH34t4P9prL+093v12ffOfg6fqTH/zEcfWDr77zdDW7Ot65d+9FVa4XX5UHx7/o97789M2z4738 + 99mdnr76yeXJbPX2bP3y8ic+P3v+3d3v/tTFL1q8+r1eP3nznRcPli9nv6i8/+nTg6uf/PxpsayF + i5ipoVl/8ovjC5ptM800odP567xtSQJpinmGp/Mvqhk4idXh0/w8W5dQ0MQvedMs6O3Y97+Eemly + kvGW4Hzv+9S8LKur03dtvkS/X5L5Ygajb6XrOv9F66LOP18TDxGLC3qvi4slWRJuQgCXeUss+pa+ + NhKgn5wtSQrOsynsIfHlz7oCeCHd3u11T8rgJ794UUw7ZCZykmkls0Emdj2d5vmMpJ1IRAMQKVUH + YEFyTg7Au3fvHmYP7u3u3dsnQn9To3n1+cvfh9yCB8+/vP/ki29/efbi+Ds/+VNffr73xRc/efzg + 5fH9N2e/1xffefJ7f+e7eyfH958/eP7qq/u/z4Mvfuo733n+k/fOHtx/cPbpm9/r9f3733lz79m9 + V/dPXkYpY1SjDsh4NObv6AA/0C0iNIibes7Q3qfTnfuT7Xv5vXx7/8H96Xa2PzvYPsinBw/29nIa + z+2dob2v6QvZEX23WM6qq8Z6QMYx6n4untHezu6n29CVUxIu/py+BRvRd4P+0f69h/fG+/s7e2O4 + SDv36d8D4BzxkrRXAqLct7j+yS+qhgzBW/qMZJb6sMbnm3GELC2/WQtdX6yuwdJldX+ymFfFMvvp + yx9UF3uLxWX2YJXdb4u3i5+evPvpq71pdr98UNbr+9cPFj/46Z8uL+8VxALFp+3b5v79n27vnd+r + 709XG1ka9IFOsLQi6uIn2IXN+d4D+iBuuukLmk+QiJiUNFTXbxJG70uHehY757Pd871PJwe7D+7t + 35+cP9zf29s9eDDb2b3/af5gd4dI2pm2D3Kn/v8zWx9MWMwctbRzvLN3jxTWezhtpON5sndvOdn3 + fv/9T6fZ5P7s/v4Ouevnu9nBbGea35uRWzmZ7R7swZP70WS//2TfgrAfPNkw+ps8dCgPonHXR4dK + X9Of9NWV6Oael86jh67veGz5Es47Oe3VgtpOv1qRnoEhlG/ZfRvy5+xLT66/xMz/PHDofihMOewc + FuZXjzeJ8ASEqGccmFVNTkV9rTRilqIGQj6aRhJXsroktmvrR4LWMkwC8A1S6/+dDuPd3PBct5H9 + wmvNMklsJYJ2uYD2/Kbo8+z3eXP6+s3e+w2LMfh6Hu8VSRJ7vDckAvP72ezhdP9ge3/3/v72/s69 + +9sP93bI9909P5/ezw4+/fQ+2O5Wvu+T3QYMppbDa0pMusHz/dnOAu7s3Nu7z9Y54t/2soC7bAB2 + f/9sen7waZbl+w/3d/fP84PJg53zTz99eH93J79378HeAb1DCo76tor9vb3fHyZvYVDMUbcdHnQ4 + 2Qfrh5JoENW8Se2YKwJNI+xaq/McvsbPbjKJ+vjG8kiLH/ze+e/1ySfP93bWX/xed7+6uH+1+unl + d797/UX57Sqfnn757vrb6/zb092Ll09/+uAXXTw/mRffbne//O53dpunP138oiff+WR+enr1U89/ + +sVBebL46vK7P/hBXe7tzB58cffJT652859el6d3f1A/fPjw7XfXv8+9xf1Pnq2O304m7/IvHz7/ + bpWdX31Z1A9nL39w9uVPP/189vK7v9fk4tv1PRKEL799vL78ydnv/Z2n8+9+u/3u/fLJ3S9Ol/W7 + Yv/g5Q/uHrzdLZ/u/j7T6VfHZ5/+4OnF7/WT33n55PTtw/PvfvHdg2/vzH+v36d59Xsvynez9mJv + uXryE7/Xg7eTxfTJ3ovvvDydv/nJi3c/+fIXvc6e/OQxpbe+PDm5+xM/cXn8e0+rpzvldz5f//Rq + 9+wnf59f9PqrrH59/9Wy/n1On/7Uw5/49PT3mq2/W7/c+fzZW/rv4Pf5wepZ/smTV8+ynzyYPP9O + fflTL/bvXV784NVPpzRDv+fT09e/15svX24fk6X4zuv933fJ2hZKScxVx1ehGR72RljKjLNBTPf/ + f2fk/BpKLi7iwz4EyeTXyjD9dJE1ZbG9ZiVMBP6mRvGds+PXz8+2T+j/T09/MjoYo686xu1uF6UP + tIrULakaCoRo5hTU6+umzRfHTUMzTfQAvYrltFhlJRvK89m9nNwEGu/DHRrvp9P725N7WEDbe5Dv + 7z/c2987f0gvEVdly5bfuL9/QNHi3t72vYMZrbGdT/a2J2RstycPJg/vZffyh2RfYZWIDMSDHbu8 + 9+l5Pn1wTkQ939nd3s93H2wffHpO5L3/6c69h5P8YP/TjLq7lV1+up81v/8luTckCD3bfLNNDEiv + 5mPn4e5efn9/8unBzs7++b0HD2k58SA7372/dz/PP6XlCzKBoXU8bjnsoc/pB3EgfbTBNCqeYfT5 + s7Nyo8OjJYntWX65kSkxdvvC+9GDaI+WmBqEi/d28AGZJgyY5p3NqwqwNzn6iRNpavnNKRUdyKaR + D+sWfVmosHufAmIMgWHcTseU27wG9U0N5jvPt3/yi+3Xr78dHYeZwY52uAssgIXqgBtfoKaeOkHO + tc7Kr6lR9qf5zqe790khHNAA9z/do7TzZG+H1MWUVgP3d3fz6af00jelUfJscn7vPqW1s4z8+/19 + yhtn53m+fb4/Ja/v4c5+/h5L/nukUJipVVC91j+3zv7uezj7PPkqwA/y6ezg3kF2fm96sJ+Rf7b3 + 4P5k/5xWaB8+3HnwAKq9o9De291XUv1QdBpGtk0+70ZhwMi17W2pQHRFS/DDoBrbFCVwZzTQbpyQ + /WBd55rW+tmNFmxP31jM8OT5F/faNn/96mB+/vnufnV/dXJc3Z38otfXl19+dXL17bvtL3pYHX9x + 3FTV7t4Pfu/7P7lc7+y8PTle/F6fT+f3v/3k99n/qn1+9fbzh6cPnr87vjd98XvXe08/P357tj+9 + 3v9OfnGw+/uUx99ePvu9785Om9f39n6v6uD3Wu+sfnD89vrhT0zbX/TiJycXd7/6qtpvfvr06avm + +U/PfnD6neeTp7/Xg2+//UXV6rsP2suf3lnvPNn96u7LvYN7X/zgp3/vp9en35k/mOdn579Pdvzs + bfn7HO/84PNnez9Yvt2ZnZevXn7+cHX/y9979ebZ7DvU20+9+n1+snz1ZlLMXr/Yf/md757OD56V + u6/2X1x+++G9/CL7qn5+N/+9H86Krx7Ol/cX6/uL7Pnl73Nv//isOnhSP9s/u0eRyv637+9+8vAX + zYmLv3z6e0+a37tufvrJl4ufepWdLK/vzx98tXP/q09e/N73vvvV6qe/+1P303PSQVnT/r6/rxga + Gz/ce/DmJ37yy50fxQ/foELYYOXx3r0HpFADYhNRyRaQkiObsLbWHUOXXr9Z5D/AtPsJQJLa59VF + sXxW1WIIMCYivGggipWIFb4plJ/9Pj/5xXthK92r43Bjc2rquSGQk6wpEA/ckO17ODvYze7tTgn3 + 6WybQpbz7YN9+mcvz7N75/dnD/cfwk+5nQ/wevdrLnX/bPsAOzsP9h4SyxL0G30Aovvv/yW3+v13 + f//797L9ew8+3d2fnmf79w/Os08PssnO9MFk7+D8/oNP4R6RHqDuv2TWoNff2wn4oTEY2Usy7u83 + PKi697HmBJ1G2LXllO2hT392rTj18Y3Z7x/l/H6U8/t/o80+vyb7xbTqiPiwuSaBvH3CD6OWDr9Z + vG9UTR1jBqwDOw0PXcf4XXBAXtuZ44ER4UXT/HRJS+DEDN8U5h+Sn1RUvp4Fl7zkHn1I/ZE+3JBG + GKVQteYveiNMKtCKznS6R7H9zr37lCK4dy/fPpjen2zv7Z/v3NvJJ+fn++iGyPleSYXRRwiZTK9n + gqT6Fnc/gPAXQnjx8SOZqIWlo9pR+hhdX98FPqQEGB/9kPCheShmu8AqJMve+Ww629/b3Z4+2Kdl + zv2d2fZk7/697Xuz7PzTg+mnDx/kExokIUCQ+I1Z9vB+fu9gd3v2IJsQWWbT7YOd/QdEyPsPHu48 + nD7YuzchPUNSRNiSPkHv6Fc9rTzP9z6dUftJ9pBep2W1bcob723vPjjY2X2wc/9gJ8MS4u08rffM + 3363WM6qK7CYLyca4p+f7+wTg+RZvjvZf3iw+/DTe+fENPcOHkx2Zjv3MNWkN0lZfMnzSW///yhz + +z50IGqjJSYDqY7dvQf4hDwLjJSmmr0jVcHefOgnTilTy29Ot95iyKo5I9aBh08LB6xEwbY/F9bh + Q3Wsbym+eHo6NswOs/D/ShzNK18QpUk2iNri9GASiF1EQsFpq6pCyDqvmnY72975BgXli9cvf38a + zJvT129+r69+7+8e33vw+v7v//Ts9e/18ssvn5/85Nnz3/vsJ1///qfHr9989Xrv9Kvjl+815Dju + arxufJ2aeoYQoSwZwnydregLjWY/Av5P1kU5c8EehXm7O/f37m3vkmUg+1iPH+zO7t/bnz2g99D+ + 6csvsp+uavfG5d7v/5T6/UmkH7VBsfQbcMRIA+8r8539h/v3p9ne9j6lR+mfT4nms/zT7RklR/f3 + 7lFUvYMh306Z735Kypxz59lsRkarIh/zJFtlk6Kkv6Rf8mHr7PXrp6dLREuEgrqgqly9Dn5uI22a + gt09plvEDHUi7QibuNA029nNHu5+Oj3f3Znu55/uHVB0uv+AF1XPJw9mbJtDq/TekbfS7odhmMBe + pKJBvLfrd1fZvQfNfTY7GP/0sijfFZfN7+/x+kZ5w4tRKXsP8tEMAQCYEcbs3g79nZe5R8+nOVt5 + NPRs3C/+qFzTt9Tcm8Xz+5d703OiV2dKIo7Ci2r5czsV3Wm4JaV1iKAG/WXItnf/U1JK1ROKMzFS + COZ5VjYUPw4RU+m3G9Lv8ip7ALH6/zH9ZIgfSj8ykaRPPHXXSUABeEcoaOzdhJRpxZ/T9z+7qSmC + 43r7ppJUJ+UXz09ml8f56+OfLh4297+493u/+O7+m2fH01/0+fTp5e4vOv709/n2dx5++/rp7nf2 + Pv/J0/zl/Z9cf/Lp5z81uWgufu/58xf7P/32i5PvnkzL5e+zd/nTn//gxcMXD54+e3jyycuv3j09 + uP+Lfq+7d3+fd5988dWT15efvt6vvpP9op+4nny1+EU7+Xe/Q0mp068ezO+tvz2tLk/yk3vHP/3k + 7uL1/rvZ+YPsyU+82V3sfXf33uXL3+tq//f+RW/a6+v5i8UXr+b3m5N32Se/z0/85C/K62c/ePPl + 5dPi9PLh4t23v/3goip+qn64/sFPfXL/6ZPFw53l77X30z9R3/v8+KfOVs+muz99lj2vn64/PXu7 + n30+Ld8Uy9/nO2fNV+9+0advz8qdcr8oP937RfvPTx623/nJ57/P57/P829/efLgFz35an7/q73f + 57u/6Onps+f1hFhw74ufyB48/+Kn7hO5v6pnP737i6r7syfHq0/frH/6O+v7PyUMxhwNy/ajdNQm + TfDNGLXh6MSA2iaHhcSYZX9WZBfLqiEp9JXApKrap+4bfETpDJJdGimIQ8QWBflVXdDY5227ah7d + pQ6yC3gse/fbHTKN9x7Mr95e/fRiMp6U1WQ8rep8TL47gokxYXeXZ42HAOITD5ALR34FuXJrL0j6 + ASlowuB7H937iBCmOQhVjlNMyJR/k1Pxw/Tngfv/n/z5Tx/MdrL9/Wx7ku9MyZ/ffbCd0YrR9mSy + u7v78OH0/AGteP7Inxdn4/b+vLfUdG+a388e7n862f2UmDvbf/gpJdBo4Ynkbv/+JEcKktQhofMl + iwGB+5E//z7koxkCADAjHKsf+fM3UFqHCGrQX4Zs7+2PkoJn+v3In/969CMTSfrEU3c3+vMwPexJ + /8if/5E//yN/npjzm9IE34xRu6U/vytTAxdcvXZvnP+f9OfhIH6TU6H+/IvPn3/nJ1+/+nLf+vOf + vvnu/r03z75Jfx64///Jn9872Hk4eTAlmk/vPSSaHzzcPtif5Ns7k2z3/u6D+w/vTdDtj/x59H97 + f95LME/zT+89eHDvfLo3zfcnu3uTfPqQVkpnDx7SeuL+7kMCQ+qQ0PmSxYDA/X/En19elD992dTV + vlV9n7ZX+/fa85tVnxEYvBiVsvcgH80QAIAZ4Vh9mD9/Mfu0mEZCrP8X+6N2Gm5JaR0iqEF/GbL9 + EPxRqE72BP//5Y8+/cnmk/P9T35wvnfaXn35en337NXvc//N8e7Ji+vV9Dsvlwc755eftD9x/OXu + yd27ZfXV73X19KuTy+b3/r2+e/HTxZurzxdf7exOPv/q4d638+cHv6jc+2L+ez3NXn/y6eTVrNn9 + vVcPfvB7TfPj+2+eXFx8++lPHf/e1c6Du+9evfup6ic//+6LxYPne3tfPH/98jSb3b94/mT39Xl7 + +ZMnO/ceHvz0bvGTFw/fvDz47uzi3vOffP0yO/7J/eW7y8vvPp++yy+v7r7Nn/9e1/nnDy4+OWsX + 5bePL18/fVC9/OL+F8+Wv6iYX/yi5id+8HtffvqT05/e+fZPf/4Ts+rdYvrFfvv26cO7n/7enx88 + efnV1Q922xdPms+/eDj94vqL3+tV0Vx99eKnfu/vLE8nv+j0uN4tf9HDH5x+57sPf9HJ79Mu6p86 + /+6Lt/MfPPvJ09OfPn+Rf/L0k7u/6EX2E18W15cvrl7v7DSLvYJMRPb7fP7lD6bPfyAMxhwNzfwj + f3STJvhmlPIt/VGyiZgauJDqdXrj/FB/dL/d3b+3f/9g9oN2sf7ptz8cfxSB8jc5FT9MfxS4///J + H929n2UPdmYPtj89PyCa700fbj/MKb/86b3J/s5kb+9eNoEd+ZE/iv5v7496CdL7k/2D/GC2/3D3 + IN/fnx48nD04z88nD/cne/f3dg8+JTCkDgmdL1kMCNyP/NH3IR/NEACAGeFY/cgfvYHSOkRQg/4y + ZPsh+KNQnewJ/sgf/br+6I/8UZlrmtUf+aNOE3wzSvmW/ujPan7058QfhYPzTU6F+qO/94Nnz+9/ + +uCnvmv90d/rp37y5f6DJw++QX8UuP//yR/d2zu/l+0/mG0fPHiYb+/v3Z9sPzy4t7+9f76X7+zt + 7e08vJcR1B/5o+j/9v6ol+CbTR4c7N/LdsirerCf7ewe7Of7s/3dB9nuXnYw/XRCYEgdEjpfshgQ + uP+3+6PfnLyBcFEpew/y0QwBAJgRjtWH+aP31zkpYaJXZ0r+X+yPvntwXtI0/ODqlpTWIYIa9Jch + 23v7o6TgmX67Af1mP1384NP7NMj//9JPh/ih9CMTSfrEU3c3+vMwPexJ///Mn5++qY9PXxafHu8t + vvPpzsX965cvnpws9u5+5+X52VdNtniZ7S1evHn+rrm4/xOT69fzT+6eZ+8+vbsof/Inymfn1z/x + cnVx/YPLh9Xlux989/N28Xv/Pg+vf+/Z+bsvni+rn1z/ot2Dh6vv5BcvfnD/4e9z9oPmFz1svnrw + Yj4rf/LT3+vbB9Of/vaXv+inn//EV5/eP85396+evrz6qcvfu7o8v3679/Ynjy9+8rt7b3+fX9T+ + 3j/4weQnvvru9fTT2dufevrsuz95b/n55KcenuzlFz/9i34iu2wP3v4+7YvLZ6vPq68mL8/KlxfF + vecvpifFd5794JMf/N4/OfvB8Sc/uLr88vfev55+ssrPPn/26XEx+c7J6uT3+r1/6s1y9+Ev+vZP + fjX9fSYnv9dl8dPPVt/95NvnL3/687PvfPL83t7i0+vvrF6/+byerC92f/rt2/PLYud1vlye7X/R + /mTdPPl8t/rkxflOtZ998SB7ev/p5ScvXj/5wXNhMOZoWLYf+fObNAGMWlcbWH/+7Q8uV/sPJg++ + KX+efApMDVxw9dq9cX6oP3+/3bm3v7f/cFL9oh/MppMfjj+PRMM3ORXfnH/RcciJTjHc///kzz98 + 8GD3wW4+2763v0v+/MHDh9vZgwcPtme0lrw32Tn4dHofHueP/Hn0f3t/3kuQnu+dz/I8P394vr9P + Duns4YOdT/N7+/u7uwcPsum9KYEhdUjofMliQOB+5M+/D/lohgAAzAjH6kf+/A2U1iGCGvSXIdt7 + +6Ok4Jl+P/Lnvx79yESSPvHU3Y3+PEwPe9I/8ud/5M//yJ8n5vymNAGMWlcb/Kz58z+r+fmfNX/+ + +7/k/wGQFzEy3HoAAA== headers: cache-control: no-cache content-encoding: gzip - content-length: '5386' + content-length: '7252' content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:06 GMT expires: '-1' pragma: no-cache strict-transport-security: max-age=31536000; includeSubDomains vary: Accept-Encoding x-content-type-options: nosniff - x-ms-original-request-ids: cc44e09f-f9b4-415f-824f-bd807b37cb92 + x-ms-original-request-ids: 38a637c2-afcc-486e-b8fe-7e953fe4092b status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/virtualMachines?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/virtualMachines?api-version=2021-03-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/virtualMachines?api-version=2020-12-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"virtualmachinexxx9a731234\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-H5FONMQM77TECPRFFH3FOPVX4ETICL7WNFBB63OSFTMOETIGEMUDIVCWQZW22MPJV2B2GWERZCB/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": - \"eastus\",\r\n \"properties\": {\r\n \"vmId\": \"8de6786e-85ad-4cee-9562-c0ea2c8cef7f\",\r\n - \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n - \ },\r\n \"storageProfile\": {\r\n \"imageReference\": - {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": - \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": - \"latest\",\r\n \"exactVersion\": \"14393.4283.2103051830\"\r\n - \ },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n - \ \"name\": \"myVMosdisk\",\r\n \"createOption\": \"FromImage\",\r\n - \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n - \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk\"\r\n - \ },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": - [\r\n {\r\n \"lun\": 0,\r\n \"name\": - \"virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": - \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n - \ \"name\": \"virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": - \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n }\r\n ]\r\n },\r\n \"osProfile\": - {\r\n \"computerName\": \"myVM\",\r\n \"adminUsername\": - \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": - true,\r\n \"enableAutomaticUpdates\": true,\r\n \"patchSettings\": - {\r\n \"patchMode\": \"AutomaticByOS\"\r\n }\r\n },\r\n - \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n - \ \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": - {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234\",\"properties\":{\"primary\":true}}]},\r\n - \ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\": - [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-H5FONMQM77TECPRFFH3FOPVX4ETICL7WNFBB63OSFTMOETIGEMUDIVCWQZW22MPJV2B2GWERZCB/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234\"\r\n - \ }\r\n ]\r\n },\r\n {\r\n \"name\": \"vm2\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ZXF-TEST/providers/Microsoft.Compute/virtualMachines/vm2\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": - \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": - \"f92da757-75f5-4979-b76d-7e95a287b224\",\r\n \"hardwareProfile\": - {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\": - {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n - \ \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \"version\": - \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n },\r\n - \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm2_OsDisk_1_8d9e27f1fb0f480cb7590e508b38fb68\",\r\n \"createOption\": - \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zxf-test/providers/Microsoft.Compute/disks/vm2_OsDisk_1_8d9e27f1fb0f480cb7590e508b38fb68\"\r\n - \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": - []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": - \"vm2\",\r\n \"adminUsername\": \"azureuser\",\r\n \"linuxConfiguration\": - {\r\n \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": - \"ImageDefault\"\r\n }\r\n },\r\n \"secrets\": - [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": - true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zxf-test/providers/Microsoft.Network/networkInterfaces/vm2VMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\"\r\n }\r\n },\r\n {\r\n - \ \"name\": \"vm3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ZXF-TEST/providers/Microsoft.Compute/virtualMachines/vm3\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": - \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": - \"bfb29420-33c3-4459-8e52-570368569a5a\",\r\n \"hardwareProfile\": - {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\": - {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n - \ \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n - \ \"version\": \"latest\",\r\n \"exactVersion\": \"18.04.202103250\"\r\n - \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n - \ \"name\": \"vm3_disk1_92168d67052f42808a2de2564e3d9805\",\r\n - \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zxf-test/providers/Microsoft.Compute/disks/vm3_disk1_92168d67052f42808a2de2564e3d9805\"\r\n - \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": - []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": - \"vm3\",\r\n \"adminUsername\": \"azureuser\",\r\n \"linuxConfiguration\": - {\r\n \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": - \"ImageDefault\"\r\n }\r\n },\r\n \"secrets\": - [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": - true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zxf-test/providers/Microsoft.Network/networkInterfaces/vm3VMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/virtualMachines?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UeXWbnOP3qUfg9/pSl/iOejZbbA5x9dLj4a2Q+LGT6626wnzbQuVm1RLZu7O5Pd80/3H+xu707O + d7b3Z7NsO8un97ank4d7D/bOdx7ef7hzt86bal1P88/rar1q7n7x+7z6/O6qri6LWV7Tn8W0rprq + vB2fVIvVus3vXhZ1u87KL7LpvFjmzd0AjfZ6xbjd+Jr3TllNM+CL9/Ksadf+l2120dAXv/iXuI8I + uVVetwUBoS/Mx/TF5eKMqXB/du/T/emnO9ufTvc/3d7/9NPJ9sFuPtve25s+mM4me7vTyX3XBb04 + z+rZVVbnL+vqvCgxAA8sfX+5eF38AB9/9LrNljNq/fs/fb37+1/ufeSaOQTphaat6uxiEF6xoC9f + 5ed5nS+nva+pwWo9KYtmntf03Ucn2bJaFtOs9HHG81F1TiDQ5KvJetmuX+f1Jf3dbdW8XaPN7sF4 + Z3/7+ZvXvQb0UqP0L7M2b9pei/xdNm1/0jVjWOO9nb3dnfu7ezseGUJC0KtV87Ro3tJL3TFWzRtl + lufFcv2u16dj899/RhB2f//9Kc3rbG96/uD83v7+/YODnUmefZof3KN/Jp/en/QgTOuchvMlCwMg + PaurxRlI32/JXHmBRq/ybPbdumj7jRbZkt6dxYdD3+ukH0+nFc2GGdzLOl8U68Xv//xVj/D0zjcm + tovr+mKj2IKGENbbEjNENZxUQhxQIBSfP6EB3NvpfZ2XuU/6p3lLJA6AhiA/mmVtBtJCqFXlmadP + 6nINqN1e6YsO0+z9/g/PP334aTa5N9u/92D/wfThJNs72JvM9qcHD/cOpvfuReakyzani1V7HWtH + I1KmeVEte/xCLW7gGGrxNXiG3vo54ppbULOLbDjJeELO2Y3MYVs9yYVfcozzPCubvN/qFhxG3ft/ + ft/94aNFimhIT0+FCvULy1XhdHyUzRbF8qsmrw3fTUvSHE2722lXQsOdVMvz4mJdG2MX9EWNiDDZ + pMxfZk1zVdWz43U7z5ctKX5t39brLh0+apo5fdOBRJ+zAZn+Xvl1RJzw9N7A89EqawHuo7vzapHf + NWO5O6Ze7maETlXTvM1+/7cA28FEno/oq6ckyABCL23XTZYe0/Pk3osfZCe719O9U/rr+OnxTxw/ + oZ9Pjn/i6bz44pOrB8ftT9/75N2LF/d/qvzB5Iu3zeS7r1+ePPvpbPqL6tnvNZn/oq/K1w/a49ev + s0/Of3rvJ37R6nznu/WXFw8++fL58umTb78of9GnO7/o27/3T92/N3tX3b189nD19P5q8e752Xn7 + 6d2fPr+49+3v1J+0e2V+dv/g997/RZ+8ONv5snj39CcffOcX7f/Um/uTuz8xzc+/vV8//PTpm/W3 + X62vf+9XT15++nvvfPf8u+8ezJvF4vX158c/+H12zvL97PKnnj2/93z33YN6/Xu132nvvZ6++cG3 + Fweff/n61Sc7+9c/9ZPz/W/nRfv0xSfT3+eT8+z8B8/aVxer+uXJ/Ke+uPq9X9y9uPeDveby/tPd + b9cn3zl4uv7kBz9xXP3gq+88Xc2ujnfu3XtRlevFV+XB8S/6vS8/ffPseC//fXanp69+cnkyW709 + W7+8/InPz55/d/e7P3Xxixavfq/XT95858WD5cvZLyrvf/r04OonP39aLOuOGOAJRAGPJw54fJHA + AzfrsoDB/8kvji+IEWlOYxxIPDOdv87bllQhmK3HWdLii2rGAsL292l+nq3LnptBbYn386ZZUHfR + F8L2wZBC/D9qclLjLRD63vfDb7KyrK5O37X5EoP7klxJFjA07Y3vozr/Reuizj9fkyCQlhCCvC4u + luSNSXvX3Mfgo2XekhC/pXeMZjEfnS1Jo5xnU7iv3/vFrMt/VlX5C+n2bq97Uus/+cWLYvrRL/l+ + gDoDwThpRsnfJU+IpuH1ejrN8xlpZNNSqW9etfPubLB4/AtSy+Txv3v37mH24N7u3r19N+88etI3 + Hz78V5+//H3I1X/w/Mv7T7749pdnL46/85M/9eXne1988ZPHD14e339z9nt98Z0nv/d3vrt3cnz/ + +YPnr766//s8+OKnvvOd5z957+zB/Qdnn775vV7fv/+dN/ee3Xt1/+RllJTGKurITCxj/t440m88 + MiIEiXc3hkF7n0537k+27+X38u39B/en29n+7GD7IJ8ePNjby2nUHx4G7f2woiBLt+8Wy1l11QwE + OzYk2txMY6K9nd1Pt2GwpqRxIs3oVQgCmt42Mtq/9/DeeH9/Z2+M4GjnPv174BEoJBEBuEV8pEPp + 9W0EbXH9k19UDbkPb3tNSAkS3s5L+jkJgSy3RP3Zb04H1Bera+iAsro/WcyrYpn99OUPqou9xeIy + e7DK7rfF28VPT9799NXeNLtfPijr9f3rB4sf/PRPl5f3CpKG4tP2bXP//k+3987v1fenq406AOSG + 1rWkD8cVzjKNEm0gPuL27j3ofX+zPxvC/KYjJtFCfR2mrv/O+Wz3fO/TycHug3v79yfnD/f39nYP + Hsx2du9/mj/Y3YlMbJf5fviB1GbOo9f+v8x7HzxjXXqE/IWnw7U7e/f6Tb7JcK3zXm+ilY13O+3o + i9ux8b3ff//TaTa5P7u/v0N5j/Pd7GC2M83vzSiincx2D/Y6gRueH7HxzyUb32LGuvTochHRB5B+ + iGzs/+mFWT5iZN6H/KJu1gE2Jpz1ft4Bvsma/u60uxLP4abMA08SPJjNoV6+RH6C8hLVgiBNv1qR + BWLvM9aYo77bx4UW6pPrLyM8/qPAkMD/v1ikh4PMwvzqSfZHI7AcEViil19Mf1EwUF9/9AiE+yVf + Mx6179DkCAUItu8ZBSzI9P1GdOb/O0PPu7nh5G4j+4XX2lKR6Gh+Vc3Ff9Pvv+T/ASUFqbWXHAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:13 GMT + date: Tue, 25 May 2021 10:07:06 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -3679,7 +1981,7 @@ interactions: status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/virtualMachines?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/virtualMachines?api-version=2021-03-01 - request: body: '{"commandId": "RunPowerShellScript"}' headers: @@ -3690,79 +1992,54 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/runCommand?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/runCommand?api-version=2021-03-01 response: body: string: '' headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5ee4a05-9270-4662-8e8b-7fc783cf5d32?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b86a0551-7564-4cad-9063-06bf96abef13?api-version=2021-03-01 cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:16:14 GMT + date: Tue, 25 May 2021 10:07:07 GMT expires: '-1' - location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5ee4a05-9270-4662-8e8b-7fc783cf5d32?monitor=true&api-version=2020-12-01 + location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b86a0551-7564-4cad-9063-06bf96abef13?monitor=true&api-version=2021-03-01 pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff x-ms-ratelimit-remaining-resource: Microsoft.Compute/UpdateVM3Min;238,Microsoft.Compute/UpdateVM30Min;1198 - x-ms-ratelimit-remaining-subscription-writes: '1197' + x-ms-ratelimit-remaining-subscription-writes: '1199' status: code: 202 message: Accepted - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/runCommand?api-version=2020-12-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5ee4a05-9270-4662-8e8b-7fc783cf5d32?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T03:16:14.7173553+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5ee4a05-9270-4662-8e8b-7fc783cf5d32\"\r\n}" - headers: - cache-control: no-cache - content-encoding: gzip - content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:16:44 GMT - expires: '-1' - pragma: no-cache - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29985 - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/c5ee4a05-9270-4662-8e8b-7fc783cf5d32?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/runCommand?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5ee4a05-9270-4662-8e8b-7fc783cf5d32?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b86a0551-7564-4cad-9063-06bf96abef13?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:16:14.7173553+00:00\",\r\n \"endTime\": - \"2021-04-06T03:16:45.2174531+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\"value\":[{\"code\":\"ComponentStatus/StdOut/succeeded\",\"level\":\"Info\",\"displayStatus\":\"Provisioning - succeeded\",\"message\":\"This is a sample script with parameters \"},{\"code\":\"ComponentStatus/StdErr/succeeded\",\"level\":\"Info\",\"displayStatus\":\"Provisioning - succeeded\",\"message\":\"\"}]}\r\n },\r\n \"name\": \"c5ee4a05-9270-4662-8e8b-7fc783cf5d32\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3Ye0P/G9w/u33+we/+THfpg56MRv5QvZ4Ov3DsY + 7+zd23nw6YPgFeqnXTd44/V6Os3zWT7Tb1Z1tcrrtsjxLSNFH1brdrVuzQcfXWblGt19D3+l8iGe + j6bVDJ9/dFItVtUyX7avuZ+7r9vZl+v2bhP2heejMr/MS7xztjyvvM9nRbMqs2sBgO9f1tVl0RTV + slhepDFIi7xpsgvu/828aFL6X5Y22WJV5mkzrYtVm14V7TxdZXW2yNu8buglefuXKJRbjeS0rn94 + IzEI4sf3f+OEfwq2Hy1pFGgyOfg027l/f3f7wf1P97f3p9ls++HOp/e2dz6dnD/8NJvk57v3CMwv + +X8AuB24sWICAAA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:17:13 GMT + date: Tue, 25 May 2021 10:07:37 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -3770,29 +2047,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29983 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29982 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/c5ee4a05-9270-4662-8e8b-7fc783cf5d32?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/b86a0551-7564-4cad-9063-06bf96abef13?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5ee4a05-9270-4662-8e8b-7fc783cf5d32?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b86a0551-7564-4cad-9063-06bf96abef13?monitor=true&api-version=2021-03-01 response: body: - string: '{"value":[{"code":"ComponentStatus/StdOut/succeeded","level":"Info","displayStatus":"Provisioning - succeeded","message":"This is a sample script with parameters "},{"code":"ComponentStatus/StdErr/succeeded","level":"Info","displayStatus":"Provisioning - succeeded","message":""}]}' + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ + uc4/evS9X/zRtJrRLx+dVItVtcyX7es2a9fN3dft7Mt1e7dZT6d5PstnH40+KvPLvKSmZ8vziv6c + Fc2qzK6lPX38sq4ui6aolsXyIvXfW+RNk12gkzfzoknpf1naZItVmafNtC5WbXpVtPN0ldXZIm/z + uknTj37JaBNmp3X9DWP20S/5/i/5fwA4jxSNFgEAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:17:14 GMT + date: Tue, 25 May 2021 10:07:38 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -3800,29 +2080,29 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29982 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29981 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/c5ee4a05-9270-4662-8e8b-7fc783cf5d32?monitor=true&api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/b86a0551-7564-4cad-9063-06bf96abef13?monitor=true&api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/restart?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/restart?api-version=2021-03-01 response: body: string: '' headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/5cdfd2e2-c5a1-4001-8012-0e798612c417?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/eb6cedb6-9754-408b-9856-3ce62867e75e?api-version=2021-03-01 cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:17:14 GMT + date: Tue, 25 May 2021 10:07:38 GMT expires: '-1' - location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/5cdfd2e2-c5a1-4001-8012-0e798612c417?monitor=true&api-version=2020-12-01 + location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/eb6cedb6-9754-408b-9856-3ce62867e75e?monitor=true&api-version=2021-03-01 pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains @@ -3832,25 +2112,28 @@ interactions: status: code: 202 message: Accepted - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/restart?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/restart?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/5cdfd2e2-c5a1-4001-8012-0e798612c417?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/eb6cedb6-9754-408b-9856-3ce62867e75e?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:17:15.0301049+00:00\",\r\n \"endTime\": - \"2021-04-06T03:17:15.3582223+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"5cdfd2e2-c5a1-4001-8012-0e798612c417\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3YePLp3ML6/82D//r29T3bog52PRvxSvpwNv/Jw + vLN3b+fT/YPgFeqnXTd44/V6Os3zWT7Tb5aZQMonn07z2eTT7YcP7u9v7+8cTLYfHtz/dPveNP90 + 7+DTB/mD+/lHv3HyS/4fYXZ7ubgAAAA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:17:44 GMT + date: Tue, 25 May 2021 10:08:08 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -3858,54 +2141,54 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29980 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29978 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/5cdfd2e2-c5a1-4001-8012-0e798612c417?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/eb6cedb6-9754-408b-9856-3ce62867e75e?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/5cdfd2e2-c5a1-4001-8012-0e798612c417?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/eb6cedb6-9754-408b-9856-3ce62867e75e?monitor=true&api-version=2021-03-01 response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:17:44 GMT + date: Tue, 25 May 2021 10:08:08 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29979 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29977 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/5cdfd2e2-c5a1-4001-8012-0e798612c417?monitor=true&api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/eb6cedb6-9754-408b-9856-3ce62867e75e?monitor=true&api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/powerOff?skipShutdown=false&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/powerOff?skipShutdown=false&api-version=2021-03-01 response: body: string: '' headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ffd15c43-2540-4b14-b017-0764d6d15688?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/30a6d4a6-eb9b-413c-bea3-01f3669b88cf?api-version=2021-03-01 cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:17:44 GMT + date: Tue, 25 May 2021 10:08:08 GMT expires: '-1' - location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ffd15c43-2540-4b14-b017-0764d6d15688?monitor=true&api-version=2020-12-01 + location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/30a6d4a6-eb9b-413c-bea3-01f3669b88cf?monitor=true&api-version=2021-03-01 pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains @@ -3915,25 +2198,28 @@ interactions: status: code: 202 message: Accepted - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/powerOff?skipShutdown=false&api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/powerOff?skipShutdown=false&api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ffd15c43-2540-4b14-b017-0764d6d15688?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/30a6d4a6-eb9b-413c-bea3-01f3669b88cf?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:17:45.2333128+00:00\",\r\n \"endTime\": - \"2021-04-06T03:17:51.3739667+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"ffd15c43-2540-4b14-b017-0764d6d15688\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3YO6H/jhw93D+7vf7JDf+98NOJ38uVs8I29nfH9 + nQf3dx7uBq9QN+26wRuv19Npns/ymX6zzATSvZ3s09l+9ul2Pnk42d7fvTfdnuTZve2d3fN7n376 + cHJwMD3/6DdOfsn/A4nbIvy3AAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:18:14 GMT + date: Tue, 25 May 2021 10:08:38 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -3941,54 +2227,54 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29977 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29975 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/ffd15c43-2540-4b14-b017-0764d6d15688?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/30a6d4a6-eb9b-413c-bea3-01f3669b88cf?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ffd15c43-2540-4b14-b017-0764d6d15688?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/30a6d4a6-eb9b-413c-bea3-01f3669b88cf?monitor=true&api-version=2021-03-01 response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:18:14 GMT + date: Tue, 25 May 2021 10:08:38 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29976 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29974 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/ffd15c43-2540-4b14-b017-0764d6d15688?monitor=true&api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/30a6d4a6-eb9b-413c-bea3-01f3669b88cf?monitor=true&api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/start?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/start?api-version=2021-03-01 response: body: string: '' headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4ddbc7bc-e2e0-468b-97e9-3a514a310b5a?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/aad103bf-fe82-4d89-b734-5ae88e7f1884?api-version=2021-03-01 cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:18:14 GMT + date: Tue, 25 May 2021 10:08:39 GMT expires: '-1' - location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4ddbc7bc-e2e0-468b-97e9-3a514a310b5a?monitor=true&api-version=2020-12-01 + location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/aad103bf-fe82-4d89-b734-5ae88e7f1884?monitor=true&api-version=2021-03-01 pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains @@ -3998,24 +2284,28 @@ interactions: status: code: 202 message: Accepted - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/start?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/start?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4ddbc7bc-e2e0-468b-97e9-3a514a310b5a?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/aad103bf-fe82-4d89-b734-5ae88e7f1884?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:18:15.4204516+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"4ddbc7bc-e2e0-468b-97e9-3a514a310b5a\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3YOHt17OP50Z3fv0wd7n+zQBzsfjcxL7brBG2fL + l3V1UedNo18tMwGVZbPdnXuT8+3z/GBve3928HB78uDe/vb9LD84yB+c7x4c7H/0Gye/5P8B92nL + KIYAAAA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:18:25 GMT + date: Tue, 25 May 2021 10:08:49 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4023,29 +2313,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29975 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29973 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/4ddbc7bc-e2e0-468b-97e9-3a514a310b5a?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/aad103bf-fe82-4d89-b734-5ae88e7f1884?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4ddbc7bc-e2e0-468b-97e9-3a514a310b5a?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/aad103bf-fe82-4d89-b734-5ae88e7f1884?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:18:15.4204516+00:00\",\r\n \"endTime\": - \"2021-04-06T03:18:27.8894349+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"4ddbc7bc-e2e0-468b-97e9-3a514a310b5a\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3YOHt17OP50Z3fv0wd7n+zQBzsfjcxL7brBG2fL + l3V1UedNo18tMwGVZbPdnXuT8+3z/GBve3928HB78uDe/vb9LD84yB+c7x4c7H/0Gye/5P8B92nL + KIYAAAA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:18:34 GMT + date: Tue, 25 May 2021 10:08:58 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4053,36 +2346,69 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29973 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29971 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/4ddbc7bc-e2e0-468b-97e9-3a514a310b5a?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/aad103bf-fe82-4d89-b734-5ae88e7f1884?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4ddbc7bc-e2e0-468b-97e9-3a514a310b5a?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/aad103bf-fe82-4d89-b734-5ae88e7f1884?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3YOHt17OP50Z3fv0wd7n+zQBzsfjfilfDkbeOXh + o5398e7upw939sJXqJ923eCN1+vpNM9n+Uy/WWYCKctmuzv3Jufb5/nB3vb+7ODh9uTBvf3t+1l+ + cJA/ON89ONj/6DdOfsn/Ay6cUuG4AAAA + headers: + cache-control: no-cache + content-encoding: gzip + content-type: application/json; charset=utf-8 + date: Tue, 25 May 2021 10:09:28 GMT + expires: '-1' + pragma: no-cache + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000; includeSubDomains + transfer-encoding: chunked + vary: Accept-Encoding + x-content-type-options: nosniff + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29969 + status: + code: 200 + message: OK + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/aad103bf-fe82-4d89-b734-5ae88e7f1884?api-version=2021-03-01 +- request: + body: null + headers: + User-Agent: + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/aad103bf-fe82-4d89-b734-5ae88e7f1884?monitor=true&api-version=2021-03-01 response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:18:34 GMT + date: Tue, 25 May 2021 10:09:28 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29972 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14980,Microsoft.Compute/GetOperation30Min;29968 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/4ddbc7bc-e2e0-468b-97e9-3a514a310b5a?monitor=true&api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/aad103bf-fe82-4d89-b734-5ae88e7f1884?monitor=true&api-version=2021-03-01 - request: body: '{"properties": {"autoUpgradeMinorVersion": true}}' headers: @@ -4093,25 +2419,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"virtualmachineextensionxxx9a731234\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": - \"eastus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n - \ \"provisioningState\": \"Updating\",\r\n \"publisher\": \"Microsoft.Azure.NetworkWatcher\",\r\n - \ \"type\": \"NetworkWatcherAgentWindows\",\r\n \"typeHandlerVersion\": - \"1.4\"\r\n }\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UfLbJF/9Cj96LKo23VWLrLpvFjm+bs2XzZFtXz37t3D7MG93b17+x+N+IVihuZ3m/WkmdbFqqVG + zd2dye75p/sPdrd3J+c72/uzWbad5dN729PJw70He+c7D+8/3Llb5021rqf553W1XjV364vV9fb+ + pw/K6v5kMa+KZfbTlz+oLvYWi8vswSq73xZvFz89effTV3vT7H75oKzX968fLH7w0z9dXt4rHtx/ + UHzavm3u3//p9t75vfr+dHV3VVeXxSyvm7tfFNO6aqrzdnxSLVbrNr+rw/tChteYv3W43ijv2qF3 + G9kvvNZKk/Z6xUS8uV8LpNFXy2qagYZ4Pc+adm2+oNGs8rot8oa+4rmiD7N1W321uqizWf5Fsazq + n6TRysttvc75RWpFr14W+LxYXrxus5Zx+2o1o46WFwIerdaTsmjmeY1vHebHP1jX+fhF3l5V9dvv + Zu0ULcw7ZqDh18cX+bL9brGcVVeKvTb9draclbmH5Ue74/2P0OCX/MbJL/l/ABD/992BAgAA headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c3991fbb-92a2-4d6a-8655-334e841fb067?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/5b6b5f7f-6e6e-4a43-b089-e258fa19bf1b?api-version=2021-03-01 cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:18:34 GMT + date: Tue, 25 May 2021 10:09:29 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4120,29 +2449,32 @@ interactions: vary: Accept-Encoding x-content-type-options: nosniff x-ms-ratelimit-remaining-resource: Microsoft.Compute/UpdateVM3Min;235,Microsoft.Compute/UpdateVM30Min;1194 - x-ms-ratelimit-remaining-subscription-writes: '1198' + x-ms-ratelimit-remaining-subscription-writes: '1197' status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c3991fbb-92a2-4d6a-8655-334e841fb067?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/5b6b5f7f-6e6e-4a43-b089-e258fa19bf1b?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:18:34.6238911+00:00\",\r\n \"endTime\": - \"2021-04-06T03:18:34.920795+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"c3991fbb-92a2-4d6a-8655-334e841fb067\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3YePtp7OL6/d2/34f17n+zQBzsfjfilfDnb9MrB + /d29hwcHwSvUT7tu8Mbr9XSa57N8pt8sM4F0f/Lp5P75g/PtT/NP8+39bP/e9mTn4OF2vnf/4Dzb + fTg535189Bsnv+T/AXvWtt24AAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:19:04 GMT + date: Tue, 25 May 2021 10:09:59 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4150,33 +2482,36 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29970 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29967 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/c3991fbb-92a2-4d6a-8655-334e841fb067?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/5b6b5f7f-6e6e-4a43-b089-e258fa19bf1b?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"virtualmachineextensionxxx9a731234\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": - \"eastus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"publisher\": \"Microsoft.Azure.NetworkWatcher\",\r\n - \ \"type\": \"NetworkWatcherAgentWindows\",\r\n \"typeHandlerVersion\": - \"1.4\"\r\n }\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UfLbJF/9Cj96LKo23VWLrLpvFjm+bs2XzZFtXz37t3D7MG93b17+x+N+IVihuZ3m/WkmdbFqqVG + zd2dye75p/sPdrd3J+c72/uzWbad5dN729PJw70He+c7D+8/3Llb5021rqf553W1XjV364vV9fb+ + pw/K6v5kMa+KZfbTlz+oLvYWi8vswSq73xZvFz89effTV3vT7H75oKzX968fLH7w0z9dXt4rHtx/ + UHzavm3u3//p9t75vfr+dHV3VVeXxSyvm7tfFNO6aqrzdnxSLVbrNr+rw/tChteYv3W43ijv2qF3 + G9kvvNZKk/Z6xUS8uV8LpNFXy2qagYZ4Pc+adm2+oNGs8rot8oa+4rmiD7N1W321uqizWf5Fsazq + n6TRysttvc75RWpFr14W+LxYXrxus5Zxe72eTvN8ls8EPpqtJ2XRzPMaXzvUj3+wrvPxi7y9quq3 + 383aKVqYd8xIw6+PL/Jl+91iOauuFH1t+u1sOStzD82Pdsf7H6HBL/mNk1/y/wBTOK4HggIAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:19:04 GMT + date: Tue, 25 May 2021 10:09:59 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4184,30 +2519,30 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3999,Microsoft.Compute/LowCostGet30Min;31989 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3983,Microsoft.Compute/LowCostGet30Min;31934 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 response: body: string: '' headers: azure-asyncnotification: Enabled - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/11a1bbf5-1c1a-4ce2-9c6d-23899a4e9832?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/9d7549d0-a8e3-4877-899c-eadb8c8921b2?api-version=2021-03-01 cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:19:04 GMT + date: Tue, 25 May 2021 10:10:01 GMT expires: '-1' - location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/11a1bbf5-1c1a-4ce2-9c6d-23899a4e9832?monitor=true&api-version=2020-12-01 + location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/9d7549d0-a8e3-4877-899c-eadb8c8921b2?monitor=true&api-version=2021-03-01 pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains @@ -4217,24 +2552,28 @@ interactions: status: code: 202 message: Accepted - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/extensions/virtualmachineextensionxxx9a731234?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/11a1bbf5-1c1a-4ce2-9c6d-23899a4e9832?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/9d7549d0-a8e3-4877-899c-eadb8c8921b2?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:19:04.9054714+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"11a1bbf5-1c1a-4ce2-9c6d-23899a4e9832\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j+h/O7vjew8P9u7t7H+yQ3/tfDQyL7XrBm+cLV/W + 1UWdN41+tcwE1MPZg/v7D2c729lBfm97/+DBg+2Dhw+n23k2mxxMDx7u7U72PvqNk1/y/wBOCs6X + hgAAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:19:34 GMT + date: Tue, 25 May 2021 10:10:32 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4242,29 +2581,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29969 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29966 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/11a1bbf5-1c1a-4ce2-9c6d-23899a4e9832?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/9d7549d0-a8e3-4877-899c-eadb8c8921b2?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/11a1bbf5-1c1a-4ce2-9c6d-23899a4e9832?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/9d7549d0-a8e3-4877-899c-eadb8c8921b2?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:19:04.9054714+00:00\",\r\n \"endTime\": - \"2021-04-06T03:19:35.2961427+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"11a1bbf5-1c1a-4ce2-9c6d-23899a4e9832\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j+h/O7vjew8P9u7t7H+yQ3/tfDTil/LlbPCV/d3x + wb37Dw72gjeom3bd4IXX6+k0z2f5TL9ZZgLo4ezB/f2Hs53t7CC/t71/8ODB9sHDh9PtPJtNDqYH + D/d2J3sf/cbJL/l/AIM0y1+3AAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:20:04 GMT + date: Tue, 25 May 2021 10:11:01 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4272,57 +2614,60 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29967 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29964 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/11a1bbf5-1c1a-4ce2-9c6d-23899a4e9832?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/9d7549d0-a8e3-4877-899c-eadb8c8921b2?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/powerOff?skipShutdown=false&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/powerOff?skipShutdown=false&api-version=2021-03-01 response: body: string: '' headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f6cb0ac5-7115-40bb-9b12-ebd557b1292e?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8b256b7e-2eaf-4589-98f4-2fcafb3d3c65?api-version=2021-03-01 cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:20:04 GMT + date: Tue, 25 May 2021 10:11:02 GMT expires: '-1' - location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f6cb0ac5-7115-40bb-9b12-ebd557b1292e?monitor=true&api-version=2020-12-01 + location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8b256b7e-2eaf-4589-98f4-2fcafb3d3c65?monitor=true&api-version=2021-03-01 pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/UpdateVM3Min;235,Microsoft.Compute/UpdateVM30Min;1192 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/UpdateVM3Min;236,Microsoft.Compute/UpdateVM30Min;1192 x-ms-ratelimit-remaining-subscription-writes: '1198' status: code: 202 message: Accepted - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/powerOff?skipShutdown=false&api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/powerOff?skipShutdown=false&api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f6cb0ac5-7115-40bb-9b12-ebd557b1292e?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8b256b7e-2eaf-4589-98f4-2fcafb3d3c65?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:20:05.1243369+00:00\",\r\n \"endTime\": - \"2021-04-06T03:20:21.6713354+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"f6cb0ac5-7115-40bb-9b12-ebd557b1292e\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3Z3H+3sjT99eH/30929T3Z2Hu3sfDTil/LlbPCV + 3Xvje3s7u/f37wevUD/tusEbr9fTaZ7P8pl+s8wE0sFk7/6nkwf59l6enW/v3z94uP3w4Hx/e+98 + mp1P7s3uTT+9/9FvnPyS/wdqNB+vuAAAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:20:34 GMT + date: Tue, 25 May 2021 10:11:32 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4330,84 +2675,87 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29965 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29962 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/f6cb0ac5-7115-40bb-9b12-ebd557b1292e?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/8b256b7e-2eaf-4589-98f4-2fcafb3d3c65?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f6cb0ac5-7115-40bb-9b12-ebd557b1292e?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8b256b7e-2eaf-4589-98f4-2fcafb3d3c65?monitor=true&api-version=2021-03-01 response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:20:34 GMT + date: Tue, 25 May 2021 10:11:32 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29964 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29961 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/f6cb0ac5-7115-40bb-9b12-ebd557b1292e?monitor=true&api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/8b256b7e-2eaf-4589-98f4-2fcafb3d3c65?monitor=true&api-version=2021-03-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/reapply?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/reapply?api-version=2021-03-01 response: body: string: '' headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e85c6336-a70e-4f52-b92d-99272b95faeb?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b6017f38-b777-44bb-8be8-d45dcbc78de1?api-version=2021-03-01 cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:20:34 GMT + date: Tue, 25 May 2021 10:11:33 GMT expires: '-1' - location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e85c6336-a70e-4f52-b92d-99272b95faeb?monitor=true&api-version=2020-12-01 + location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b6017f38-b777-44bb-8be8-d45dcbc78de1?monitor=true&api-version=2021-03-01 pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/UpdateVM3Min;235,Microsoft.Compute/UpdateVM30Min;1191 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/UpdateVM3Min;236,Microsoft.Compute/UpdateVM30Min;1191 x-ms-ratelimit-remaining-subscription-writes: '1198' status: code: 202 message: Accepted - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/reapply?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/reapply?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e85c6336-a70e-4f52-b92d-99272b95faeb?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b6017f38-b777-44bb-8be8-d45dcbc78de1?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:20:35.2963765+00:00\",\r\n \"endTime\": - \"2021-04-06T03:20:36.8901342+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"e85c6336-a70e-4f52-b92d-99272b95faeb\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3Z3H927N97b3XnwcHf/k52dRzs7H434pXw5G35l + f3ywt7P76ad7wSvUT7tu8Mbr9XSa57N8pt8sM4E0+XRn98H5vYPtyYMHD7b39yeT7YNJfrA9278/ + m06mDw5m+e5Hv3HyS/4fTmZfh7gAAAA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:21:05 GMT + date: Tue, 25 May 2021 10:12:03 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4415,81 +2763,85 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29961 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29959 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/e85c6336-a70e-4f52-b92d-99272b95faeb?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/b6017f38-b777-44bb-8be8-d45dcbc78de1?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e85c6336-a70e-4f52-b92d-99272b95faeb?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b6017f38-b777-44bb-8be8-d45dcbc78de1?monitor=true&api-version=2021-03-01 response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:21:05 GMT + date: Tue, 25 May 2021 10:12:03 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29960 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29958 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/e85c6336-a70e-4f52-b92d-99272b95faeb?monitor=true&api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/b6017f38-b777-44bb-8be8-d45dcbc78de1?monitor=true&api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/redeploy?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/redeploy?api-version=2021-03-01 response: body: string: '' headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?api-version=2021-03-01 cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:21:05 GMT + date: Tue, 25 May 2021 10:12:04 GMT expires: '-1' - location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?monitor=true&api-version=2020-12-01 + location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?monitor=true&api-version=2021-03-01 pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/UpdateVM3Min;235,Microsoft.Compute/UpdateVM30Min;1190 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/UpdateVM3Min;236,Microsoft.Compute/UpdateVM30Min;1190 x-ms-ratelimit-remaining-subscription-writes: '1198' status: code: 202 message: Accepted - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/redeploy?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/redeploy?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:21:05.5621221+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"87992c07-45f9-4e39-9ffc-832ef3917912\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b3Hu3sj+/d391/sPfwk52dRzs7H43MS+26wRtn + y5d1dVHnTaNfLTMBdTB7+GCW53vbn+7v5Nv7k52H25NPdw+2H9zbefjpdHJwfn5w8NFvnPyS/weY + 58NchgAAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:21:34 GMT + date: Tue, 25 May 2021 10:12:35 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4497,28 +2849,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29958 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29956 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:21:05.5621221+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"87992c07-45f9-4e39-9ffc-832ef3917912\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b3Hu3sj+/d391/sPfwk52dRzs7H43MS+26wRtn + y5d1dVHnTaNfLTMBdTB7+GCW53vbn+7v5Nv7k52H25NPdw+2H9zbefjpdHJwfn5w8NFvnPyS/weY + 58NchgAAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:22:05 GMT + date: Tue, 25 May 2021 10:13:04 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4526,28 +2882,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29955 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29953 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:21:05.5621221+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"87992c07-45f9-4e39-9ffc-832ef3917912\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b3Hu3sj+/d391/sPfwk52dRzs7H43MS+26wRtn + y5d1dVHnTaNfLTMBdTB7+GCW53vbn+7v5Nv7k52H25NPdw+2H9zbefjpdHJwfn5w8NFvnPyS/weY + 58NchgAAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:22:35 GMT + date: Tue, 25 May 2021 10:13:35 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4555,29 +2915,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29952 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29950 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:21:05.5621221+00:00\",\r\n \"endTime\": - \"2021-04-06T03:22:50.8907794+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"87992c07-45f9-4e39-9ffc-832ef3917912\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b3Hu3sj+/d391/sPfwk52dRzs7H434pXw5G3jl + 3qP7D8YPd/d3H356ELxC/bTrBm+8Xk+neT7LZ/rNMhNIB7OHD2Z5vrf96f5Ovr0/2Xm4Pfl092D7 + wb2dh59OJwfn5wcHH/3GyS/5fwB+xwP1uAAAAA== headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:23:05 GMT + date: Tue, 25 May 2021 10:14:04 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4585,36 +2948,36 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29949 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29947 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?monitor=true&api-version=2021-03-01 response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:23:05 GMT + date: Tue, 25 May 2021 10:14:04 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29948 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29946 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/87992c07-45f9-4e39-9ffc-832ef3917912?monitor=true&api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/8d97dee2-640e-4b09-b618-73096cb8ff88?monitor=true&api-version=2021-03-01 - request: body: '{"properties": {"networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234", "properties": {"primary": true}}]}}}' @@ -4626,51 +2989,40 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2020-12-01 - response: - body: - string: "{\r\n \"name\": \"virtualmachinexxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"8de6786e-85ad-4cee-9562-c0ea2c8cef7f\",\r\n - \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n - \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": - \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": - \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": - \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk\"\r\n - \ },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": - [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n \"name\": - \"virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": - \"myVM\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": - true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": - {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234\",\"properties\":{\"primary\":true}}]},\r\n - \ \"provisioningState\": \"Updating\"\r\n }\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UfLbJF/9Cj96LKo23VWLrLpvFjm7969e5g9uLe7d2//oxG3K2ZodbdZT5ppXazaolo2d3cmu+ef + 7j/Y3d6dnO9s789m2XaWT+9tTycP9x7sne88vP9w526dN9W6nuaf19V61dytL1bX2/ufPiir+5PF + vCqW2U9f/qC62FssLrMHq+x+W7xd/PTk3U9f7U2z++WDsl7fv36w+MFP/3R5ea94cP9B8Wn7trl/ + /6fbe+f36vvT1d1VXV0Ws7xu7n5RTOuqqc7b8Um1WK3b/K6O6gsZVWP+Hhxle71iatwISduX1TQD + KfBOnjXt2nxBSK3yui2o5aOUKU0fXi7OmIr3Z3ufTnfuT7bv5ffy7f0H96fb2f7sYPsgnx482NvL + aZT3BQ69NM/q2VVW5y/r6rwogZ2Co+8uF6+LH+Cjj1632XJGLX//p3u//+XeR9LilxgYTVvV2UUU + RLGgL17l53mdL6fBV/Tlaj0pi2ae1/S5o8l3i+Wsumpe5/UlfaN94PmoOic4aDvcpHm7RoO9nd1P + t59mbTbNl22nCb3SKE3LrM2bNvg2f5dN2590TXb37z28N97f39kb7+3u3N+5T/8eKAEcCejFqnla + NG/pFX+EVfNGp1xRDvoywrG4/skvqmaG1/2vp3VO+H3JwoBmz+pqcQZ6hq2YZS7Q4FWezb5bF23Y + YJEt6Z1ZHzv6TmfueDqt1svW4Gpn+/mr1z4oeuH/m3IK0jZ3PTK7MbkZpNHhO7D8509olLt7D4Lv + 8jL3Z+NpTtw1t5AcnI9mxHegNmTze+bTtEP5cg0oO/YtPJYhVBv09cjvDwz3fv+d89nu+d6nk4Pd + B/f270/OH+7v7e0ePJjt7N7/NH+wu9OZtC4jnS5W7XW3DffFbPSiWgYcRN9u4CH69n25iF75/zIf + ffDs+LRwfIOnw4E7e/fCr9vqSS6Ml4OA51nZ5GGLG9g07DCYSGXJXe97+vB2LHnv99//dJpN7s/u + 7++c39s/380OZjvT/N7s3mx/Mts92NsNOeBHLPnDZMlbzI5PC59DiC6A8LPMkubX78svBgEynzGf + YipDr18oa0Kvu9n8KJstiuVXTV4b1oWNX9PfXpsrscYn1fK8uFjXxsmyfVATJjq8gJ/84viCvAj6 + uq3X/tA+ypfZpMyP1221IAjTr1ak+dkj6zZcZe10/jpvW2JnfO/1Y779opoxshbak+svOzz6UdY0 + edMsCBnTmt2Bp/l5ti7bGEENJenlJieZa9H7977vPs3Ksro6fdfmSwz1S3IqqW9ifGoWDOKjOv9F + 66LOP18TMWlShDSvi4tlVmpbaWp6/GiZt1dV/Zbamgk0H53BJTsn14x6+d4vZrn7/4zYvZAh3O0N + 5W5hfvWk76MR2IiIKp76L6a/yCGurz96BIL9kl/yfUstaiYkJQ4hLUUuHM0uMxR9wDNLc/pL/h8F + /3tjVA0AAA== headers: - azure-asyncnotification: Enabled - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c8d513ae-3de1-41ee-9440-f26b183df5f9?api-version=2020-12-01 cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:23:06 GMT + date: Tue, 25 May 2021 10:14:07 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4679,88 +3031,49 @@ interactions: vary: Accept-Encoding x-content-type-options: nosniff x-ms-ratelimit-remaining-resource: Microsoft.Compute/PutVM3Min;744,Microsoft.Compute/PutVM30Min;3725 - x-ms-ratelimit-remaining-subscription-writes: '1197' - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2020-12-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c8d513ae-3de1-41ee-9440-f26b183df5f9?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T03:23:06.0783791+00:00\",\r\n \"endTime\": - \"2021-04-06T03:23:06.2502525+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"c8d513ae-3de1-41ee-9440-f26b183df5f9\"\r\n}" - headers: - cache-control: no-cache - content-encoding: gzip - content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:23:36 GMT - expires: '-1' - pragma: no-cache - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29946 + x-ms-ratelimit-remaining-subscription-writes: '1198' status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/c8d513ae-3de1-41ee-9440-f26b183df5f9?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2020-12-01 - response: - body: - string: "{\r\n \"name\": \"virtualmachinexxx9a731234\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"8de6786e-85ad-4cee-9562-c0ea2c8cef7f\",\r\n - \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n - \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": - \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": - \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": - \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk\"\r\n - \ },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": - [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk2_f66c68ed81b4454ca998e96d6c408f13\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n \"name\": - \"virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\",\r\n - \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinexxx9a731234_disk3_4aa951fd107b4f879150681d7c0a2ecf\"\r\n - \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": - \"myVM\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": - true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": - {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacexxx9a731234\",\"properties\":{\"primary\":true}}]},\r\n - \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 + response: + body: + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UfLbJF/9Cj96LKo23VWLrLpvFjm7969e5g9uLe7d2//oxG3K2ZodbdZT5ppXazaolo2d3cmu+ef + 7j/Y3d6dnO9s789m2XaWT+9tTycP9x7sne88vP9w526dN9W6nuaf19V61dytL1bX2/ufPiir+5PF + vCqW2U9f/qC62FssLrMHq+x+W7xd/PTk3U9f7U2z++WDsl7fv36w+MFP/3R5ea94cP9B8Wn7trl/ + /6fbe+f36vvT1d1VXV0Ws7xu7n5RTOuqqc7b8Um1WK3b/K6O6gsZVWP+Hhxle71iatwISduX1TQD + KfBOnjXt2nxBSK3yui2o5aOUKU0fXi7OmIr3Z3ufTnfuT7bv5ffy7f0H96fb2f7sYPsgnx482NvL + aZT3BQ69NM/q2VVW5y/r6rwogZ2Co+8uF6+LH+Cjj1632XJGLX//p3u//+XeR9LilxgYTVvV2UUU + RLGgL17l53mdL6fBV/Tlaj0pi2ae1/S5o8l3i+Wsumpe5/UlfaN94PmoOic4aDvcpHm7RoO9nd1P + t59mbTbNl22nCb3SKE3LrM2bNvg2f5dN2590TXb37z28N97f39kb7+3u3N+5T/8eKAEcCejFqnla + NG/pFX+EVfNGp1xRDvoywrG4/skvqmaG1/2vp3VO+H3JwoBmz+pqcQZ6hq2YZS7Q4FWezb5bF23Y + YJEt6Z1ZHzv6TmfueDqt1svW4Gpn+/mr1z4oeuH/m3IK0jZ3PTK7MbkZpNHhO7D8509olLt7D4Lv + 8jL3Z+NpTtw1t5AcnI9mxHegNmTze+bTtEP5cg0oO/YtPJYhVBv09cjvDwz3fv+d89nu+d6nk4Pd + B/f270/OH+7v7e0ePJjt7N7/NH+wu9OZtC4jnS5W7XW3DffFbPSiWgYcRN9u4CH69n25iF75/zIf + ffDs+LRwfIOnw4E7e/fCr9vqSS6Ml4OA51nZ5GGLG9g07DCYSGXJXe97+vB2LHnv99//dJpN7s/u + 7++c39s/380OZjvT/N7s3mx/Mts92NsNOeBHLPnDZMlbzI5PC59DiC6A8LPMkubX78svBgEynzGf + YipDr18oa0Kvu9n8KJstiuVXTV4b1oWNX9PfXpsrscYn1fK8uFjXxsmyfVATJjq8gJ/84viCvAj6 + uq3X/tA+ypfZpMyP1221IAjTr1ak+dkj6zZcZe10/jpvW2JnfO/1Y779opoxshbak+svOzz6UdY0 + edMsCBnTmt2Bp/l5ti7bGEENJenlJieZa9H7977vPs3Ksro6fdfmSwz1S3IqqW9ifGoWDOKjOv9F + 66LOP18TMWlShDSvi4tlVmpbaWp6/GiZt1dV/Zbamgk0H53BJTsn14x6+d4vZrn7/4zYvZAh3O0N + 5W5hfvWk76MR2IiIKp76L6a/yCGurz96BIL9kl/yfUstaiYkJQ4hLUUuHM3u6/V0muczkiu0okn9 + Jf8P3EYnkVUNAAA= headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:23:36 GMT + date: Tue, 25 May 2021 10:14:37 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4768,29 +3081,29 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31985 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31930 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/deallocate?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/deallocate?api-version=2021-03-01 response: body: string: '' headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/930d11b5-fa96-4cb2-97df-2676616b05b8?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a937a7be-48e2-4601-b5e6-1924c5ed992e?api-version=2021-03-01 cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:23:36 GMT + date: Tue, 25 May 2021 10:14:38 GMT expires: '-1' - location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/930d11b5-fa96-4cb2-97df-2676616b05b8?monitor=true&api-version=2020-12-01 + location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a937a7be-48e2-4601-b5e6-1924c5ed992e?monitor=true&api-version=2021-03-01 pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains @@ -4800,24 +3113,28 @@ interactions: status: code: 202 message: Accepted - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/deallocate?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234/deallocate?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/930d11b5-fa96-4cb2-97df-2676616b05b8?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a937a7be-48e2-4601-b5e6-1924c5ed992e?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:23:36.3909954+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"930d11b5-fa96-4cb2-97df-2676616b05b8\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b3H907GO/t7u4dPHzwyc7Oo52dj0bmpXbd4I2z + 5cu6uqjzptGvlpmAyh7ee5A9mOTb+wf53vb+pzu725P7+afbuw/39qf389nDh3v5R79x8kv+H2oo + 3IeGAAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:23:46 GMT + date: Tue, 25 May 2021 10:14:48 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4825,29 +3142,32 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29945 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29943 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/930d11b5-fa96-4cb2-97df-2676616b05b8?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/a937a7be-48e2-4601-b5e6-1924c5ed992e?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/930d11b5-fa96-4cb2-97df-2676616b05b8?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a937a7be-48e2-4601-b5e6-1924c5ed992e?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:23:36.3909954+00:00\",\r\n \"endTime\": - \"2021-04-06T03:24:15.3911769+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"930d11b5-fa96-4cb2-97df-2676616b05b8\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3b3H907GO/t7u4dPHzwyc7Oo52dj0b8Ur6cDbxy + /9Hug/GnD+/f3713P3iF+mnXDd54vZ5O83yWz/SbZSaQsof3HmQPJvn2/kG+t73/6c7u9uR+/un2 + 7sO9/en9fPbw4V7+0W+c/JL/B2rI7Cm4AAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:24:22 GMT + date: Tue, 25 May 2021 10:15:18 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4855,55 +3175,55 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29941 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29942 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/930d11b5-fa96-4cb2-97df-2676616b05b8?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/a937a7be-48e2-4601-b5e6-1924c5ed992e?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/930d11b5-fa96-4cb2-97df-2676616b05b8?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a937a7be-48e2-4601-b5e6-1924c5ed992e?monitor=true&api-version=2021-03-01 response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:24:22 GMT + date: Tue, 25 May 2021 10:15:18 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29940 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29941 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/930d11b5-fa96-4cb2-97df-2676616b05b8?monitor=true&api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/a937a7be-48e2-4601-b5e6-1924c5ed992e?monitor=true&api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 response: body: string: '' headers: azure-asyncnotification: Enabled - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/222cb77a-b19d-45c1-ba78-a7b6598fa4e5?api-version=2020-12-01 + azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/306caaa4-c191-44a4-be3f-0c1525ad8f62?api-version=2021-03-01 cache-control: no-cache content-length: '0' - date: Tue, 06 Apr 2021 03:24:22 GMT + date: Tue, 25 May 2021 10:15:20 GMT expires: '-1' - location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/222cb77a-b19d-45c1-ba78-a7b6598fa4e5?monitor=true&api-version=2020-12-01 + location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/306caaa4-c191-44a4-be3f-0c1525ad8f62?monitor=true&api-version=2021-03-01 pragma: no-cache server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000; includeSubDomains @@ -4913,25 +3233,28 @@ interactions: status: code: 202 message: Accepted - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-h5fonmqm77tecprffh3fopvx4eticl7wnfbb63osftmoetigemudivcwqzw22mpjv2b2gwerzcb/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/rgpy-467lo5bmhoinajvzog2mmva7pa5tikmjbxjw2ca5l7lru5y7mzjjlv3i757i6tks55jt3f3r5cp/providers/Microsoft.Compute/virtualMachines/virtualmachinexxx9a731234?api-version=2021-03-01 - request: body: null headers: User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/222cb77a-b19d-45c1-ba78-a7b6598fa4e5?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/306caaa4-c191-44a4-be3f-0c1525ad8f62?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:24:22.6255929+00:00\",\r\n \"endTime\": - \"2021-04-06T03:24:23.078702+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"222cb77a-b19d-45c1-ba78-a7b6598fa4e5\"\r\n}" + string: !!binary | + H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl + VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xb5yk + 6UdNm9Xtm2KRf/Qo/WhvZ293e+f+9t79N7s7j3bvP9p9OL53f/fB/YP9T3Z2Hu3sfDTil/LlbNMr + Dw4e7t3buR+8Qv206wZvvF5Pp3k+y2f6zTITSPd2Pp1mWba/Pd19uLu9v0+/TfJ759s70937e/ez + 2cH5p3sf/cbJL/l/AAJOWim4AAAA headers: cache-control: no-cache content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 06 Apr 2021 03:24:32 GMT + date: Tue, 25 May 2021 10:15:31 GMT expires: '-1' pragma: no-cache server: Microsoft-HTTPAPI/2.0 @@ -4939,9 +3262,9 @@ interactions: transfer-encoding: chunked vary: Accept-Encoding x-content-type-options: nosniff - x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29938 + x-ms-ratelimit-remaining-resource: Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29939 status: code: 200 message: OK - url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/222cb77a-b19d-45c1-ba78-a7b6598fa4e5?api-version=2020-12-01 + url: https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Compute/locations/eastus/operations/306caaa4-c191-44a4-be3f-0c1525ad8f62?api-version=2021-03-01 version: 1 diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_dedicated_hosts.test_dedicated_hosts.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_dedicated_hosts.test_dedicated_hosts.yaml index fa3de97ef6b6..16678d42762c 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_dedicated_hosts.test_dedicated_hosts.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_dedicated_hosts.test_dedicated_hosts.yaml @@ -14,13 +14,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"hostgroup640e162b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-HHOUF2MCLDFHTGIYDNMY2VSBHJVVG6CDG2RTOGAJKQIKG67N3SDRDR764ULOJHAJ2SGZ5B3QAKV/providers/Microsoft.Compute/hostGroups/hostgroup640e162b\",\r\n + string: "{\r\n \"name\": \"hostgroup640e162b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-2DCIKZZ6JXXQTXBSHXZNNVAK7WGAA76BXRBVM2IKNNXXYUAWMNTF4FOCOEH2PXKVOVXVRULMYQM/providers/Microsoft.Compute/hostGroups/hostgroup640e162b\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {\r\n \"department\": \"finance\"\r\n },\r\n \"zones\": [\r\n \ \"1\"\r\n ],\r\n \"properties\": {\r\n \"platformFaultDomainCount\": @@ -33,7 +33,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:24:34 GMT + - Tue, 25 May 2021 10:15:35 GMT expires: - '-1' pragma: @@ -48,7 +48,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/PutDeleteDedicatedHost3Min;119,Microsoft.Compute/PutDeleteDedicatedHost30Min;599 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -67,23 +67,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"hostname640e162b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {\r\n \"department\": \"HR\"\r\n },\r\n \"sku\": {\r\n \"name\": \"DSv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": - 1,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"9a4437a9-7719-448a-9b28-09f46f21c41b\",\r\n + 1,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"e6c02e25-f363-41a9-83a1-19f7b1e1aa54\",\r\n \ \"provisioningState\": \"Creating\"\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d89764f-d68a-4dfe-abd3-39fe3b07b35b?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a4b25f4d-3a60-46ff-8fbf-8c208c0fe95d?api-version=2021-03-01 cache-control: - no-cache content-length: @@ -91,7 +91,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:24:34 GMT + - Tue, 25 May 2021 10:15:37 GMT expires: - '-1' pragma: @@ -106,7 +106,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/PutDeleteDedicatedHost3Min;118,Microsoft.Compute/PutDeleteDedicatedHost30Min;598 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -120,24 +120,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8d89764f-d68a-4dfe-abd3-39fe3b07b35b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a4b25f4d-3a60-46ff-8fbf-8c208c0fe95d?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:24:34.3912431+00:00\",\r\n \"endTime\": - \"2021-04-06T03:24:37.485023+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"8d89764f-d68a-4dfe-abd3-39fe3b07b35b\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:15:37.0235123+00:00\",\r\n \"endTime\": + \"2021-05-25T10:15:38.8829038+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"a4b25f4d-3a60-46ff-8fbf-8c208c0fe95d\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:25:04 GMT + - Tue, 25 May 2021 10:16:07 GMT expires: - '-1' pragma: @@ -154,7 +154,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29936 + - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29937 status: code: 200 message: OK @@ -168,18 +168,18 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"hostname640e162b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {\r\n \"department\": \"HR\"\r\n },\r\n \"sku\": {\r\n \"name\": \"DSv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": - 1,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"9a4437a9-7719-448a-9b28-09f46f21c41b\",\r\n - \ \"virtualMachines\": [],\r\n \"provisioningTime\": \"2021-04-06T03:24:37.1412835+00:00\",\r\n + 1,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"e6c02e25-f363-41a9-83a1-19f7b1e1aa54\",\r\n + \ \"virtualMachines\": [],\r\n \"provisioningTime\": \"2021-05-25T10:15:38.7110374+00:00\",\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -189,7 +189,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:25:04 GMT + - Tue, 25 May 2021 10:16:07 GMT expires: - '-1' pragma: @@ -220,46 +220,27 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b?$expand=instanceView&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"hostgroup640e162b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-HHOUF2MCLDFHTGIYDNMY2VSBHJVVG6CDG2RTOGAJKQIKG67N3SDRDR764ULOJHAJ2SGZ5B3QAKV/providers/Microsoft.Compute/hostGroups/hostgroup640e162b\",\r\n + string: "{\r\n \"name\": \"hostgroup640e162b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-2DCIKZZ6JXXQTXBSHXZNNVAK7WGAA76BXRBVM2IKNNXXYUAWMNTF4FOCOEH2PXKVOVXVRULMYQM/providers/Microsoft.Compute/hostGroups/hostgroup640e162b\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {\r\n \"department\": \"finance\"\r\n },\r\n \"zones\": [\r\n \ \"1\"\r\n ],\r\n \"properties\": {\r\n \"platformFaultDomainCount\": - 3,\r\n \"hosts\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-HHOUF2MCLDFHTGIYDNMY2VSBHJVVG6CDG2RTOGAJKQIKG67N3SDRDR764ULOJHAJ2SGZ5B3QAKV/providers/Microsoft.Compute/hostGroups/HOSTGROUP640E162B/hosts/HOSTNAME640E162B\"\r\n - \ }\r\n ],\r\n \"supportAutomaticPlacement\": false,\r\n \"instanceView\": - {\r\n \"hosts\": [\r\n {\r\n \"name\": \"hostname640e162b\",\r\n - \ \"assetId\": \"2cd97253-9469-4766-8d82-d08280d371aa\",\r\n \"availableCapacity\": - {\r\n \"allocatableVMs\": [\r\n {\r\n \"vmSize\": - \"Standard_D2s_v3\",\r\n \"count\": 32\r\n },\r\n - \ {\r\n \"vmSize\": \"Standard_D4s_v3\",\r\n \"count\": - 17\r\n },\r\n {\r\n \"vmSize\": \"Standard_D8s_v3\",\r\n - \ \"count\": 8\r\n },\r\n {\r\n \"vmSize\": - \"Standard_D16s_v3\",\r\n \"count\": 4\r\n },\r\n - \ {\r\n \"vmSize\": \"Standard_D32s_v3\",\r\n \"count\": - 2\r\n },\r\n {\r\n \"vmSize\": \"Standard_D48s_v3\",\r\n - \ \"count\": 1\r\n },\r\n {\r\n \"vmSize\": - \"Standard_D64s_v3\",\r\n \"count\": 1\r\n }\r\n - \ ]\r\n },\r\n \"statuses\": [\r\n {\r\n - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": - \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n - \ \"time\": \"2021-04-06T03:24:37.1412835+00:00\"\r\n },\r\n - \ {\r\n \"code\": \"HealthState/available\",\r\n \"level\": - \"Info\",\r\n \"displayStatus\": \"Host available\"\r\n }\r\n - \ ]\r\n }\r\n ]\r\n }\r\n }\r\n}" + 3,\r\n \"hosts\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-2DCIKZZ6JXXQTXBSHXZNNVAK7WGAA76BXRBVM2IKNNXXYUAWMNTF4FOCOEH2PXKVOVXVRULMYQM/providers/Microsoft.Compute/hostGroups/HOSTGROUP640E162B/hosts/HOSTNAME640E162B\"\r\n + \ }\r\n ],\r\n \"supportAutomaticPlacement\": false\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2261' + - '785' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:25:04 GMT + - Tue, 25 May 2021 10:16:07 GMT expires: - '-1' pragma: @@ -290,45 +271,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?$expand=instanceView&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"hostname640e162b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {\r\n \"department\": \"HR\"\r\n },\r\n \"sku\": {\r\n \"name\": \"DSv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": - 1,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"9a4437a9-7719-448a-9b28-09f46f21c41b\",\r\n - \ \"virtualMachines\": [],\r\n \"provisioningTime\": \"2021-04-06T03:24:37.1412835+00:00\",\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"assetId\": - \"2cd97253-9469-4766-8d82-d08280d371aa\",\r\n \"availableCapacity\": - {\r\n \"allocatableVMs\": [\r\n {\r\n \"vmSize\": - \"Standard_D2s_v3\",\r\n \"count\": 32\r\n },\r\n {\r\n - \ \"vmSize\": \"Standard_D4s_v3\",\r\n \"count\": 17\r\n - \ },\r\n {\r\n \"vmSize\": \"Standard_D8s_v3\",\r\n - \ \"count\": 8\r\n },\r\n {\r\n \"vmSize\": - \"Standard_D16s_v3\",\r\n \"count\": 4\r\n },\r\n {\r\n - \ \"vmSize\": \"Standard_D32s_v3\",\r\n \"count\": 2\r\n - \ },\r\n {\r\n \"vmSize\": \"Standard_D48s_v3\",\r\n - \ \"count\": 1\r\n },\r\n {\r\n \"vmSize\": - \"Standard_D64s_v3\",\r\n \"count\": 1\r\n }\r\n ]\r\n - \ },\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T03:24:37.1412835+00:00\"\r\n - \ },\r\n {\r\n \"code\": \"HealthState/available\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Host available\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n}" + 1,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"e6c02e25-f363-41a9-83a1-19f7b1e1aa54\",\r\n + \ \"virtualMachines\": [],\r\n \"provisioningTime\": \"2021-05-25T10:15:38.7110374+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1913' + - '709' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:25:04 GMT + - Tue, 25 May 2021 10:16:07 GMT expires: - '-1' pragma: @@ -364,13 +328,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"hostgroup640e162b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-HHOUF2MCLDFHTGIYDNMY2VSBHJVVG6CDG2RTOGAJKQIKG67N3SDRDR764ULOJHAJ2SGZ5B3QAKV/providers/Microsoft.Compute/hostGroups/hostgroup640e162b\",\r\n + string: "{\r\n \"name\": \"hostgroup640e162b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGPY-2DCIKZZ6JXXQTXBSHXZNNVAK7WGAA76BXRBVM2IKNNXXYUAWMNTF4FOCOEH2PXKVOVXVRULMYQM/providers/Microsoft.Compute/hostGroups/hostgroup640e162b\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {\r\n \"department\": \"finance\"\r\n },\r\n \"zones\": [\r\n \ \"1\"\r\n ],\r\n \"properties\": {\r\n \"platformFaultDomainCount\": @@ -383,7 +347,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:25:04 GMT + - Tue, 25 May 2021 10:16:09 GMT expires: - '-1' pragma: @@ -402,7 +366,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/PutDeleteDedicatedHost3Min;117,Microsoft.Compute/PutDeleteDedicatedHost30Min;597 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1196' status: code: 200 message: OK @@ -420,24 +384,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"hostname640e162b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {\r\n \"department\": \"HR\"\r\n },\r\n \"sku\": {\r\n \"name\": \"DSv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": - 1,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"9a4437a9-7719-448a-9b28-09f46f21c41b\",\r\n - \ \"provisioningTime\": \"2021-04-06T03:24:37.1412835+00:00\",\r\n \"provisioningState\": + 1,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"e6c02e25-f363-41a9-83a1-19f7b1e1aa54\",\r\n + \ \"provisioningTime\": \"2021-05-25T10:15:38.7110374+00:00\",\r\n \"provisioningState\": \"Updating\"\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f2067c01-6dc9-432d-9557-d8925ed28c32?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a9201799-5a63-47ec-a135-b2025ca7ca71?api-version=2021-03-01 cache-control: - no-cache content-length: @@ -445,7 +409,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:25:04 GMT + - Tue, 25 May 2021 10:16:09 GMT expires: - '-1' pragma: @@ -464,7 +428,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/PutDeleteDedicatedHost3Min;116,Microsoft.Compute/PutDeleteDedicatedHost30Min;596 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1195' status: code: 200 message: OK @@ -478,24 +442,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f2067c01-6dc9-432d-9557-d8925ed28c32?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a9201799-5a63-47ec-a135-b2025ca7ca71?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:25:05.032034+00:00\",\r\n \"endTime\": - \"2021-04-06T03:25:05.032034+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"f2067c01-6dc9-432d-9557-d8925ed28c32\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:16:09.382705+00:00\",\r\n \"endTime\": + \"2021-05-25T10:16:09.3983501+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"a9201799-5a63-47ec-a135-b2025ca7ca71\"\r\n}" headers: cache-control: - no-cache content-length: - - '182' + - '183' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:25:34 GMT + - Tue, 25 May 2021 10:16:39 GMT expires: - '-1' pragma: @@ -512,7 +476,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29934 + - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29936 status: code: 200 message: OK @@ -526,18 +490,18 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"hostname640e162b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b\",\r\n \ \"type\": \"Microsoft.Compute/hostGroups/hosts\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {\r\n \"department\": \"HR\"\r\n },\r\n \"sku\": {\r\n \"name\": \"DSv3-Type1\"\r\n },\r\n \"properties\": {\r\n \"platformFaultDomain\": - 1,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"9a4437a9-7719-448a-9b28-09f46f21c41b\",\r\n - \ \"virtualMachines\": [],\r\n \"provisioningTime\": \"2021-04-06T03:24:37.1412835+00:00\",\r\n + 1,\r\n \"autoReplaceOnFailure\": true,\r\n \"hostId\": \"e6c02e25-f363-41a9-83a1-19f7b1e1aa54\",\r\n + \ \"virtualMachines\": [],\r\n \"provisioningTime\": \"2021-05-25T10:15:38.7110374+00:00\",\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -547,7 +511,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:25:34 GMT + - Tue, 25 May 2021 10:16:39 GMT expires: - '-1' pragma: @@ -564,7 +528,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetDedicatedHost3Min;245,Microsoft.Compute/GetDedicatedHost30Min;994 + - Microsoft.Compute/GetDedicatedHost3Min;246,Microsoft.Compute/GetDedicatedHost30Min;995 status: code: 200 message: OK @@ -580,10 +544,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b/hosts/hostname640e162b?api-version=2021-03-01 response: body: string: '' @@ -591,17 +555,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/1ed52d4c-ace0-4fb6-a886-cc1adab86b21?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/36f609dd-c333-4a4f-ba0f-be312fe6f676?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 03:25:34 GMT + - Tue, 25 May 2021 10:16:40 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/1ed52d4c-ace0-4fb6-a886-cc1adab86b21?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/36f609dd-c333-4a4f-ba0f-be312fe6f676?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -614,7 +578,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/PutDeleteDedicatedHost3Min;115,Microsoft.Compute/PutDeleteDedicatedHost30Min;595 x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -628,24 +592,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/1ed52d4c-ace0-4fb6-a886-cc1adab86b21?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/36f609dd-c333-4a4f-ba0f-be312fe6f676?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:25:35.3134087+00:00\",\r\n \"endTime\": - \"2021-04-06T03:25:35.5009226+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"1ed52d4c-ace0-4fb6-a886-cc1adab86b21\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:16:40.4137568+00:00\",\r\n \"endTime\": + \"2021-05-25T10:16:40.616905+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"36f609dd-c333-4a4f-ba0f-be312fe6f676\"\r\n}" headers: cache-control: - no-cache content-length: - - '184' + - '183' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:26:05 GMT + - Tue, 25 May 2021 10:17:10 GMT expires: - '-1' pragma: @@ -662,7 +626,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29932 + - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29934 status: code: 200 message: OK @@ -678,36 +642,34 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/hostGroups/hostgroup640e162b?api-version=2021-03-01 response: body: - string: '' + string: '{"error":{"code":"CannotDeleteResource","message":"Can not delete resource + before nested resources are deleted."}}' headers: cache-control: - no-cache content-length: - - '0' + - '114' + content-type: + - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:26:05 GMT + - Tue, 25 May 2021 10:17:10 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutDeleteDedicatedHost3Min;114,Microsoft.Compute/PutDeleteDedicatedHost30Min;594 - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + x-ms-failure-cause: + - gateway status: - code: 200 - message: OK + code: 409 + message: Conflict version: 1 diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_disks.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_disks.yaml index 51a11b753c4d..02feca2dd6f8 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_disks.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_disks.yaml @@ -14,18 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175?api-version=2020-12-01 response: body: - string: "{\r\n \"name\": \"disknamex77f61175\",\r\n \"location\": \"eastus\"\ - ,\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"provisioningState\"\ - : \"Updating\",\r\n \"isArmResource\": true\r\n }\r\n}" + string: "{\r\n \"name\": \"disknamex77f61175\",\r\n \"location\": \"eastus\",\r\n + \ \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"provisioningState\": + \"Updating\",\r\n \"isArmResource\": true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/4b3ea0f0-a639-4a54-99d5-525f94b1e566?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/8d5bbbc1-929f-4f6c-b627-a73aa6d04f52?api-version=2020-12-01 cache-control: - no-cache content-length: @@ -33,11 +34,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:08:02 GMT + - Tue, 25 May 2021 10:18:57 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/4b3ea0f0-a639-4a54-99d5-525f94b1e566?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/8d5bbbc1-929f-4f6c-b627-a73aa6d04f52?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -48,9 +49,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7999 + - Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;7997 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 202 message: Accepted @@ -64,35 +65,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/4b3ea0f0-a639-4a54-99d5-525f94b1e566?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/8d5bbbc1-929f-4f6c-b627-a73aa6d04f52?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:08:03.1548782+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:08:03.2955095+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"properties\": {\r\n \"output\": {\r\n \"name\": \"disknamex77f61175\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \ - \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\"\ - : \"2021-05-06T07:08:03.1548782+00:00\",\r\n \"provisioningState\": \"\ - Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"4fc5b6f6-5fc5-44b3-b30f-99782c4e697c\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"\ - name\": \"4b3ea0f0-a639-4a54-99d5-525f94b1e566\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:18:57.487762+00:00\",\r\n \"endTime\": + \"2021-05-25T10:18:57.6439763+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disknamex77f61175\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\": \"2021-05-25T10:18:57.487762+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"fc74351c-a998-48e6-9698-6183e9b63b04\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"name\": + \"8d5bbbc1-929f-4f6c-b627-a73aa6d04f52\"\r\n}" headers: cache-control: - no-cache content-length: - - '1116' + - '1114' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:08:05 GMT + - Tue, 25 May 2021 10:18:59 GMT expires: - '-1' pragma: @@ -109,7 +110,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399999 + - Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;399988 status: code: 200 message: OK @@ -123,31 +124,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175?api-version=2020-12-01 response: body: - string: "{\r\n \"name\": \"disknamex77f61175\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \ - \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\"\ - : \"2021-05-06T07:08:03.1548782+00:00\",\r\n \"provisioningState\": \"\ - Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"4fc5b6f6-5fc5-44b3-b30f-99782c4e697c\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" + string: "{\r\n \"name\": \"disknamex77f61175\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\": \"2021-05-25T10:18:57.487762+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"fc74351c-a998-48e6-9698-6183e9b63b04\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '891' + - '890' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:08:05 GMT + - Tue, 25 May 2021 10:18:59 GMT expires: - '-1' pragma: @@ -164,7 +165,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4999,Microsoft.Compute/LowCostGet30Min;39999 + - Microsoft.Compute/LowCostGet3Min;14991,Microsoft.Compute/LowCostGet30Min;119960 status: code: 200 message: OK @@ -178,31 +179,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175?api-version=2020-12-01 response: body: - string: "{\r\n \"name\": \"disknamex77f61175\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \ - \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\"\ - : \"2021-05-06T07:08:03.1548782+00:00\",\r\n \"provisioningState\": \"\ - Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"4fc5b6f6-5fc5-44b3-b30f-99782c4e697c\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" + string: "{\r\n \"name\": \"disknamex77f61175\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\": \"2021-05-25T10:18:57.487762+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"fc74351c-a998-48e6-9698-6183e9b63b04\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '891' + - '890' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:08:05 GMT + - Tue, 25 May 2021 10:18:59 GMT expires: - '-1' pragma: @@ -219,7 +220,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4998,Microsoft.Compute/LowCostGet30Min;39998 + - Microsoft.Compute/LowCostGet3Min;14990,Microsoft.Compute/LowCostGet30Min;119959 status: code: 200 message: OK @@ -237,19 +238,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175?api-version=2020-12-01 response: body: - string: "{\r\n \"name\": \"disknamex77f61175\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"provisioningState\"\ - : \"Updating\",\r\n \"isArmResource\": true\r\n }\r\n}" + string: "{\r\n \"name\": \"disknamex77f61175\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"provisioningState\": + \"Updating\",\r\n \"isArmResource\": true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/ceb65bbe-063a-4584-acbf-3090eaba8c1d?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/212c2b53-96bb-4cf6-9d23-8044120d3e00?api-version=2020-12-01 cache-control: - no-cache content-length: @@ -257,11 +259,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:08:06 GMT + - Tue, 25 May 2021 10:18:59 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/ceb65bbe-063a-4584-acbf-3090eaba8c1d?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/212c2b53-96bb-4cf6-9d23-8044120d3e00?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -272,9 +274,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;7998 + - Microsoft.Compute/CreateUpdateDisks3Min;996,Microsoft.Compute/CreateUpdateDisks30Min;7996 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' status: code: 202 message: Accepted @@ -288,35 +290,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/ceb65bbe-063a-4584-acbf-3090eaba8c1d?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/212c2b53-96bb-4cf6-9d23-8044120d3e00?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:08:07.2798554+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:08:07.4204835+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"properties\": {\r\n \"output\": {\r\n \"name\": \"disknamex77f61175\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \ - \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\"\ - : \"2021-05-06T07:08:03.1548782+00:00\",\r\n \"provisioningState\": \"\ - Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"4fc5b6f6-5fc5-44b3-b30f-99782c4e697c\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"\ - name\": \"ceb65bbe-063a-4584-acbf-3090eaba8c1d\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:19:00.2377654+00:00\",\r\n \"endTime\": + \"2021-05-25T10:19:00.3940186+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disknamex77f61175\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\": \"2021-05-25T10:18:57.487762+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"fc74351c-a998-48e6-9698-6183e9b63b04\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"name\": + \"212c2b53-96bb-4cf6-9d23-8044120d3e00\"\r\n}" headers: cache-control: - no-cache content-length: - - '1116' + - '1115' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:08:09 GMT + - Tue, 25 May 2021 10:19:01 GMT expires: - '-1' pragma: @@ -333,7 +335,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49998,Microsoft.Compute/GetOperation30Min;399998 + - Microsoft.Compute/GetOperation3Min;49987,Microsoft.Compute/GetOperation30Min;399987 status: code: 200 message: OK @@ -347,31 +349,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175?api-version=2020-12-01 response: body: - string: "{\r\n \"name\": \"disknamex77f61175\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \ - \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\"\ - : \"2021-05-06T07:08:03.1548782+00:00\",\r\n \"provisioningState\": \"\ - Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"4fc5b6f6-5fc5-44b3-b30f-99782c4e697c\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" + string: "{\r\n \"name\": \"disknamex77f61175\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\": \"2021-05-25T10:18:57.487762+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"fc74351c-a998-48e6-9698-6183e9b63b04\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '891' + - '890' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:08:09 GMT + - Tue, 25 May 2021 10:19:01 GMT expires: - '-1' pragma: @@ -388,7 +390,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4996,Microsoft.Compute/LowCostGet30Min;39996 + - Microsoft.Compute/LowCostGet3Min;14988,Microsoft.Compute/LowCostGet30Min;119957 status: code: 200 message: OK @@ -406,7 +408,8 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175/beginGetAccess?api-version=2020-12-01 response: @@ -414,17 +417,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/cbc52c70-c9e0-4862-86e2-78fbd657d40d?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/0e374b3e-a457-4491-af57-028035fdbe0e?api-version=2020-12-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:08:10 GMT + - Tue, 25 May 2021 10:19:02 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/cbc52c70-c9e0-4862-86e2-78fbd657d40d?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/0e374b3e-a457-4491-af57-028035fdbe0e?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -435,9 +438,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostDiskHydrate3Min;999,Microsoft.Compute/HighCostDiskHydrate30Min;7999 + - Microsoft.Compute/HighCostDiskHydrate3Min;997,Microsoft.Compute/HighCostDiskHydrate30Min;7997 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 202 message: Accepted @@ -451,24 +454,25 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/cbc52c70-c9e0-4862-86e2-78fbd657d40d?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/0e374b3e-a457-4491-af57-028035fdbe0e?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:08:10.6861231+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:08:11.0767689+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"FakeUrl\"\ - \r\n}\r\n },\r\n \"name\": \"cbc52c70-c9e0-4862-86e2-78fbd657d40d\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:19:02.6128002+00:00\",\r\n \"endTime\": + \"2021-05-25T10:19:02.8784203+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"FakeUrl\"\r\n}\r\n + \ },\r\n \"name\": \"0e374b3e-a457-4491-af57-028035fdbe0e\"\r\n}" headers: cache-control: - no-cache content-length: - - '428' + - '426' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:08:40 GMT + - Tue, 25 May 2021 10:19:32 GMT expires: - '-1' pragma: @@ -485,7 +489,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399995 + - Microsoft.Compute/GetOperation3Min;49984,Microsoft.Compute/GetOperation30Min;399984 status: code: 200 message: OK @@ -499,9 +503,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/cbc52c70-c9e0-4862-86e2-78fbd657d40d?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/0e374b3e-a457-4491-af57-028035fdbe0e?monitor=true&api-version=2020-12-01 response: body: string: "{\r\n \"accessSAS\": \"FakeUrl\"\r\n}" @@ -509,11 +514,11 @@ interactions: cache-control: - no-cache content-length: - - '203' + - '201' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:08:40 GMT + - Tue, 25 May 2021 10:19:32 GMT expires: - '-1' pragma: @@ -530,7 +535,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399994 + - Microsoft.Compute/GetOperation3Min;49983,Microsoft.Compute/GetOperation30Min;399983 status: code: 200 message: OK @@ -546,7 +551,8 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175/endGetAccess?api-version=2020-12-01 response: @@ -554,17 +560,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/b8e6faaf-565e-475b-95d6-2b3efbe4ae32?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/90a959a0-018e-45ac-a518-d21824171433?api-version=2020-12-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:08:41 GMT + - Tue, 25 May 2021 10:19:33 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/b8e6faaf-565e-475b-95d6-2b3efbe4ae32?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/90a959a0-018e-45ac-a518-d21824171433?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -575,9 +581,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostDiskHydrate3Min;998,Microsoft.Compute/HighCostDiskHydrate30Min;7998 + - Microsoft.Compute/HighCostDiskHydrate3Min;996,Microsoft.Compute/HighCostDiskHydrate30Min;7996 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' status: code: 202 message: Accepted @@ -591,14 +597,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/b8e6faaf-565e-475b-95d6-2b3efbe4ae32?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/90a959a0-018e-45ac-a518-d21824171433?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:08:41.7991775+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:08:41.9710517+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"b8e6faaf-565e-475b-95d6-2b3efbe4ae32\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:19:33.2224973+00:00\",\r\n \"endTime\": + \"2021-05-25T10:19:33.3787464+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"90a959a0-018e-45ac-a518-d21824171433\"\r\n}" headers: cache-control: - no-cache @@ -607,7 +614,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:09:12 GMT + - Tue, 25 May 2021 10:20:02 GMT expires: - '-1' pragma: @@ -624,7 +631,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49992,Microsoft.Compute/GetOperation30Min;399992 + - Microsoft.Compute/GetOperation3Min;49984,Microsoft.Compute/GetOperation30Min;399981 status: code: 200 message: OK @@ -638,9 +645,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/b8e6faaf-565e-475b-95d6-2b3efbe4ae32?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/90a959a0-018e-45ac-a518-d21824171433?monitor=true&api-version=2020-12-01 response: body: string: '' @@ -650,7 +658,7 @@ interactions: content-length: - '0' date: - - Thu, 06 May 2021 07:09:12 GMT + - Tue, 25 May 2021 10:20:02 GMT expires: - '-1' pragma: @@ -663,7 +671,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49991,Microsoft.Compute/GetOperation30Min;399991 + - Microsoft.Compute/GetOperation3Min;49983,Microsoft.Compute/GetOperation30Min;399980 status: code: 200 message: OK @@ -679,7 +687,8 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex77f61175?api-version=2020-12-01 response: @@ -687,17 +696,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/d4a63bf9-7e9f-422a-bac7-9d53907e110f?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/24b830d6-9653-4aaf-b87f-1ada893af083?api-version=2020-12-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:09:14 GMT + - Tue, 25 May 2021 10:20:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/d4a63bf9-7e9f-422a-bac7-9d53907e110f?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/24b830d6-9653-4aaf-b87f-1ada893af083?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -708,9 +717,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/DeleteDisks3Min;999,Microsoft.Compute/DeleteDisks30Min;7999 + - Microsoft.Compute/DeleteDisks3Min;2998,Microsoft.Compute/DeleteDisks30Min;23998 x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -724,14 +733,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/d4a63bf9-7e9f-422a-bac7-9d53907e110f?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/24b830d6-9653-4aaf-b87f-1ada893af083?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:09:14.9248252+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:09:15.1904672+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"d4a63bf9-7e9f-422a-bac7-9d53907e110f\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:20:03.9573692+00:00\",\r\n \"endTime\": + \"2021-05-25T10:20:05.2541357+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"24b830d6-9653-4aaf-b87f-1ada893af083\"\r\n}" headers: cache-control: - no-cache @@ -740,7 +750,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:09:45 GMT + - Tue, 25 May 2021 10:20:34 GMT expires: - '-1' pragma: @@ -757,7 +767,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49989,Microsoft.Compute/GetOperation30Min;399989 + - Microsoft.Compute/GetOperation3Min;49984,Microsoft.Compute/GetOperation30Min;399978 status: code: 200 message: OK diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_disks_multi.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_disks_multi.yaml index 2723347f2cb2..ed3d28752283 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_disks_multi.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_disks_multi.yaml @@ -14,18 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff?api-version=2019-03-01 response: body: - string: "{\r\n \"name\": \"disknamexe97813ff\",\r\n \"location\": \"eastus\"\ - ,\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"provisioningState\"\ - : \"Updating\",\r\n \"isArmResource\": true\r\n }\r\n}" + string: "{\r\n \"name\": \"disknamexe97813ff\",\r\n \"location\": \"eastus\",\r\n + \ \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"provisioningState\": + \"Updating\",\r\n \"isArmResource\": true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/583a4112-c812-4491-a825-be479faff63c?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/c791e18f-170a-4c37-bd74-c8866086cebc?api-version=2019-03-01 cache-control: - no-cache content-length: @@ -33,11 +34,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:17:48 GMT + - Tue, 25 May 2021 10:17:14 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/583a4112-c812-4491-a825-be479faff63c?monitor=true&api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/c791e18f-170a-4c37-bd74-c8866086cebc?monitor=true&api-version=2019-03-01 pragma: - no-cache server: @@ -48,9 +49,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7995 + - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7999 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 202 message: Accepted @@ -64,33 +65,33 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/583a4112-c812-4491-a825-be479faff63c?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/c791e18f-170a-4c37-bd74-c8866086cebc?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:17:49.0979846+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:17:49.1917102+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"properties\": {\r\n \"output\": {\r\n \"name\": \"disknamexe97813ff\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"timeCreated\": \"2021-05-06T07:17:49.0979846+00:00\"\ - ,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ - ,\r\n \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"5ec13e70-b27e-431f-b284-f6be0fe00faa\"\ - \r\n }\r\n}\r\n },\r\n \"name\": \"583a4112-c812-4491-a825-be479faff63c\"\ - \r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:17:15.18956+00:00\",\r\n \"endTime\": + \"2021-05-25T10:17:15.3301618+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disknamexe97813ff\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"timeCreated\": \"2021-05-25T10:17:15.18956+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"9ba8aa8e-0641-4f0d-9e95-0182a02d8601\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"c791e18f-170a-4c37-bd74-c8866086cebc\"\r\n}" headers: cache-control: - no-cache content-length: - - '998' + - '994' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:17:50 GMT + - Tue, 25 May 2021 10:17:16 GMT expires: - '-1' pragma: @@ -107,7 +108,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399969 + - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399999 status: code: 200 message: OK @@ -121,29 +122,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff?api-version=2019-03-01 response: body: - string: "{\r\n \"name\": \"disknamexe97813ff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"timeCreated\": \"2021-05-06T07:17:49.0979846+00:00\"\ - ,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ - ,\r\n \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"5ec13e70-b27e-431f-b284-f6be0fe00faa\"\ - \r\n }\r\n}" + string: "{\r\n \"name\": \"disknamexe97813ff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"timeCreated\": \"2021-05-25T10:17:15.18956+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"9ba8aa8e-0641-4f0d-9e95-0182a02d8601\"\r\n + \ }\r\n}" headers: cache-control: - no-cache content-length: - - '773' + - '771' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:17:51 GMT + - Tue, 25 May 2021 10:17:16 GMT expires: - '-1' pragma: @@ -160,7 +162,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4999,Microsoft.Compute/LowCostGet30Min;39977 + - Microsoft.Compute/LowCostGet3Min;14998,Microsoft.Compute/LowCostGet30Min;119968 status: code: 200 message: OK @@ -174,29 +176,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff?api-version=2019-03-01 response: body: - string: "{\r\n \"name\": \"disknamexe97813ff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"timeCreated\": \"2021-05-06T07:17:49.0979846+00:00\"\ - ,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ - ,\r\n \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"5ec13e70-b27e-431f-b284-f6be0fe00faa\"\ - \r\n }\r\n}" + string: "{\r\n \"name\": \"disknamexe97813ff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"timeCreated\": \"2021-05-25T10:17:15.18956+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"9ba8aa8e-0641-4f0d-9e95-0182a02d8601\"\r\n + \ }\r\n}" headers: cache-control: - no-cache content-length: - - '773' + - '771' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:17:51 GMT + - Tue, 25 May 2021 10:17:16 GMT expires: - '-1' pragma: @@ -213,7 +216,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4998,Microsoft.Compute/LowCostGet30Min;39976 + - Microsoft.Compute/LowCostGet3Min;14997,Microsoft.Compute/LowCostGet30Min;119967 status: code: 200 message: OK @@ -231,19 +234,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff?api-version=2019-03-01 response: body: - string: "{\r\n \"name\": \"disknamexe97813ff\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"provisioningState\"\ - : \"Updating\",\r\n \"isArmResource\": true\r\n }\r\n}" + string: "{\r\n \"name\": \"disknamexe97813ff\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"provisioningState\": + \"Updating\",\r\n \"isArmResource\": true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9fa9be39-eaed-4429-8dc2-3db2a7d137ba?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/b680e85d-4db2-4332-9af8-ba8d685ff4cb?api-version=2019-03-01 cache-control: - no-cache content-length: @@ -251,11 +255,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:17:52 GMT + - Tue, 25 May 2021 10:17:17 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9fa9be39-eaed-4429-8dc2-3db2a7d137ba?monitor=true&api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/b680e85d-4db2-4332-9af8-ba8d685ff4cb?monitor=true&api-version=2019-03-01 pragma: - no-cache server: @@ -266,9 +270,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;7994 + - Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;7998 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1196' status: code: 202 message: Accepted @@ -282,33 +286,33 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9fa9be39-eaed-4429-8dc2-3db2a7d137ba?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/b680e85d-4db2-4332-9af8-ba8d685ff4cb?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:17:52.8010957+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:17:52.8792128+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"properties\": {\r\n \"output\": {\r\n \"name\": \"disknamexe97813ff\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"timeCreated\": \"2021-05-06T07:17:49.0979846+00:00\"\ - ,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ - ,\r\n \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"5ec13e70-b27e-431f-b284-f6be0fe00faa\"\ - \r\n }\r\n}\r\n },\r\n \"name\": \"9fa9be39-eaed-4429-8dc2-3db2a7d137ba\"\ - \r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:17:17.8145817+00:00\",\r\n \"endTime\": + \"2021-05-25T10:17:17.9552113+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disknamexe97813ff\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"timeCreated\": \"2021-05-25T10:17:15.18956+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"9ba8aa8e-0641-4f0d-9e95-0182a02d8601\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"b680e85d-4db2-4332-9af8-ba8d685ff4cb\"\r\n}" headers: cache-control: - no-cache content-length: - - '998' + - '996' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:17:54 GMT + - Tue, 25 May 2021 10:17:19 GMT expires: - '-1' pragma: @@ -325,7 +329,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49998,Microsoft.Compute/GetOperation30Min;399968 + - Microsoft.Compute/GetOperation3Min;49998,Microsoft.Compute/GetOperation30Min;399998 status: code: 200 message: OK @@ -339,29 +343,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff?api-version=2019-03-01 response: body: - string: "{\r\n \"name\": \"disknamexe97813ff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"timeCreated\": \"2021-05-06T07:17:49.0979846+00:00\"\ - ,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ - ,\r\n \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"5ec13e70-b27e-431f-b284-f6be0fe00faa\"\ - \r\n }\r\n}" + string: "{\r\n \"name\": \"disknamexe97813ff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"timeCreated\": \"2021-05-25T10:17:15.18956+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"9ba8aa8e-0641-4f0d-9e95-0182a02d8601\"\r\n + \ }\r\n}" headers: cache-control: - no-cache content-length: - - '773' + - '771' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:17:54 GMT + - Tue, 25 May 2021 10:17:19 GMT expires: - '-1' pragma: @@ -378,7 +383,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4996,Microsoft.Compute/LowCostGet30Min;39974 + - Microsoft.Compute/LowCostGet3Min;14995,Microsoft.Compute/LowCostGet30Min;119965 status: code: 200 message: OK @@ -396,7 +401,8 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff/beginGetAccess?api-version=2019-03-01 response: @@ -404,17 +410,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/487da5de-e3ba-4e4f-b3c4-aad452cdec2a?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/05eb8b8c-dfef-4e04-8266-28624d387da8?api-version=2019-03-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:17:55 GMT + - Tue, 25 May 2021 10:17:19 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/487da5de-e3ba-4e4f-b3c4-aad452cdec2a?monitor=true&api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/05eb8b8c-dfef-4e04-8266-28624d387da8?monitor=true&api-version=2019-03-01 pragma: - no-cache server: @@ -425,9 +431,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostDiskHydrate3Min;999,Microsoft.Compute/HighCostDiskHydrate30Min;7997 + - Microsoft.Compute/HighCostDiskHydrate3Min;999,Microsoft.Compute/HighCostDiskHydrate30Min;7999 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 202 message: Accepted @@ -441,15 +447,16 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/487da5de-e3ba-4e4f-b3c4-aad452cdec2a?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/05eb8b8c-dfef-4e04-8266-28624d387da8?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:17:55.98862+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:17:56.1761224+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"FakeUrl\"\ - \r\n}\r\n },\r\n \"name\": \"487da5de-e3ba-4e4f-b3c4-aad452cdec2a\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:17:20.3771203+00:00\",\r\n \"endTime\": + \"2021-05-25T10:17:20.6583664+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"FakeUrl\"\r\n}\r\n + \ },\r\n \"name\": \"05eb8b8c-dfef-4e04-8266-28624d387da8\"\r\n}" headers: cache-control: - no-cache @@ -458,7 +465,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:18:26 GMT + - Tue, 25 May 2021 10:17:50 GMT expires: - '-1' pragma: @@ -475,7 +482,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399965 + - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399995 status: code: 200 message: OK @@ -489,9 +496,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/487da5de-e3ba-4e4f-b3c4-aad452cdec2a?monitor=true&api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/05eb8b8c-dfef-4e04-8266-28624d387da8?monitor=true&api-version=2019-03-01 response: body: string: "{\r\n \"accessSAS\": \"FakeUrl\"\r\n}" @@ -499,11 +507,11 @@ interactions: cache-control: - no-cache content-length: - - '205' + - '203' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:18:26 GMT + - Tue, 25 May 2021 10:17:50 GMT expires: - '-1' pragma: @@ -520,7 +528,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399964 + - Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399994 status: code: 200 message: OK @@ -536,7 +544,8 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff/endGetAccess?api-version=2019-03-01 response: @@ -544,17 +553,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/7bb799b8-8495-4852-a48e-dc969b32727e?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/46ff196c-c8e4-49ab-bb09-4f3b5617cff3?api-version=2019-03-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:18:27 GMT + - Tue, 25 May 2021 10:17:50 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/7bb799b8-8495-4852-a48e-dc969b32727e?monitor=true&api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/46ff196c-c8e4-49ab-bb09-4f3b5617cff3?monitor=true&api-version=2019-03-01 pragma: - no-cache server: @@ -565,9 +574,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostDiskHydrate3Min;998,Microsoft.Compute/HighCostDiskHydrate30Min;7996 + - Microsoft.Compute/HighCostDiskHydrate3Min;998,Microsoft.Compute/HighCostDiskHydrate30Min;7998 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: code: 202 message: Accepted @@ -581,14 +590,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/7bb799b8-8495-4852-a48e-dc969b32727e?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/46ff196c-c8e4-49ab-bb09-4f3b5617cff3?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:18:27.1764903+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:18:27.2702393+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"7bb799b8-8495-4852-a48e-dc969b32727e\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:17:51.1274591+00:00\",\r\n \"endTime\": + \"2021-05-25T10:17:51.2993217+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"46ff196c-c8e4-49ab-bb09-4f3b5617cff3\"\r\n}" headers: cache-control: - no-cache @@ -597,7 +607,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:18:57 GMT + - Tue, 25 May 2021 10:18:21 GMT expires: - '-1' pragma: @@ -614,7 +624,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49992,Microsoft.Compute/GetOperation30Min;399962 + - Microsoft.Compute/GetOperation3Min;49992,Microsoft.Compute/GetOperation30Min;399992 status: code: 200 message: OK @@ -628,9 +638,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/7bb799b8-8495-4852-a48e-dc969b32727e?monitor=true&api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/46ff196c-c8e4-49ab-bb09-4f3b5617cff3?monitor=true&api-version=2019-03-01 response: body: string: '' @@ -640,7 +651,7 @@ interactions: content-length: - '0' date: - - Thu, 06 May 2021 07:18:57 GMT + - Tue, 25 May 2021 10:18:21 GMT expires: - '-1' pragma: @@ -653,7 +664,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49991,Microsoft.Compute/GetOperation30Min;399961 + - Microsoft.Compute/GetOperation3Min;49991,Microsoft.Compute/GetOperation30Min;399991 status: code: 200 message: OK @@ -669,7 +680,8 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamexe97813ff?api-version=2019-03-01 response: @@ -677,17 +689,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/cdfe34b9-bb9f-49ce-9ea6-f4eea4163f1c?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/7d7737c2-31e0-42bb-870c-0655e9de95ff?api-version=2019-03-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:18:59 GMT + - Tue, 25 May 2021 10:18:22 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/cdfe34b9-bb9f-49ce-9ea6-f4eea4163f1c?monitor=true&api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/7d7737c2-31e0-42bb-870c-0655e9de95ff?monitor=true&api-version=2019-03-01 pragma: - no-cache server: @@ -698,9 +710,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/DeleteDisks3Min;999,Microsoft.Compute/DeleteDisks30Min;7997 + - Microsoft.Compute/DeleteDisks3Min;2999,Microsoft.Compute/DeleteDisks30Min;23999 x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -714,14 +726,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/cdfe34b9-bb9f-49ce-9ea6-f4eea4163f1c?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/7d7737c2-31e0-42bb-870c-0655e9de95ff?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:18:59.4122483+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:18:59.5528481+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"cdfe34b9-bb9f-49ce-9ea6-f4eea4163f1c\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:18:22.0184492+00:00\",\r\n \"endTime\": + \"2021-05-25T10:18:22.3465814+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"7d7737c2-31e0-42bb-870c-0655e9de95ff\"\r\n}" headers: cache-control: - no-cache @@ -730,7 +743,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:19:30 GMT + - Tue, 25 May 2021 10:18:52 GMT expires: - '-1' pragma: @@ -747,7 +760,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49989,Microsoft.Compute/GetOperation30Min;399959 + - Microsoft.Compute/GetOperation3Min;49989,Microsoft.Compute/GetOperation30Min;399989 status: code: 200 message: OK diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_shot.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_shot.yaml index 950356bb9701..9d83353fc799 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_shot.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_disks.test_compute_shot.yaml @@ -14,18 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115?api-version=2020-12-01 response: body: - string: "{\r\n \"name\": \"disknamex66bb1115\",\r\n \"location\": \"eastus\"\ - ,\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"provisioningState\"\ - : \"Updating\",\r\n \"isArmResource\": true\r\n }\r\n}" + string: "{\r\n \"name\": \"disknamex66bb1115\",\r\n \"location\": \"eastus\",\r\n + \ \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"provisioningState\": + \"Updating\",\r\n \"isArmResource\": true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/095ac120-c485-4adc-8b9f-ec3f80528184?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/cbea8600-a1e2-4217-950a-adcaf82bb2f8?api-version=2020-12-01 cache-control: - no-cache content-length: @@ -33,11 +34,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:10:41 GMT + - Tue, 25 May 2021 10:20:39 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/095ac120-c485-4adc-8b9f-ec3f80528184?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/cbea8600-a1e2-4217-950a-adcaf82bb2f8?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -48,9 +49,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;7997 + - Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;7995 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -64,26 +65,26 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/095ac120-c485-4adc-8b9f-ec3f80528184?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/cbea8600-a1e2-4217-950a-adcaf82bb2f8?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:10:41.6279414+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:10:41.7841904+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"properties\": {\r\n \"output\": {\r\n \"name\": \"disknamex66bb1115\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \ - \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\"\ - : \"2021-05-06T07:10:41.6279414+00:00\",\r\n \"provisioningState\": \"\ - Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"d0882809-7322-4ad5-9ea8-966f26e07129\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"\ - name\": \"095ac120-c485-4adc-8b9f-ec3f80528184\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:20:38.9732195+00:00\",\r\n \"endTime\": + \"2021-05-25T10:20:39.1138915+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disknamex66bb1115\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\": \"2021-05-25T10:20:38.9732195+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"a0832e40-13b7-47a8-bda6-017ef2b61b21\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"name\": + \"cbea8600-a1e2-4217-950a-adcaf82bb2f8\"\r\n}" headers: cache-control: - no-cache @@ -92,7 +93,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:10:43 GMT + - Tue, 25 May 2021 10:20:41 GMT expires: - '-1' pragma: @@ -109,7 +110,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;399988 + - Microsoft.Compute/GetOperation3Min;49983,Microsoft.Compute/GetOperation30Min;399977 status: code: 200 message: OK @@ -123,22 +124,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115?api-version=2020-12-01 response: body: - string: "{\r\n \"name\": \"disknamex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\"\ - : 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \ - \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\"\ - : \"2021-05-06T07:10:41.6279414+00:00\",\r\n \"provisioningState\": \"\ - Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"d0882809-7322-4ad5-9ea8-966f26e07129\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" + string: "{\r\n \"name\": \"disknamex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\": \"2021-05-25T10:20:38.9732195+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"a0832e40-13b7-47a8-bda6-017ef2b61b21\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -147,7 +148,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:10:44 GMT + - Tue, 25 May 2021 10:20:41 GMT expires: - '-1' pragma: @@ -164,7 +165,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4991,Microsoft.Compute/LowCostGet30Min;39991 + - Microsoft.Compute/LowCostGet3Min;14989,Microsoft.Compute/LowCostGet30Min;119961 status: code: 200 message: OK @@ -183,19 +184,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115?api-version=2020-12-01 response: body: - string: "{\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"creationData\"\ - : {\r\n \"createOption\": \"Copy\",\r\n \"sourceUri\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\"\ - ,\r\n \"sourceUniqueId\": \"d0882809-7322-4ad5-9ea8-966f26e07129\"\r\n\ - \ },\r\n \"provisioningState\": \"Updating\",\r\n \"isArmResource\"\ - : true\r\n }\r\n}" + string: "{\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"creationData\": + {\r\n \"createOption\": \"Copy\",\r\n \"sourceUri\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\",\r\n + \ \"sourceUniqueId\": \"a0832e40-13b7-47a8-bda6-017ef2b61b21\"\r\n },\r\n + \ \"provisioningState\": \"Updating\",\r\n \"isArmResource\": true\r\n + \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/54b50552-97d3-42c8-915d-3aedfde6368d?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/f68cbbfc-aed9-4f99-937b-f7e4f2b3a009?api-version=2020-12-01 cache-control: - no-cache content-length: @@ -203,11 +205,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:10:46 GMT + - Tue, 25 May 2021 10:20:42 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/54b50552-97d3-42c8-915d-3aedfde6368d?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/f68cbbfc-aed9-4f99-937b-f7e4f2b3a009?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -220,7 +222,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;999,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7999 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 202 message: Accepted @@ -234,27 +236,27 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/54b50552-97d3-42c8-915d-3aedfde6368d?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/f68cbbfc-aed9-4f99-937b-f7e4f2b3a009?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:10:46.5497607+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:10:47.5028902+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshotx66bb1115\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\"\ - ,\r\n \"sourceUniqueId\": \"d0882809-7322-4ad5-9ea8-966f26e07129\"\r\n\ - \ },\r\n \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\"\ - : \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\ - \n \"timeCreated\": \"2021-05-06T07:10:46.5654434+00:00\",\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"fe623ada-da06-49d5-b517-7dfda2d172ce\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"\ - name\": \"54b50552-97d3-42c8-915d-3aedfde6368d\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:20:42.8951282+00:00\",\r\n \"endTime\": + \"2021-05-25T10:20:43.8326434+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshotx66bb1115\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\",\r\n + \ \"sourceUniqueId\": \"a0832e40-13b7-47a8-bda6-017ef2b61b21\"\r\n },\r\n + \ \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2021-05-25T10:20:42.8951282+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"e775f0d2-1c1d-434c-9d88-d847241ec4e6\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"name\": + \"f68cbbfc-aed9-4f99-937b-f7e4f2b3a009\"\r\n}" headers: cache-control: - no-cache @@ -263,7 +265,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:10:48 GMT + - Tue, 25 May 2021 10:20:44 GMT expires: - '-1' pragma: @@ -280,7 +282,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49987,Microsoft.Compute/GetOperation30Min;399987 + - Microsoft.Compute/GetOperation3Min;49981,Microsoft.Compute/GetOperation30Min;399975 status: code: 200 message: OK @@ -294,23 +296,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115?api-version=2020-12-01 response: body: - string: "{\r\n \"name\": \"snapshotx66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\"\ - ,\r\n \"sourceUniqueId\": \"d0882809-7322-4ad5-9ea8-966f26e07129\"\r\n\ - \ },\r\n \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\"\ - : \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\ - \n \"timeCreated\": \"2021-05-06T07:10:46.5654434+00:00\",\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"fe623ada-da06-49d5-b517-7dfda2d172ce\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" + string: "{\r\n \"name\": \"snapshotx66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\",\r\n + \ \"sourceUniqueId\": \"a0832e40-13b7-47a8-bda6-017ef2b61b21\"\r\n },\r\n + \ \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2021-05-25T10:20:42.8951282+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"e775f0d2-1c1d-434c-9d88-d847241ec4e6\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -319,7 +321,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:10:48 GMT + - Tue, 25 May 2021 10:20:44 GMT expires: - '-1' pragma: @@ -336,7 +338,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4989,Microsoft.Compute/LowCostGet30Min;39989 + - Microsoft.Compute/LowCostGet3Min;14987,Microsoft.Compute/LowCostGet30Min;119959 status: code: 200 message: OK @@ -357,25 +359,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"imagex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"eastus\"\ - ,\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"osDisk\"\ - : {\r\n \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\"\ - ,\r\n \"snapshot\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\ - \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ - : \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [],\r\n \"zoneResilient\"\ - : false\r\n },\r\n \"provisioningState\": \"Creating\",\r\n \"hyperVGeneration\"\ - : \"V1\"\r\n }\r\n}" + string: "{\r\n \"name\": \"imagex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"eastus\",\r\n + \ \"properties\": {\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n + \ \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n + \ \"snapshot\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\r\n + \ },\r\n \"caching\": \"None\",\r\n \"storageAccountType\": + \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [],\r\n \"zoneResilient\": + false\r\n },\r\n \"provisioningState\": \"Creating\",\r\n \"hyperVGeneration\": + \"V1\"\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/2ac37290-7e88-4eda-a7f3-5605169b4e29?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/459d115e-889d-48bc-959d-8126aae7cdc3?api-version=2021-03-01 cache-control: - no-cache content-length: @@ -383,7 +386,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:10:52 GMT + - Tue, 25 May 2021 10:20:46 GMT expires: - '-1' pragma: @@ -398,7 +401,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateImages3Min;39,Microsoft.Compute/CreateImages30Min;199 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1196' status: code: 201 message: Created @@ -412,23 +415,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/2ac37290-7e88-4eda-a7f3-5605169b4e29?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/459d115e-889d-48bc-959d-8126aae7cdc3?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:10:51.4811358+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:10:56.6687055+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"2ac37290-7e88-4eda-a7f3-5605169b4e29\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:20:46.0233086+00:00\",\r\n \"endTime\": + \"2021-05-25T10:20:51.163943+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"459d115e-889d-48bc-959d-8126aae7cdc3\"\r\n}" headers: cache-control: - no-cache content-length: - - '184' + - '183' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:11:22 GMT + - Tue, 25 May 2021 10:21:17 GMT expires: - '-1' pragma: @@ -445,7 +449,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29994 + - Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29930 status: code: 200 message: OK @@ -459,21 +463,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"imagex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"eastus\"\ - ,\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"osDisk\"\ - : {\r\n \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\"\ - ,\r\n \"diskSizeGB\": 200,\r\n \"snapshot\": {\r\n \ - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\ - \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ - : \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [],\r\n \"zoneResilient\"\ - : false\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"hyperVGeneration\"\ - : \"V1\"\r\n }\r\n}" + string: "{\r\n \"name\": \"imagex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"eastus\",\r\n + \ \"properties\": {\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n + \ \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n + \ \"diskSizeGB\": 200,\r\n \"snapshot\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\r\n + \ },\r\n \"caching\": \"None\",\r\n \"storageAccountType\": + \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [],\r\n \"zoneResilient\": + false\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"hyperVGeneration\": + \"V1\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -482,7 +487,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:11:22 GMT + - Tue, 25 May 2021 10:21:17 GMT expires: - '-1' pragma: @@ -513,23 +518,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115?api-version=2020-12-01 response: body: - string: "{\r\n \"name\": \"snapshotx66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\"\ - ,\r\n \"sourceUniqueId\": \"d0882809-7322-4ad5-9ea8-966f26e07129\"\r\n\ - \ },\r\n \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\"\ - : \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\ - \n \"timeCreated\": \"2021-05-06T07:10:46.5654434+00:00\",\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"fe623ada-da06-49d5-b517-7dfda2d172ce\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" + string: "{\r\n \"name\": \"snapshotx66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\",\r\n + \ \"sourceUniqueId\": \"a0832e40-13b7-47a8-bda6-017ef2b61b21\"\r\n },\r\n + \ \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2021-05-25T10:20:42.8951282+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"e775f0d2-1c1d-434c-9d88-d847241ec4e6\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -538,7 +543,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:11:23 GMT + - Tue, 25 May 2021 10:21:17 GMT expires: - '-1' pragma: @@ -555,7 +560,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4990,Microsoft.Compute/LowCostGet30Min;39984 + - Microsoft.Compute/LowCostGet3Min;14983,Microsoft.Compute/LowCostGet30Min;119954 status: code: 200 message: OK @@ -569,21 +574,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"imagex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"eastus\"\ - ,\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \"osDisk\"\ - : {\r\n \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\"\ - ,\r\n \"diskSizeGB\": 200,\r\n \"snapshot\": {\r\n \ - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\ - \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ - : \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [],\r\n \"zoneResilient\"\ - : false\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"hyperVGeneration\"\ - : \"V1\"\r\n }\r\n}" + string: "{\r\n \"name\": \"imagex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"eastus\",\r\n + \ \"properties\": {\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n + \ \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n + \ \"diskSizeGB\": 200,\r\n \"snapshot\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\r\n + \ },\r\n \"caching\": \"None\",\r\n \"storageAccountType\": + \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [],\r\n \"zoneResilient\": + false\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"hyperVGeneration\": + \"V1\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -592,7 +598,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:11:23 GMT + - Tue, 25 May 2021 10:21:17 GMT expires: - '-1' pragma: @@ -627,26 +633,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"imagex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"eastus\"\ - ,\r\n \"tags\": {\r\n \"department\": \"HR\"\r\n },\r\n \"properties\"\ - : {\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n \"osType\"\ - : \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"diskSizeGB\"\ - : 200,\r\n \"snapshot\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\ - \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ - : \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [],\r\n \"zoneResilient\"\ - : false\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"hyperVGeneration\"\ - : \"V1\"\r\n }\r\n}" + string: "{\r\n \"name\": \"imagex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"eastus\",\r\n + \ \"tags\": {\r\n \"department\": \"HR\"\r\n },\r\n \"properties\": {\r\n + \ \"storageProfile\": {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n + \ \"osState\": \"Generalized\",\r\n \"diskSizeGB\": 200,\r\n + \ \"snapshot\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\r\n + \ },\r\n \"caching\": \"None\",\r\n \"storageAccountType\": + \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [],\r\n \"zoneResilient\": + false\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"hyperVGeneration\": + \"V1\"\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/2d6e4ea2-0414-4fe0-aaca-6f9e37dce4a4?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/67ffe060-eacf-4032-b1f6-9cd39153c83e?api-version=2021-03-01 cache-control: - no-cache content-length: @@ -654,7 +661,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:11:26 GMT + - Tue, 25 May 2021 10:21:18 GMT expires: - '-1' pragma: @@ -673,7 +680,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateImages3Min;38,Microsoft.Compute/CreateImages30Min;198 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1195' status: code: 200 message: OK @@ -687,14 +694,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/2d6e4ea2-0414-4fe0-aaca-6f9e37dce4a4?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/67ffe060-eacf-4032-b1f6-9cd39153c83e?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:11:24.9501949+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:11:30.0439125+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"2d6e4ea2-0414-4fe0-aaca-6f9e37dce4a4\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:21:18.1014828+00:00\",\r\n \"endTime\": + \"2021-05-25T10:21:23.2108661+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"67ffe060-eacf-4032-b1f6-9cd39153c83e\"\r\n}" headers: cache-control: - no-cache @@ -703,7 +711,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:11:57 GMT + - Tue, 25 May 2021 10:21:48 GMT expires: - '-1' pragma: @@ -720,7 +728,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29992 + - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29928 status: code: 200 message: OK @@ -734,21 +742,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"imagex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"eastus\"\ - ,\r\n \"tags\": {\r\n \"department\": \"HR\"\r\n },\r\n \"properties\"\ - : {\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n \"osType\"\ - : \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"diskSizeGB\"\ - : 200,\r\n \"snapshot\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\ - \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ - : \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [],\r\n \"zoneResilient\"\ - : false\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"hyperVGeneration\"\ - : \"V1\"\r\n }\r\n}" + string: "{\r\n \"name\": \"imagex66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"eastus\",\r\n + \ \"tags\": {\r\n \"department\": \"HR\"\r\n },\r\n \"properties\": {\r\n + \ \"storageProfile\": {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n + \ \"osState\": \"Generalized\",\r\n \"diskSizeGB\": 200,\r\n + \ \"snapshot\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\r\n + \ },\r\n \"caching\": \"None\",\r\n \"storageAccountType\": + \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [],\r\n \"zoneResilient\": + false\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"hyperVGeneration\": + \"V1\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -757,7 +766,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:11:57 GMT + - Tue, 25 May 2021 10:21:48 GMT expires: - '-1' pragma: @@ -792,21 +801,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115?api-version=2020-12-01 response: body: - string: "{\r\n \"location\": \"eastus\",\r\n \"sku\": {\r\n \"name\": \"\ - Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\"\ - : {\r\n \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \ - \ \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\"\ - ,\r\n \"sourceUniqueId\": \"d0882809-7322-4ad5-9ea8-966f26e07129\"\r\n\ - \ },\r\n \"diskSizeGB\": 200,\r\n \"provisioningState\": \"Updating\"\ - ,\r\n \"isArmResource\": true,\r\n \"faultDomain\": 0\r\n }\r\n}" + string: "{\r\n \"location\": \"eastus\",\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n + \ \"tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\": + {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\",\r\n + \ \"sourceUniqueId\": \"a0832e40-13b7-47a8-bda6-017ef2b61b21\"\r\n },\r\n + \ \"diskSizeGB\": 200,\r\n \"provisioningState\": \"Updating\",\r\n \"isArmResource\": + true,\r\n \"faultDomain\": 0\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/1a0ed460-1da6-41c6-8d10-938d14920c92?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/59314633-6560-4552-9da7-d8b9d3741713?api-version=2020-12-01 cache-control: - no-cache content-length: @@ -814,11 +823,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:11:59 GMT + - Tue, 25 May 2021 10:21:48 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/1a0ed460-1da6-41c6-8d10-938d14920c92?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/59314633-6560-4552-9da7-d8b9d3741713?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -829,9 +838,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;7996 + - Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;7994 x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1194' status: code: 202 message: Accepted @@ -845,27 +854,27 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/1a0ed460-1da6-41c6-8d10-938d14920c92?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/59314633-6560-4552-9da7-d8b9d3741713?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:11:58.9255539+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:11:59.0817851+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshotx66bb1115\"\ - ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\"\ - ,\r\n \"sourceUniqueId\": \"d0882809-7322-4ad5-9ea8-966f26e07129\"\r\n\ - \ },\r\n \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\"\ - : \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\ - \n \"timeCreated\": \"2021-05-06T07:10:46.5654434+00:00\",\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"fe623ada-da06-49d5-b517-7dfda2d172ce\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"\ - name\": \"1a0ed460-1da6-41c6-8d10-938d14920c92\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:21:49.1458854+00:00\",\r\n \"endTime\": + \"2021-05-25T10:21:49.2865526+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshotx66bb1115\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\",\r\n + \ \"sourceUniqueId\": \"a0832e40-13b7-47a8-bda6-017ef2b61b21\"\r\n },\r\n + \ \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2021-05-25T10:20:42.8951282+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"e775f0d2-1c1d-434c-9d88-d847241ec4e6\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"name\": + \"59314633-6560-4552-9da7-d8b9d3741713\"\r\n}" headers: cache-control: - no-cache @@ -874,7 +883,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:12:01 GMT + - Tue, 25 May 2021 10:21:50 GMT expires: - '-1' pragma: @@ -891,7 +900,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49989,Microsoft.Compute/GetOperation30Min;399980 + - Microsoft.Compute/GetOperation3Min;49981,Microsoft.Compute/GetOperation30Min;399969 status: code: 200 message: OK @@ -905,23 +914,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115?api-version=2020-12-01 response: body: - string: "{\r\n \"name\": \"snapshotx66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\"\ - ,\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"eastus\"\ - ,\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\ - \r\n },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\"\ - : \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\"\ - ,\r\n \"sourceUniqueId\": \"d0882809-7322-4ad5-9ea8-966f26e07129\"\r\n\ - \ },\r\n \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\"\ - : \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\ - \n \"timeCreated\": \"2021-05-06T07:10:46.5654434+00:00\",\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\"\ - : 214748364800,\r\n \"uniqueId\": \"fe623ada-da06-49d5-b517-7dfda2d172ce\"\ - ,\r\n \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" + string: "{\r\n \"name\": \"snapshotx66bb1115\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"eastus\",\r\n + \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n + \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": + \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/disknamex66bb1115\",\r\n + \ \"sourceUniqueId\": \"a0832e40-13b7-47a8-bda6-017ef2b61b21\"\r\n },\r\n + \ \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2021-05-25T10:20:42.8951282+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"e775f0d2-1c1d-434c-9d88-d847241ec4e6\",\r\n + \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -930,7 +939,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:12:01 GMT + - Tue, 25 May 2021 10:21:51 GMT expires: - '-1' pragma: @@ -947,7 +956,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4989,Microsoft.Compute/LowCostGet30Min;39982 + - Microsoft.Compute/LowCostGet3Min;14981,Microsoft.Compute/LowCostGet30Min;119951 status: code: 200 message: OK @@ -965,7 +974,8 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115/beginGetAccess?api-version=2020-12-01 response: @@ -973,17 +983,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/4de05767-f964-4e75-9c92-8f7ed1d8b591?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/004407f8-1a01-4d27-bc36-f7b8f1a8449e?api-version=2020-12-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:12:02 GMT + - Tue, 25 May 2021 10:21:51 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/4de05767-f964-4e75-9c92-8f7ed1d8b591?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/004407f8-1a01-4d27-bc36-f7b8f1a8449e?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -996,7 +1006,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;998,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7998 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 202 message: Accepted @@ -1010,24 +1020,25 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/4de05767-f964-4e75-9c92-8f7ed1d8b591?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/004407f8-1a01-4d27-bc36-f7b8f1a8449e?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:12:02.2067564+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:12:02.3786487+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"FakeUrl\"\ - \r\n}\r\n },\r\n \"name\": \"4de05767-f964-4e75-9c92-8f7ed1d8b591\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:21:51.5678249+00:00\",\r\n \"endTime\": + \"2021-05-25T10:21:51.7396803+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"FakeUrl\"\r\n}\r\n + \ },\r\n \"name\": \"004407f8-1a01-4d27-bc36-f7b8f1a8449e\"\r\n}" headers: cache-control: - no-cache content-length: - - '426' + - '432' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:12:32 GMT + - Tue, 25 May 2021 10:22:21 GMT expires: - '-1' pragma: @@ -1044,7 +1055,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49989,Microsoft.Compute/GetOperation30Min;399978 + - Microsoft.Compute/GetOperation3Min;49982,Microsoft.Compute/GetOperation30Min;399967 status: code: 200 message: OK @@ -1058,9 +1069,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/4de05767-f964-4e75-9c92-8f7ed1d8b591?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/004407f8-1a01-4d27-bc36-f7b8f1a8449e?monitor=true&api-version=2020-12-01 response: body: string: "{\r\n \"accessSAS\": \"FakeUrl\"\r\n}" @@ -1068,11 +1080,11 @@ interactions: cache-control: - no-cache content-length: - - '201' + - '207' content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:12:33 GMT + - Tue, 25 May 2021 10:22:21 GMT expires: - '-1' pragma: @@ -1089,7 +1101,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;399977 + - Microsoft.Compute/GetOperation3Min;49981,Microsoft.Compute/GetOperation30Min;399966 status: code: 200 message: OK @@ -1105,7 +1117,8 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115/endGetAccess?api-version=2020-12-01 response: @@ -1113,17 +1126,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/4c988ec7-b78a-4a4b-97c6-4abedd563a56?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/b954b756-1e0a-4fa2-be00-b276c9c8a48e?api-version=2020-12-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:12:34 GMT + - Tue, 25 May 2021 10:22:21 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/4c988ec7-b78a-4a4b-97c6-4abedd563a56?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/b954b756-1e0a-4fa2-be00-b276c9c8a48e?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -1136,7 +1149,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;997,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7997 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: code: 202 message: Accepted @@ -1150,14 +1163,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/4c988ec7-b78a-4a4b-97c6-4abedd563a56?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/b954b756-1e0a-4fa2-be00-b276c9c8a48e?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:12:34.0815425+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:12:34.2378113+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"4c988ec7-b78a-4a4b-97c6-4abedd563a56\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:22:22.0369067+00:00\",\r\n \"endTime\": + \"2021-05-25T10:22:22.2243967+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"b954b756-1e0a-4fa2-be00-b276c9c8a48e\"\r\n}" headers: cache-control: - no-cache @@ -1166,7 +1180,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:13:04 GMT + - Tue, 25 May 2021 10:22:52 GMT expires: - '-1' pragma: @@ -1183,7 +1197,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399975 + - Microsoft.Compute/GetOperation3Min;49982,Microsoft.Compute/GetOperation30Min;399964 status: code: 200 message: OK @@ -1197,9 +1211,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/4c988ec7-b78a-4a4b-97c6-4abedd563a56?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/b954b756-1e0a-4fa2-be00-b276c9c8a48e?monitor=true&api-version=2020-12-01 response: body: string: '' @@ -1209,7 +1224,7 @@ interactions: content-length: - '0' date: - - Thu, 06 May 2021 07:13:04 GMT + - Tue, 25 May 2021 10:22:52 GMT expires: - '-1' pragma: @@ -1222,7 +1237,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49985,Microsoft.Compute/GetOperation30Min;399974 + - Microsoft.Compute/GetOperation3Min;49981,Microsoft.Compute/GetOperation30Min;399963 status: code: 200 message: OK @@ -1238,9 +1253,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/images/imagex66bb1115?api-version=2021-03-01 response: body: string: '' @@ -1248,17 +1264,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c2eac8e2-bab7-4972-80d9-88cc6dfcd363?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/412eec30-6cfe-4d9f-8c58-ba6fea4659f5?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:13:07 GMT + - Tue, 25 May 2021 10:22:52 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c2eac8e2-bab7-4972-80d9-88cc6dfcd363?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/412eec30-6cfe-4d9f-8c58-ba6fea4659f5?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1271,7 +1287,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteImages3Min;119,Microsoft.Compute/DeleteImages30Min;599 x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -1285,14 +1301,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c2eac8e2-bab7-4972-80d9-88cc6dfcd363?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/412eec30-6cfe-4d9f-8c58-ba6fea4659f5?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:13:07.8720859+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:13:12.9814541+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"c2eac8e2-bab7-4972-80d9-88cc6dfcd363\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:22:52.7731955+00:00\",\r\n \"endTime\": + \"2021-05-25T10:22:57.8513726+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"412eec30-6cfe-4d9f-8c58-ba6fea4659f5\"\r\n}" headers: cache-control: - no-cache @@ -1301,7 +1318,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:13:37 GMT + - Tue, 25 May 2021 10:23:22 GMT expires: - '-1' pragma: @@ -1318,7 +1335,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29990 + - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29926 status: code: 200 message: OK @@ -1334,7 +1351,8 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotx66bb1115?api-version=2020-12-01 response: @@ -1342,17 +1360,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/db9f3218-eebf-460d-b409-f285e2c1d70e?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/c76862cf-ee38-4c00-bd66-9d91480380eb?api-version=2020-12-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 06 May 2021 07:13:38 GMT + - Tue, 25 May 2021 10:23:22 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/db9f3218-eebf-460d-b409-f285e2c1d70e?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/c76862cf-ee38-4c00-bd66-9d91480380eb?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -1363,9 +1381,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/DeleteDisks3Min;999,Microsoft.Compute/DeleteDisks30Min;7998 + - Microsoft.Compute/DeleteDisks3Min;2999,Microsoft.Compute/DeleteDisks30Min;23997 x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14997' status: code: 202 message: Accepted @@ -1379,14 +1397,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/db9f3218-eebf-460d-b409-f285e2c1d70e?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/c76862cf-ee38-4c00-bd66-9d91480380eb?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-05-06T07:13:39.1753112+00:00\",\r\n \"\ - endTime\": \"2021-05-06T07:13:39.3471773+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"db9f3218-eebf-460d-b409-f285e2c1d70e\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:23:23.2720289+00:00\",\r\n \"endTime\": + \"2021-05-25T10:23:24.8970499+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"c76862cf-ee38-4c00-bd66-9d91480380eb\"\r\n}" headers: cache-control: - no-cache @@ -1395,7 +1414,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 06 May 2021 07:14:09 GMT + - Tue, 25 May 2021 10:23:52 GMT expires: - '-1' pragma: @@ -1412,7 +1431,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;399970 + - Microsoft.Compute/GetOperation3Min;49987,Microsoft.Compute/GetOperation30Min;399959 status: code: 200 message: OK diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_galleries.test_compute_galleries.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_galleries.test_compute_galleries.yaml index 696504a233d4..0ab9e48b2944 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_galleries.test_compute_galleries.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_galleries.test_compute_galleries.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/diskname10bb14a9?api-version=2020-12-01 @@ -26,7 +26,7 @@ interactions: \"Updating\",\r\n \"isArmResource\": true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9716888c-2d8d-4a1b-94af-f77ba6a19c88?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/fc7b6c10-b0c3-4586-8859-c7a214f5ce6d?api-version=2020-12-01 cache-control: - no-cache content-length: @@ -34,11 +34,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:32:28 GMT + - Tue, 25 May 2021 10:23:56 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9716888c-2d8d-4a1b-94af-f77ba6a19c88?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/fc7b6c10-b0c3-4586-8859-c7a214f5ce6d?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -51,7 +51,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;7993 x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1194' status: code: 202 message: Accepted @@ -65,14 +65,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9716888c-2d8d-4a1b-94af-f77ba6a19c88?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/fc7b6c10-b0c3-4586-8859-c7a214f5ce6d?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:32:29.334036+00:00\",\r\n \"endTime\": - \"2021-04-06T03:32:29.4902656+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2021-05-25T10:23:56.663046+00:00\",\r\n \"endTime\": + \"2021-05-25T10:23:56.8036274+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"diskname10bb14a9\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/diskname10bb14a9\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"eastus\",\r\n @@ -80,20 +80,20 @@ interactions: \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": - \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\": \"2021-04-06T03:32:29.3496376+00:00\",\r\n + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\": \"2021-05-25T10:23:56.663046+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"939a9f87-eb30-492c-b4ae-58fae441644a\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"7d57443d-cb50-47df-9d87-bc7650a93122\",\r\n \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"name\": - \"9716888c-2d8d-4a1b-94af-f77ba6a19c88\"\r\n}" + \"fc7b6c10-b0c3-4586-8859-c7a214f5ce6d\"\r\n}" headers: cache-control: - no-cache content-length: - - '1113' + - '1112' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:32:30 GMT + - Tue, 25 May 2021 10:23:58 GMT expires: - '-1' pragma: @@ -110,7 +110,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;399958 + - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399958 status: code: 200 message: OK @@ -124,7 +124,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/diskname10bb14a9?api-version=2020-12-01 @@ -136,19 +136,19 @@ interactions: \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\": 200,\r\n \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": - \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\": \"2021-04-06T03:32:29.3496376+00:00\",\r\n + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"timeCreated\": \"2021-05-25T10:23:56.663046+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"939a9f87-eb30-492c-b4ae-58fae441644a\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"7d57443d-cb50-47df-9d87-bc7650a93122\",\r\n \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '889' + - '888' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:32:30 GMT + - Tue, 25 May 2021 10:23:58 GMT expires: - '-1' pragma: @@ -165,7 +165,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14992,Microsoft.Compute/LowCostGet30Min;119959 + - Microsoft.Compute/LowCostGet3Min;14990,Microsoft.Compute/LowCostGet30Min;119945 status: code: 200 message: OK @@ -184,7 +184,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotname10bb14a9?api-version=2020-12-01 @@ -192,12 +192,12 @@ interactions: body: string: "{\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceUri\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/diskname10bb14a9\",\r\n - \ \"sourceUniqueId\": \"939a9f87-eb30-492c-b4ae-58fae441644a\"\r\n },\r\n + \ \"sourceUniqueId\": \"7d57443d-cb50-47df-9d87-bc7650a93122\"\r\n },\r\n \ \"provisioningState\": \"Updating\",\r\n \"isArmResource\": true\r\n \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/ef7a684f-47e8-4ae6-b947-a2b165b81acb?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9be6d889-c356-4e1f-9c0c-4ea65feca743?api-version=2020-12-01 cache-control: - no-cache content-length: @@ -205,11 +205,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:32:30 GMT + - Tue, 25 May 2021 10:23:59 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/ef7a684f-47e8-4ae6-b947-a2b165b81acb?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9be6d889-c356-4e1f-9c0c-4ea65feca743?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -222,7 +222,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;997,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7996 x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1193' status: code: 202 message: Accepted @@ -236,27 +236,74 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/ef7a684f-47e8-4ae6-b947-a2b165b81acb?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9be6d889-c356-4e1f-9c0c-4ea65feca743?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:32:31.6158354+00:00\",\r\n \"endTime\": - \"2021-04-06T03:32:32.5065096+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2021-05-25T10:24:00.4130847+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"9be6d889-c356-4e1f-9c0c-4ea65feca743\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 10:24:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399956 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9be6d889-c356-4e1f-9c0c-4ea65feca743?api-version=2020-12-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-05-25T10:24:00.4130847+00:00\",\r\n \"endTime\": + \"2021-05-25T10:24:06.9600373+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshotname10bb14a9\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotname10bb14a9\",\r\n \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"eastus\",\r\n \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/diskname10bb14a9\",\r\n - \ \"sourceUniqueId\": \"939a9f87-eb30-492c-b4ae-58fae441644a\"\r\n },\r\n + \ \"sourceUniqueId\": \"7d57443d-cb50-47df-9d87-bc7650a93122\"\r\n },\r\n \ \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n - \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2021-04-06T03:32:31.6158354+00:00\",\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2021-05-25T10:24:00.4286899+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"afa376fb-3401-49a0-b517-54ea40d762e9\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"4692ec42-97af-430d-bb8d-89867051f2be\",\r\n \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}\r\n },\r\n \"name\": - \"ef7a684f-47e8-4ae6-b947-a2b165b81acb\"\r\n}" + \"9be6d889-c356-4e1f-9c0c-4ea65feca743\"\r\n}" headers: cache-control: - no-cache @@ -265,7 +312,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:32:33 GMT + - Tue, 25 May 2021 10:24:11 GMT expires: - '-1' pragma: @@ -282,7 +329,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49987,Microsoft.Compute/GetOperation30Min;399957 + - Microsoft.Compute/GetOperation3Min;49984,Microsoft.Compute/GetOperation30Min;399954 status: code: 200 message: OK @@ -296,7 +343,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotname10bb14a9?api-version=2020-12-01 @@ -307,11 +354,11 @@ interactions: \ \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n \ },\r\n \"properties\": {\r\n \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/diskname10bb14a9\",\r\n - \ \"sourceUniqueId\": \"939a9f87-eb30-492c-b4ae-58fae441644a\"\r\n },\r\n + \ \"sourceUniqueId\": \"7d57443d-cb50-47df-9d87-bc7650a93122\"\r\n },\r\n \ \"diskSizeGB\": 200,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n - \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2021-04-06T03:32:31.6158354+00:00\",\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2021-05-25T10:24:00.4286899+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"afa376fb-3401-49a0-b517-54ea40d762e9\",\r\n + \ \"diskSizeBytes\": 214748364800,\r\n \"uniqueId\": \"4692ec42-97af-430d-bb8d-89867051f2be\",\r\n \ \"networkAccessPolicy\": \"AllowAll\"\r\n }\r\n}" headers: cache-control: @@ -321,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:32:33 GMT + - Tue, 25 May 2021 10:24:11 GMT expires: - '-1' pragma: @@ -338,7 +385,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14991,Microsoft.Compute/LowCostGet30Min;119958 + - Microsoft.Compute/LowCostGet3Min;14989,Microsoft.Compute/LowCostGet30Min;119942 status: code: 200 message: OK @@ -357,7 +404,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9?api-version=2020-09-30 @@ -371,7 +418,7 @@ interactions: \ },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/b85d5717-38cd-4e59-860f-b343867b9e34?api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/11f3b960-e5ac-4a80-bf23-e450c6c3fcd9?api-version=2020-09-30 cache-control: - no-cache content-length: @@ -379,7 +426,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:32:34 GMT + - Tue, 25 May 2021 10:24:13 GMT expires: - '-1' pragma: @@ -394,7 +441,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGallery3Min;49,Microsoft.Compute/CreateUpdateGallery30Min;299 x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1192' status: code: 201 message: Created @@ -408,15 +455,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/b85d5717-38cd-4e59-860f-b343867b9e34?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/11f3b960-e5ac-4a80-bf23-e450c6c3fcd9?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:32:33.9111246+00:00\",\r\n \"endTime\": - \"2021-04-06T03:32:34.3642794+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"b85d5717-38cd-4e59-860f-b343867b9e34\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:24:13.7510523+00:00\",\r\n \"endTime\": + \"2021-05-25T10:24:13.9853913+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"11f3b960-e5ac-4a80-bf23-e450c6c3fcd9\"\r\n}" headers: cache-control: - no-cache @@ -425,7 +472,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:33:03 GMT + - Tue, 25 May 2021 10:24:44 GMT expires: - '-1' pragma: @@ -456,7 +503,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9?api-version=2020-09-30 @@ -475,7 +522,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:33:03 GMT + - Tue, 25 May 2021 10:24:44 GMT expires: - '-1' pragma: @@ -512,7 +559,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/applications/applicationname10bb14a9?api-version=2020-09-30 @@ -531,7 +578,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:33:03 GMT + - Tue, 25 May 2021 10:24:44 GMT expires: - '-1' pragma: @@ -546,7 +593,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGalleryApplication3Min;149,Microsoft.Compute/CreateUpdateGalleryApplication30Min;749 x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1191' status: code: 201 message: Created @@ -560,7 +607,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/applications/applicationname10bb14a9?api-version=2020-09-30 @@ -579,7 +626,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:33:34 GMT + - Tue, 25 May 2021 10:25:14 GMT expires: - '-1' pragma: @@ -616,7 +663,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9?api-version=2020-09-30 @@ -631,7 +678,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/fcb425fe-caf0-41bb-b687-9a92a9cd5c2d?api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/ed11ad2e-ea5e-4e69-badf-c77eabf23669?api-version=2020-09-30 cache-control: - no-cache content-length: @@ -639,7 +686,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:33:34 GMT + - Tue, 25 May 2021 10:25:16 GMT expires: - '-1' pragma: @@ -654,7 +701,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGalleryImage3Min;149,Microsoft.Compute/CreateUpdateGalleryImage30Min;749 x-ms-ratelimit-remaining-subscription-writes: - - '1191' + - '1190' status: code: 201 message: Created @@ -668,24 +715,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/fcb425fe-caf0-41bb-b687-9a92a9cd5c2d?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/ed11ad2e-ea5e-4e69-badf-c77eabf23669?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:33:34.567331+00:00\",\r\n \"endTime\": - \"2021-04-06T03:33:34.7079627+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"fcb425fe-caf0-41bb-b687-9a92a9cd5c2d\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:25:16.9232174+00:00\",\r\n \"endTime\": + \"2021-05-25T10:25:17.0325916+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"ed11ad2e-ea5e-4e69-badf-c77eabf23669\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:34:04 GMT + - Tue, 25 May 2021 10:25:47 GMT expires: - '-1' pragma: @@ -716,7 +763,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9?api-version=2020-09-30 @@ -737,7 +784,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:34:04 GMT + - Tue, 25 May 2021 10:25:47 GMT expires: - '-1' pragma: @@ -775,7 +822,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9/versions/1.0.0?api-version=2020-09-30 @@ -787,7 +834,7 @@ interactions: [\r\n {\r\n \"name\": \"East US\",\r\n \"regionalReplicaCount\": 2,\r\n \"storageAccountType\": \"Standard_ZRS\"\r\n }\r\n \ ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n - \ \"publishedDate\": \"2021-04-06T03:34:04.9892146+00:00\",\r\n \"storageAccountType\": + \ \"publishedDate\": \"2021-05-25T10:25:48.7514913+00:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"storageProfile\": {\r\n \"osDiskImage\": {\r\n \"hostCaching\": \"ReadOnly\",\r\n \"source\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotname10bb14a9\"\r\n @@ -795,7 +842,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/1088d204-908d-4ccb-b275-1e21ca79dba1?api-version=2020-09-30 cache-control: - no-cache content-length: @@ -803,7 +850,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:34:04 GMT + - Tue, 25 May 2021 10:25:49 GMT expires: - '-1' pragma: @@ -818,7 +865,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGalleryImageVersion3Min;374,Microsoft.Compute/CreateUpdateGalleryImageVersion30Min;1199 x-ms-ratelimit-remaining-subscription-writes: - - '1190' + - '1189' status: code: 201 message: Created @@ -832,23 +879,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/1088d204-908d-4ccb-b275-1e21ca79dba1?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:25:48.735868+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"1088d204-908d-4ccb-b275-1e21ca79dba1\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '133' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:35:04 GMT + - Tue, 25 May 2021 10:26:48 GMT expires: - '-1' pragma: @@ -879,23 +926,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/1088d204-908d-4ccb-b275-1e21ca79dba1?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:25:48.735868+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"1088d204-908d-4ccb-b275-1e21ca79dba1\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '133' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:36:05 GMT + - Tue, 25 May 2021 10:27:49 GMT expires: - '-1' pragma: @@ -926,23 +973,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/1088d204-908d-4ccb-b275-1e21ca79dba1?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:25:48.735868+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"1088d204-908d-4ccb-b275-1e21ca79dba1\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '133' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:37:05 GMT + - Tue, 25 May 2021 10:28:49 GMT expires: - '-1' pragma: @@ -973,23 +1020,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/1088d204-908d-4ccb-b275-1e21ca79dba1?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:25:48.735868+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"1088d204-908d-4ccb-b275-1e21ca79dba1\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '133' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:38:04 GMT + - Tue, 25 May 2021 10:29:49 GMT expires: - '-1' pragma: @@ -1020,23 +1067,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/1088d204-908d-4ccb-b275-1e21ca79dba1?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:25:48.735868+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"1088d204-908d-4ccb-b275-1e21ca79dba1\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '133' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:39:04 GMT + - Tue, 25 May 2021 10:30:50 GMT expires: - '-1' pragma: @@ -1067,23 +1114,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/1088d204-908d-4ccb-b275-1e21ca79dba1?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:25:48.735868+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"1088d204-908d-4ccb-b275-1e21ca79dba1\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '133' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:40:05 GMT + - Tue, 25 May 2021 10:31:50 GMT expires: - '-1' pragma: @@ -1114,23 +1161,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/1088d204-908d-4ccb-b275-1e21ca79dba1?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:25:48.735868+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"1088d204-908d-4ccb-b275-1e21ca79dba1\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '133' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:41:05 GMT + - Tue, 25 May 2021 10:32:50 GMT expires: - '-1' pragma: @@ -1161,23 +1208,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/1088d204-908d-4ccb-b275-1e21ca79dba1?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:25:48.735868+00:00\",\r\n \"endTime\": + \"2021-05-25T10:33:20.034481+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"1088d204-908d-4ccb-b275-1e21ca79dba1\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '182' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:42:04 GMT + - Tue, 25 May 2021 10:33:51 GMT expires: - '-1' pragma: @@ -1208,243 +1256,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 03:43:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4179 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 03:44:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4177 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 03:45:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4175 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 03:46:06 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4173 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/55327bc4-2236-4cc3-b1ed-870cdbace4cb?api-version=2020-09-30 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T03:34:04.9736125+00:00\",\r\n \"endTime\": - \"2021-04-06T03:46:28.4712215+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"55327bc4-2236-4cc3-b1ed-870cdbace4cb\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '184' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 03:47:06 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4171 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9/versions/1.0.0?api-version=2020-09-30 @@ -1456,7 +1268,7 @@ interactions: [\r\n {\r\n \"name\": \"East US\",\r\n \"regionalReplicaCount\": 2,\r\n \"storageAccountType\": \"Standard_ZRS\"\r\n }\r\n \ ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n - \ \"publishedDate\": \"2021-04-06T03:34:04.9892146+00:00\",\r\n \"storageAccountType\": + \ \"publishedDate\": \"2021-05-25T10:25:48.7514913+00:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"storageProfile\": {\r\n \"osDiskImage\": {\r\n \"sizeInGB\": 200,\r\n \"hostCaching\": \"ReadOnly\",\r\n \ \"source\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotname10bb14a9\"\r\n @@ -1470,7 +1282,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:47:06 GMT + - Tue, 25 May 2021 10:33:51 GMT expires: - '-1' pragma: @@ -1501,7 +1313,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9/versions/1.0.0?api-version=2020-09-30 @@ -1513,7 +1325,7 @@ interactions: [\r\n {\r\n \"name\": \"East US\",\r\n \"regionalReplicaCount\": 2,\r\n \"storageAccountType\": \"Standard_ZRS\"\r\n }\r\n \ ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n - \ \"publishedDate\": \"2021-04-06T03:34:04.9892146+00:00\",\r\n \"storageAccountType\": + \ \"publishedDate\": \"2021-05-25T10:25:48.7514913+00:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"storageProfile\": {\r\n \"osDiskImage\": {\r\n \"sizeInGB\": 200,\r\n \"hostCaching\": \"ReadOnly\",\r\n \ \"source\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotname10bb14a9\"\r\n @@ -1527,7 +1339,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:47:06 GMT + - Tue, 25 May 2021 10:33:51 GMT expires: - '-1' pragma: @@ -1558,7 +1370,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9?api-version=2020-09-30 @@ -1579,7 +1391,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:47:06 GMT + - Tue, 25 May 2021 10:33:51 GMT expires: - '-1' pragma: @@ -1596,7 +1408,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGalleryImage3Min;599,Microsoft.Compute/GetGalleryImage30Min;2991 + - Microsoft.Compute/GetGalleryImage3Min;599,Microsoft.Compute/GetGalleryImage30Min;2994 status: code: 200 message: OK @@ -1610,7 +1422,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/applications/applicationname10bb14a9?api-version=2020-09-30 @@ -1629,7 +1441,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:47:06 GMT + - Tue, 25 May 2021 10:33:51 GMT expires: - '-1' pragma: @@ -1646,7 +1458,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGalleryApplication3Min;299,Microsoft.Compute/GetGalleryApplication30Min;1995 + - Microsoft.Compute/GetGalleryApplication3Min;299,Microsoft.Compute/GetGalleryApplication30Min;1996 status: code: 200 message: OK @@ -1660,7 +1472,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9?api-version=2020-09-30 @@ -1679,7 +1491,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:47:06 GMT + - Tue, 25 May 2021 10:33:51 GMT expires: - '-1' pragma: @@ -1696,7 +1508,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGallery3Min;349,Microsoft.Compute/GetGallery30Min;2492 + - Microsoft.Compute/GetGallery3Min;349,Microsoft.Compute/GetGallery30Min;2494 status: code: 200 message: OK @@ -1716,7 +1528,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9/versions/1.0.0?api-version=2020-09-30 @@ -1728,7 +1540,7 @@ interactions: [\r\n {\r\n \"name\": \"East US\",\r\n \"regionalReplicaCount\": 2,\r\n \"storageAccountType\": \"Standard_ZRS\"\r\n }\r\n \ ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n - \ \"publishedDate\": \"2021-04-06T03:34:04.9892146+00:00\",\r\n \"storageAccountType\": + \ \"publishedDate\": \"2021-05-25T10:25:48.7514913+00:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"storageProfile\": {\r\n \"osDiskImage\": {\r\n \"sizeInGB\": 200,\r\n \"hostCaching\": \"ReadOnly\",\r\n \ \"source\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotname10bb14a9\"\r\n @@ -1736,7 +1548,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/36ac89b1-3a96-4438-92b4-13ce2c27308a?api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/bafdd636-667d-4d5e-9aec-4b286c22b69d?api-version=2020-09-30 cache-control: - no-cache content-length: @@ -1744,7 +1556,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:47:06 GMT + - Tue, 25 May 2021 10:33:51 GMT expires: - '-1' pragma: @@ -1763,7 +1575,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGalleryImageVersion3Min;374,Microsoft.Compute/CreateUpdateGalleryImageVersion30Min;1198 x-ms-ratelimit-remaining-subscription-writes: - - '1189' + - '1188' status: code: 200 message: OK @@ -1777,14 +1589,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/36ac89b1-3a96-4438-92b4-13ce2c27308a?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/bafdd636-667d-4d5e-9aec-4b286c22b69d?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:47:06.6586587+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"36ac89b1-3a96-4438-92b4-13ce2c27308a\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:33:52.1439125+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"bafdd636-667d-4d5e-9aec-4b286c22b69d\"\r\n}" headers: cache-control: - no-cache @@ -1793,7 +1605,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:48:06 GMT + - Tue, 25 May 2021 10:34:52 GMT expires: - '-1' pragma: @@ -1810,7 +1622,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4169 + - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4179 status: code: 200 message: OK @@ -1824,14 +1636,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/36ac89b1-3a96-4438-92b4-13ce2c27308a?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/bafdd636-667d-4d5e-9aec-4b286c22b69d?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:47:06.6586587+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"36ac89b1-3a96-4438-92b4-13ce2c27308a\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:33:52.1439125+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"bafdd636-667d-4d5e-9aec-4b286c22b69d\"\r\n}" headers: cache-control: - no-cache @@ -1840,7 +1652,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:49:06 GMT + - Tue, 25 May 2021 10:35:52 GMT expires: - '-1' pragma: @@ -1857,7 +1669,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1196,Microsoft.Compute/GetOperationStatus30Min;4168 + - Microsoft.Compute/GetOperationStatus3Min;1196,Microsoft.Compute/GetOperationStatus30Min;4178 status: code: 200 message: OK @@ -1871,15 +1683,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/36ac89b1-3a96-4438-92b4-13ce2c27308a?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/bafdd636-667d-4d5e-9aec-4b286c22b69d?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:47:06.6586587+00:00\",\r\n \"endTime\": - \"2021-04-06T03:49:36.8148073+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"36ac89b1-3a96-4438-92b4-13ce2c27308a\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:33:52.1439125+00:00\",\r\n \"endTime\": + \"2021-05-25T10:36:22.3007253+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"bafdd636-667d-4d5e-9aec-4b286c22b69d\"\r\n}" headers: cache-control: - no-cache @@ -1888,7 +1700,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:50:06 GMT + - Tue, 25 May 2021 10:36:52 GMT expires: - '-1' pragma: @@ -1905,7 +1717,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1197,Microsoft.Compute/GetOperationStatus30Min;4167 + - Microsoft.Compute/GetOperationStatus3Min;1197,Microsoft.Compute/GetOperationStatus30Min;4177 status: code: 200 message: OK @@ -1919,7 +1731,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9/versions/1.0.0?api-version=2020-09-30 @@ -1931,7 +1743,7 @@ interactions: [\r\n {\r\n \"name\": \"East US\",\r\n \"regionalReplicaCount\": 2,\r\n \"storageAccountType\": \"Standard_ZRS\"\r\n }\r\n \ ],\r\n \"replicaCount\": 1,\r\n \"excludeFromLatest\": false,\r\n - \ \"publishedDate\": \"2021-04-06T03:34:04.9892146+00:00\",\r\n \"storageAccountType\": + \ \"publishedDate\": \"2021-05-25T10:25:48.7514913+00:00\",\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"storageProfile\": {\r\n \"osDiskImage\": {\r\n \"sizeInGB\": 200,\r\n \"hostCaching\": \"ReadOnly\",\r\n \ \"source\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotname10bb14a9\"\r\n @@ -1945,7 +1757,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:50:06 GMT + - Tue, 25 May 2021 10:36:53 GMT expires: - '-1' pragma: @@ -1962,7 +1774,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGalleryImageVersion3Min;1999,Microsoft.Compute/GetGalleryImageVersion30Min;9992 + - Microsoft.Compute/GetGalleryImageVersion3Min;1997,Microsoft.Compute/GetGalleryImageVersion30Min;9990 status: code: 200 message: OK @@ -1981,7 +1793,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9?api-version=2020-09-30 @@ -1996,7 +1808,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/c9f2161f-0d07-4f64-81a1-f963e0b3c64e?api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/faf364c7-1166-4e60-9277-e62e82ef4be2?api-version=2020-09-30 cache-control: - no-cache content-length: @@ -2004,7 +1816,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:50:06 GMT + - Tue, 25 May 2021 10:36:53 GMT expires: - '-1' pragma: @@ -2023,7 +1835,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGalleryImage3Min;149,Microsoft.Compute/CreateUpdateGalleryImage30Min;748 x-ms-ratelimit-remaining-subscription-writes: - - '1188' + - '1187' status: code: 200 message: OK @@ -2037,15 +1849,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/c9f2161f-0d07-4f64-81a1-f963e0b3c64e?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/faf364c7-1166-4e60-9277-e62e82ef4be2?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:50:07.0803624+00:00\",\r\n \"endTime\": - \"2021-04-06T03:50:07.1116262+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"c9f2161f-0d07-4f64-81a1-f963e0b3c64e\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:36:53.3165375+00:00\",\r\n \"endTime\": + \"2021-05-25T10:36:53.3477597+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"faf364c7-1166-4e60-9277-e62e82ef4be2\"\r\n}" headers: cache-control: - no-cache @@ -2054,7 +1866,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:50:37 GMT + - Tue, 25 May 2021 10:37:23 GMT expires: - '-1' pragma: @@ -2071,7 +1883,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1196,Microsoft.Compute/GetOperationStatus30Min;4166 + - Microsoft.Compute/GetOperationStatus3Min;1196,Microsoft.Compute/GetOperationStatus30Min;4176 status: code: 200 message: OK @@ -2085,7 +1897,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9?api-version=2020-09-30 @@ -2106,7 +1918,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:50:37 GMT + - Tue, 25 May 2021 10:37:23 GMT expires: - '-1' pragma: @@ -2123,7 +1935,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGalleryImage3Min;598,Microsoft.Compute/GetGalleryImage30Min;2989 + - Microsoft.Compute/GetGalleryImage3Min;593,Microsoft.Compute/GetGalleryImage30Min;2987 status: code: 200 message: OK @@ -2143,7 +1955,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/applications/applicationname10bb14a9?api-version=2020-09-30 @@ -2163,7 +1975,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:50:37 GMT + - Tue, 25 May 2021 10:37:23 GMT expires: - '-1' pragma: @@ -2182,7 +1994,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGalleryApplication3Min;149,Microsoft.Compute/CreateUpdateGalleryApplication30Min;748 x-ms-ratelimit-remaining-subscription-writes: - - '1187' + - '1186' status: code: 200 message: OK @@ -2200,7 +2012,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9?api-version=2020-09-30 @@ -2214,7 +2026,7 @@ interactions: \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/6d9da296-24dd-458b-8341-297a15f025f7?api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/5b3db9f6-c06b-40a0-96e7-f5ab539aa7fc?api-version=2020-09-30 cache-control: - no-cache content-length: @@ -2222,7 +2034,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:50:37 GMT + - Tue, 25 May 2021 10:37:23 GMT expires: - '-1' pragma: @@ -2241,7 +2053,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGallery3Min;49,Microsoft.Compute/CreateUpdateGallery30Min;298 x-ms-ratelimit-remaining-subscription-writes: - - '1186' + - '1185' status: code: 200 message: OK @@ -2255,15 +2067,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/6d9da296-24dd-458b-8341-297a15f025f7?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/5b3db9f6-c06b-40a0-96e7-f5ab539aa7fc?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:50:37.3147441+00:00\",\r\n \"endTime\": - \"2021-04-06T03:50:37.3460274+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"6d9da296-24dd-458b-8341-297a15f025f7\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:37:23.9104507+00:00\",\r\n \"endTime\": + \"2021-05-25T10:37:23.9416679+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"5b3db9f6-c06b-40a0-96e7-f5ab539aa7fc\"\r\n}" headers: cache-control: - no-cache @@ -2272,7 +2084,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:51:06 GMT + - Tue, 25 May 2021 10:37:53 GMT expires: - '-1' pragma: @@ -2289,7 +2101,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1196,Microsoft.Compute/GetOperationStatus30Min;4165 + - Microsoft.Compute/GetOperationStatus3Min;1196,Microsoft.Compute/GetOperationStatus30Min;4175 status: code: 200 message: OK @@ -2303,7 +2115,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9?api-version=2020-09-30 @@ -2322,7 +2134,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:51:06 GMT + - Tue, 25 May 2021 10:37:53 GMT expires: - '-1' pragma: @@ -2339,7 +2151,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGallery3Min;348,Microsoft.Compute/GetGallery30Min;2490 + - Microsoft.Compute/GetGallery3Min;348,Microsoft.Compute/GetGallery30Min;2488 status: code: 200 message: OK @@ -2355,7 +2167,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9/versions/1.0.0?api-version=2020-09-30 @@ -2364,17 +2176,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/5c4f966f-ed2c-44a5-a4f4-20e7bbfec518?api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/b7f9938b-5f51-41ea-8e2c-d7973d1d57ae?api-version=2020-09-30 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 03:51:07 GMT + - Tue, 25 May 2021 10:37:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/5c4f966f-ed2c-44a5-a4f4-20e7bbfec518?monitor=true&api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/b7f9938b-5f51-41ea-8e2c-d7973d1d57ae?monitor=true&api-version=2020-09-30 pragma: - no-cache server: @@ -2387,7 +2199,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteGalleryImageVersion3Min;149,Microsoft.Compute/DeleteGalleryImageVersion30Min;999 x-ms-ratelimit-remaining-subscription-deletes: - - '14996' + - '14997' status: code: 202 message: Accepted @@ -2401,23 +2213,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/5c4f966f-ed2c-44a5-a4f4-20e7bbfec518?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/b7f9938b-5f51-41ea-8e2c-d7973d1d57ae?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:51:07.5491+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"5c4f966f-ed2c-44a5-a4f4-20e7bbfec518\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:37:54.6293087+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"b7f9938b-5f51-41ea-8e2c-d7973d1d57ae\"\r\n}" headers: cache-control: - no-cache content-length: - - '131' + - '134' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:52:07 GMT + - Tue, 25 May 2021 10:38:54 GMT expires: - '-1' pragma: @@ -2434,7 +2246,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1196,Microsoft.Compute/GetOperationStatus30Min;4164 + - Microsoft.Compute/GetOperationStatus3Min;1196,Microsoft.Compute/GetOperationStatus30Min;4174 status: code: 200 message: OK @@ -2448,24 +2260,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/5c4f966f-ed2c-44a5-a4f4-20e7bbfec518?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/b7f9938b-5f51-41ea-8e2c-d7973d1d57ae?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:51:07.5491+00:00\",\r\n \"endTime\": - \"2021-04-06T03:52:37.7520942+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"5c4f966f-ed2c-44a5-a4f4-20e7bbfec518\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:37:54.6293087+00:00\",\r\n \"endTime\": + \"2021-05-25T10:39:24.8172883+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"b7f9938b-5f51-41ea-8e2c-d7973d1d57ae\"\r\n}" headers: cache-control: - no-cache content-length: - - '181' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:53:07 GMT + - Tue, 25 May 2021 10:39:54 GMT expires: - '-1' pragma: @@ -2482,7 +2294,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4162 + - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4172 status: code: 200 message: OK @@ -2498,7 +2310,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/applications/applicationname10bb14a9?api-version=2020-09-30 @@ -2511,7 +2323,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 03:53:07 GMT + - Tue, 25 May 2021 10:39:54 GMT expires: - '-1' pragma: @@ -2526,7 +2338,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteGalleryApplication3Min;49,Microsoft.Compute/DeleteGalleryApplication30Min;299 x-ms-ratelimit-remaining-subscription-deletes: - - '14995' + - '14996' status: code: 200 message: OK @@ -2542,7 +2354,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotname10bb14a9/endGetAccess?api-version=2020-12-01 @@ -2551,17 +2363,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/05a2cffd-5327-47cc-951c-f05157cf22cd?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/e69a14d7-bc50-4ba2-91be-c2227c70b6ae?api-version=2020-12-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 03:53:07 GMT + - Tue, 25 May 2021 10:39:55 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/05a2cffd-5327-47cc-951c-f05157cf22cd?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/e69a14d7-bc50-4ba2-91be-c2227c70b6ae?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -2574,7 +2386,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;999,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7994 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1194' status: code: 202 message: Accepted @@ -2588,15 +2400,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/05a2cffd-5327-47cc-951c-f05157cf22cd?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/e69a14d7-bc50-4ba2-91be-c2227c70b6ae?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:53:07.9222784+00:00\",\r\n \"endTime\": - \"2021-04-06T03:53:08.0628926+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"05a2cffd-5327-47cc-951c-f05157cf22cd\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:39:55.9304937+00:00\",\r\n \"endTime\": + \"2021-05-25T10:39:56.0242185+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"e69a14d7-bc50-4ba2-91be-c2227c70b6ae\"\r\n}" headers: cache-control: - no-cache @@ -2605,7 +2417,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:53:38 GMT + - Tue, 25 May 2021 10:40:25 GMT expires: - '-1' pragma: @@ -2622,7 +2434,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;399925 + - Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;399923 status: code: 200 message: OK @@ -2636,10 +2448,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/05a2cffd-5327-47cc-951c-f05157cf22cd?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/e69a14d7-bc50-4ba2-91be-c2227c70b6ae?monitor=true&api-version=2020-12-01 response: body: string: '' @@ -2649,7 +2461,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 03:53:38 GMT + - Tue, 25 May 2021 10:40:26 GMT expires: - '-1' pragma: @@ -2662,7 +2474,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399924 + - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399922 status: code: 200 message: OK @@ -2678,7 +2490,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/snapshots/snapshotname10bb14a9?api-version=2020-12-01 @@ -2687,17 +2499,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9d257b67-ab3e-49ed-866b-04c91a78c973?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/3d72010b-e47b-4262-a3da-005993839ba9?api-version=2020-12-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 03:53:38 GMT + - Tue, 25 May 2021 10:40:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9d257b67-ab3e-49ed-866b-04c91a78c973?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/3d72010b-e47b-4262-a3da-005993839ba9?monitor=true&api-version=2020-12-01 pragma: - no-cache server: @@ -2710,7 +2522,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteDisks3Min;2996,Microsoft.Compute/DeleteDisks30Min;23990 x-ms-ratelimit-remaining-subscription-deletes: - - '14994' + - '14995' status: code: 202 message: Accepted @@ -2724,24 +2536,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/9d257b67-ab3e-49ed-866b-04c91a78c973?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/DiskOperations/3d72010b-e47b-4262-a3da-005993839ba9?api-version=2020-12-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:53:38.1888278+00:00\",\r\n \"endTime\": - \"2021-04-06T03:53:38.423367+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"9d257b67-ab3e-49ed-866b-04c91a78c973\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:40:26.6964546+00:00\",\r\n \"endTime\": + \"2021-05-25T10:40:28.5245916+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"3d72010b-e47b-4262-a3da-005993839ba9\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:54:07 GMT + - Tue, 25 May 2021 10:40:56 GMT expires: - '-1' pragma: @@ -2758,7 +2570,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49993,Microsoft.Compute/GetOperation30Min;399922 + - Microsoft.Compute/GetOperation3Min;49993,Microsoft.Compute/GetOperation30Min;399920 status: code: 200 message: OK @@ -2774,7 +2586,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9/images/imagex10bb14a9?api-version=2020-09-30 @@ -2783,17 +2595,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/d90b6ce9-6b27-4052-978d-4f5779e6a17f?api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/a3b73db1-9631-46e8-805a-e26c2587e7aa?api-version=2020-09-30 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 03:54:07 GMT + - Tue, 25 May 2021 10:40:57 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/d90b6ce9-6b27-4052-978d-4f5779e6a17f?monitor=true&api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/a3b73db1-9631-46e8-805a-e26c2587e7aa?monitor=true&api-version=2020-09-30 pragma: - no-cache server: @@ -2806,7 +2618,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteGalleryImage3Min;49,Microsoft.Compute/DeleteGalleryImage30Min;299 x-ms-ratelimit-remaining-subscription-deletes: - - '14993' + - '14994' status: code: 202 message: Accepted @@ -2820,15 +2632,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/d90b6ce9-6b27-4052-978d-4f5779e6a17f?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/a3b73db1-9631-46e8-805a-e26c2587e7aa?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:54:08.4395139+00:00\",\r\n \"endTime\": - \"2021-04-06T03:54:08.7051513+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"d90b6ce9-6b27-4052-978d-4f5779e6a17f\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:40:57.3646382+00:00\",\r\n \"endTime\": + \"2021-05-25T10:40:57.5989581+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"a3b73db1-9631-46e8-805a-e26c2587e7aa\"\r\n}" headers: cache-control: - no-cache @@ -2837,7 +2649,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:54:38 GMT + - Tue, 25 May 2021 10:41:26 GMT expires: - '-1' pragma: @@ -2854,7 +2666,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1194,Microsoft.Compute/GetOperationStatus30Min;4159 + - Microsoft.Compute/GetOperationStatus3Min;1194,Microsoft.Compute/GetOperationStatus30Min;4169 status: code: 200 message: OK @@ -2870,7 +2682,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/galleries/galleryname10bb14a9?api-version=2020-09-30 @@ -2879,17 +2691,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/9a5aaa6a-3461-4a6f-8071-23c60221b84c?api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/e4c9904f-7426-4a87-bb64-34bba642d194?api-version=2020-09-30 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 03:54:38 GMT + - Tue, 25 May 2021 10:41:27 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/9a5aaa6a-3461-4a6f-8071-23c60221b84c?monitor=true&api-version=2020-09-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/e4c9904f-7426-4a87-bb64-34bba642d194?monitor=true&api-version=2020-09-30 pragma: - no-cache server: @@ -2902,7 +2714,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteGallery3Min;49,Microsoft.Compute/DeleteGallery30Min;299 x-ms-ratelimit-remaining-subscription-deletes: - - '14992' + - '14993' status: code: 202 message: Accepted @@ -2916,24 +2728,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/9a5aaa6a-3461-4a6f-8071-23c60221b84c?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/e4c9904f-7426-4a87-bb64-34bba642d194?api-version=2020-09-30 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:54:38.6426433+00:00\",\r\n \"endTime\": - \"2021-04-06T03:54:38.7520893+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"9a5aaa6a-3461-4a6f-8071-23c60221b84c\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:41:27.974112+00:00\",\r\n \"endTime\": + \"2021-05-25T10:41:28.0678418+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"e4c9904f-7426-4a87-bb64-34bba642d194\"\r\n}" headers: cache-control: - no-cache content-length: - - '184' + - '183' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:08 GMT + - Tue, 25 May 2021 10:41:58 GMT expires: - '-1' pragma: @@ -2950,7 +2762,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1194,Microsoft.Compute/GetOperationStatus30Min;4157 + - Microsoft.Compute/GetOperationStatus3Min;1194,Microsoft.Compute/GetOperationStatus30Min;4167 status: code: 200 message: OK diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm.yaml index 4a54bd73c2a1..c72e7bd7a94a 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm.yaml @@ -14,17 +14,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamex15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff\",\r\n - \ \"etag\": \"W/\\\"0fb85529-f061-4938-88ef-97caf7f5db69\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"607dec19-1665-41fc-8ffa-b27c0db7cb9e\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"d7b16667-8b8f-4d82-9dac-9c10fcf5e028\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"eda75f7c-b5ee-40ac-bd8b-b62c68636fbe\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -32,7 +32,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c72d58d7-9440-4fda-bc38-31682465df5a?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/977a6c93-979f-493b-bb9b-907c1f4e0b94?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -40,7 +40,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:09 GMT + - Tue, 25 May 2021 10:42:04 GMT expires: - '-1' pragma: @@ -53,9 +53,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8c00316b-aa8e-4428-9504-e7c803a8268a + - f4580d1b-73aa-4959-bd48-397adba92b1e x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1196' status: code: 201 message: Created @@ -69,10 +69,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c72d58d7-9440-4fda-bc38-31682465df5a?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/977a6c93-979f-493b-bb9b-907c1f4e0b94?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -84,7 +84,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:12 GMT + - Tue, 25 May 2021 10:42:07 GMT expires: - '-1' pragma: @@ -101,7 +101,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 30c00b4a-47ba-4c11-ac04-9007fc9e6579 + - 06316726-9b2d-482b-9b26-41d179607e0b status: code: 200 message: OK @@ -115,17 +115,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamex15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff\",\r\n - \ \"etag\": \"W/\\\"0cb4e3b5-291c-40eb-b915-01701071f641\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"3e23827e-5b9b-4111-a89a-cb22a8a05aa8\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"d7b16667-8b8f-4d82-9dac-9c10fcf5e028\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"eda75f7c-b5ee-40ac-bd8b-b62c68636fbe\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -137,9 +137,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:12 GMT + - Tue, 25 May 2021 10:42:07 GMT etag: - - W/"0cb4e3b5-291c-40eb-b915-01701071f641" + - W/"3e23827e-5b9b-4111-a89a-cb22a8a05aa8" expires: - '-1' pragma: @@ -156,7 +156,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4d828aaa-84bf-4a0b-b7f7-590e990856df + - 40cf46b4-ce95-4b2e-9074-88508521899a status: code: 200 message: OK @@ -174,21 +174,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff/subnets/subnetx15cf0eff?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff/subnets/subnetx15cf0eff?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetx15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff/subnets/subnetx15cf0eff\",\r\n - \ \"etag\": \"W/\\\"286f88f3-6aa4-4d69-a4e5-b972101f54c9\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"651a9e1b-db7d-4009-ab68-3232fc1de4d4\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/615b1565-6ddc-4b8a-a776-3ca12cff52f7?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/97f1d5e8-3d2a-4fd0-ba15-6b47419d0626?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -196,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:12 GMT + - Tue, 25 May 2021 10:42:08 GMT expires: - '-1' pragma: @@ -209,9 +209,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 66aa494c-ab14-44a7-9238-2c8919bf5367 + - fb476dd5-d6d8-45b6-a04e-a0457b612d65 x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1195' status: code: 201 message: Created @@ -225,10 +225,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/615b1565-6ddc-4b8a-a776-3ca12cff52f7?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/97f1d5e8-3d2a-4fd0-ba15-6b47419d0626?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -240,7 +240,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:15 GMT + - Tue, 25 May 2021 10:42:11 GMT expires: - '-1' pragma: @@ -257,7 +257,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c866b961-c3db-457d-936e-4caa70107bfd + - 1f40d2ae-f7cb-47db-ad60-a22ffcf4a066 status: code: 200 message: OK @@ -271,14 +271,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff/subnets/subnetx15cf0eff?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff/subnets/subnetx15cf0eff?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetx15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex15cf0eff/subnets/subnetx15cf0eff\",\r\n - \ \"etag\": \"W/\\\"2543eb79-9c0a-430b-ac51-7ca7f62a700a\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"5c9a8b33-1ad4-4c3b-bda8-8554c140e658\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -291,9 +291,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:16 GMT + - Tue, 25 May 2021 10:42:11 GMT etag: - - W/"2543eb79-9c0a-430b-ac51-7ca7f62a700a" + - W/"5c9a8b33-1ad4-4c3b-bda8-8554c140e658" expires: - '-1' pragma: @@ -310,7 +310,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c646e04b-8a37-4fda-b7d8-814e5fad988f + - c3a66ee7-d65d-4e5c-807c-172c91f7fe09 status: code: 200 message: OK @@ -329,18 +329,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"interfacex15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff\",\r\n - \ \"etag\": \"W/\\\"055f5ad0-48ed-4816-8c37-64d22aa05d78\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"a40ad757-4086-4a4c-822a-3edea638fbbc\\\"\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"30de6a8b-f282-467e-9729-6559e812e07c\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"79ed2af1-693b-49cd-a041-551e40730d7d\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff/ipConfigurations/MyIpConfig\",\r\n - \ \"etag\": \"W/\\\"055f5ad0-48ed-4816-8c37-64d22aa05d78\\\"\",\r\n + \ \"etag\": \"W/\\\"a40ad757-4086-4a4c-822a-3edea638fbbc\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -348,7 +348,7 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"m3tldv2probe1hnmtqipz3pafa.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": + \"prp0p1powwwebpmlwywgqy1pxg.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"hostedWorkloads\": [],\r\n \ \"tapConfigurations\": [],\r\n \"nicType\": \"Standard\"\r\n },\r\n \ \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" @@ -356,7 +356,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/cd771f05-c94a-4afb-8985-e81cebba5393?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/57a80478-e843-4168-8fe5-86f8df571f60?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -364,7 +364,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:16 GMT + - Tue, 25 May 2021 10:42:12 GMT expires: - '-1' pragma: @@ -377,9 +377,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 80134e98-42d8-4d8b-bce2-5a73eba7da7c + - be21ce33-82c7-4892-964b-a37db831d47b x-ms-ratelimit-remaining-subscription-writes: - - '1191' + - '1194' status: code: 201 message: Created @@ -393,10 +393,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/cd771f05-c94a-4afb-8985-e81cebba5393?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/57a80478-e843-4168-8fe5-86f8df571f60?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -408,7 +408,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:45 GMT + - Tue, 25 May 2021 10:42:43 GMT expires: - '-1' pragma: @@ -425,7 +425,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c785ecad-855c-492a-b4c2-fcb526d809be + - a87a87cd-fd34-4b79-aa61-726bd6d2989f status: code: 200 message: OK @@ -439,18 +439,18 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"interfacex15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff\",\r\n - \ \"etag\": \"W/\\\"055f5ad0-48ed-4816-8c37-64d22aa05d78\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"a40ad757-4086-4a4c-822a-3edea638fbbc\\\"\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"30de6a8b-f282-467e-9729-6559e812e07c\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"79ed2af1-693b-49cd-a041-551e40730d7d\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff/ipConfigurations/MyIpConfig\",\r\n - \ \"etag\": \"W/\\\"055f5ad0-48ed-4816-8c37-64d22aa05d78\\\"\",\r\n + \ \"etag\": \"W/\\\"a40ad757-4086-4a4c-822a-3edea638fbbc\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -458,7 +458,7 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"m3tldv2probe1hnmtqipz3pafa.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": + \"prp0p1powwwebpmlwywgqy1pxg.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"hostedWorkloads\": [],\r\n \ \"tapConfigurations\": [],\r\n \"nicType\": \"Standard\"\r\n },\r\n \ \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" @@ -470,9 +470,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:45 GMT + - Tue, 25 May 2021 10:42:43 GMT etag: - - W/"055f5ad0-48ed-4816-8c37-64d22aa05d78" + - W/"a40ad757-4086-4a4c-822a-3edea638fbbc" expires: - '-1' pragma: @@ -489,7 +489,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 2cb3ea30-c762-4f0f-b6df-6faa730f07e4 + - e07f5470-8d32-4bf0-b9c3-e5790feab943 status: code: 200 message: OK @@ -516,36 +516,38 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinex15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"18860350-8851-48b5-a029-7b2cf4b34a09\",\r\n + \ \"properties\": {\r\n \"vmId\": \"59f59d01-504a-456a-b061-93cead79500b\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"14393.4402.2105052108\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n - \ \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": [\r\n {\r\n - \ \"lun\": 0,\r\n \"createOption\": \"Empty\",\r\n \"caching\": - \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": - \"Standard_LRS\"\r\n },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n \"createOption\": + \ \"diskSizeGB\": 127,\r\n \"deleteOption\": \"Detach\"\r\n },\r\n + \ \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n - \ \"diskSizeGB\": 1023,\r\n \"toBeDetached\": false\r\n }\r\n - \ ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"myVM\",\r\n - \ \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + \ \"diskSizeGB\": 1023,\r\n \"toBeDetached\": false,\r\n + \ \"deleteOption\": \"Detach\"\r\n },\r\n {\r\n \"lun\": + 1,\r\n \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n + \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": + false,\r\n \"deleteOption\": \"Detach\"\r\n }\r\n ]\r\n + \ },\r\n \"osProfile\": {\r\n \"computerName\": \"myVM\",\r\n \"adminUsername\": + \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": + true,\r\n \"enableAutomaticUpdates\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"AutomaticByOS\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff\",\"properties\":{\"primary\":true}}]},\r\n \ \"provisioningState\": \"Creating\"\r\n }\r\n}" @@ -553,15 +555,15 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/0409edb1-87c3-4a74-9fab-faa109231a7d?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b7d07f39-4fdf-4cd1-8381-f44b3bd1a804?api-version=2021-03-01 cache-control: - no-cache content-length: - - '2327' + - '2481' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:46 GMT + - Tue, 25 May 2021 10:42:47 GMT expires: - '-1' pragma: @@ -576,7 +578,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/PutVM3Min;744,Microsoft.Compute/PutVM30Min;3728 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 201 message: Created @@ -590,14 +592,61 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b7d07f39-4fdf-4cd1-8381-f44b3bd1a804?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-05-25T10:42:46.1815244+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"b7d07f39-4fdf-4cd1-8381-f44b3bd1a804\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 10:42:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29982 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/0409edb1-87c3-4a74-9fab-faa109231a7d?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b7d07f39-4fdf-4cd1-8381-f44b3bd1a804?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:55:47.5219439+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"0409edb1-87c3-4a74-9fab-faa109231a7d\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:42:46.1815244+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"b7d07f39-4fdf-4cd1-8381-f44b3bd1a804\"\r\n}" headers: cache-control: - no-cache @@ -606,7 +655,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:55:56 GMT + - Tue, 25 May 2021 10:43:46 GMT expires: - '-1' pragma: @@ -623,7 +672,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29995 + - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29981 status: code: 200 message: OK @@ -637,14 +686,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/0409edb1-87c3-4a74-9fab-faa109231a7d?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b7d07f39-4fdf-4cd1-8381-f44b3bd1a804?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:55:47.5219439+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"0409edb1-87c3-4a74-9fab-faa109231a7d\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:42:46.1815244+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"b7d07f39-4fdf-4cd1-8381-f44b3bd1a804\"\r\n}" headers: cache-control: - no-cache @@ -653,7 +702,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:56:47 GMT + - Tue, 25 May 2021 10:44:17 GMT expires: - '-1' pragma: @@ -670,7 +719,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29994 + - Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29980 status: code: 200 message: OK @@ -684,15 +733,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/0409edb1-87c3-4a74-9fab-faa109231a7d?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b7d07f39-4fdf-4cd1-8381-f44b3bd1a804?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:55:47.5219439+00:00\",\r\n \"endTime\": - \"2021-04-06T03:57:04.9285232+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"0409edb1-87c3-4a74-9fab-faa109231a7d\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:42:46.1815244+00:00\",\r\n \"endTime\": + \"2021-05-25T10:44:34.1659812+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"b7d07f39-4fdf-4cd1-8381-f44b3bd1a804\"\r\n}" headers: cache-control: - no-cache @@ -701,7 +750,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:57:17 GMT + - Tue, 25 May 2021 10:44:47 GMT expires: - '-1' pragma: @@ -718,7 +767,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29992 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29978 status: code: 200 message: OK @@ -732,41 +781,43 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinex15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"18860350-8851-48b5-a029-7b2cf4b34a09\",\r\n + \ \"properties\": {\r\n \"vmId\": \"59f59d01-504a-456a-b061-93cead79500b\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"14393.4402.2105052108\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk\"\r\n - \ },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": - [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"virtualmachinex15cf0eff_disk2_44d64ab7bcc34536b575766404056e48\",\r\n + \ },\r\n \"diskSizeGB\": 127,\r\n \"deleteOption\": \"Detach\"\r\n + \ },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n + \ \"name\": \"virtualmachinex15cf0eff_disk2_d0afd54c9c45480e8b9b99601fdd65ef\",\r\n \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk2_44d64ab7bcc34536b575766404056e48\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk2_d0afd54c9c45480e8b9b99601fdd65ef\"\r\n \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n \"name\": - \"virtualmachinex15cf0eff_disk3_0f2f71ddf60341a3bbbf249bd5b2fcbd\",\r\n \"createOption\": - \"Empty\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk3_0f2f71ddf60341a3bbbf249bd5b2fcbd\"\r\n + false,\r\n \"deleteOption\": \"Detach\"\r\n },\r\n {\r\n + \ \"lun\": 1,\r\n \"name\": \"virtualmachinex15cf0eff_disk3_c2ecc5c2329e47afbc892c5ee789a3ab\",\r\n + \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk3_c2ecc5c2329e47afbc892c5ee789a3ab\"\r\n \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": - \"myVM\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + false,\r\n \"deleteOption\": \"Detach\"\r\n }\r\n ]\r\n + \ },\r\n \"osProfile\": {\r\n \"computerName\": \"myVM\",\r\n \"adminUsername\": + \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": + true,\r\n \"enableAutomaticUpdates\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"AutomaticByOS\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff\",\"properties\":{\"primary\":true}}]},\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" @@ -774,11 +825,11 @@ interactions: cache-control: - no-cache content-length: - - '3245' + - '3399' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:57:17 GMT + - Tue, 25 May 2021 10:44:47 GMT expires: - '-1' pragma: @@ -795,7 +846,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31997 + - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31943 status: code: 200 message: OK @@ -815,10 +866,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachineextensionx15cf0eff\",\r\n \"id\": @@ -832,7 +883,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d7840f2d-d5e9-446b-9e47-b4044c17f3e2?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f498e29b-bcfa-40df-a9a9-6096aa37fc4f?api-version=2021-03-01 cache-control: - no-cache content-length: @@ -840,7 +891,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:57:17 GMT + - Tue, 25 May 2021 10:44:49 GMT expires: - '-1' pragma: @@ -855,7 +906,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/UpdateVM3Min;239,Microsoft.Compute/UpdateVM30Min;1199 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' status: code: 201 message: Created @@ -869,14 +920,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d7840f2d-d5e9-446b-9e47-b4044c17f3e2?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f498e29b-bcfa-40df-a9a9-6096aa37fc4f?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:57:18.2723157+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"d7840f2d-d5e9-446b-9e47-b4044c17f3e2\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:44:49.5096608+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"f498e29b-bcfa-40df-a9a9-6096aa37fc4f\"\r\n}" headers: cache-control: - no-cache @@ -885,7 +936,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:57:48 GMT + - Tue, 25 May 2021 10:45:19 GMT expires: - '-1' pragma: @@ -902,7 +953,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29991 + - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29988 status: code: 200 message: OK @@ -916,14 +967,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d7840f2d-d5e9-446b-9e47-b4044c17f3e2?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f498e29b-bcfa-40df-a9a9-6096aa37fc4f?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:57:18.2723157+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"d7840f2d-d5e9-446b-9e47-b4044c17f3e2\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:44:49.5096608+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"f498e29b-bcfa-40df-a9a9-6096aa37fc4f\"\r\n}" headers: cache-control: - no-cache @@ -932,7 +983,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:58:17 GMT + - Tue, 25 May 2021 10:45:50 GMT expires: - '-1' pragma: @@ -949,7 +1000,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29990 + - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29987 status: code: 200 message: OK @@ -963,14 +1014,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d7840f2d-d5e9-446b-9e47-b4044c17f3e2?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f498e29b-bcfa-40df-a9a9-6096aa37fc4f?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:57:18.2723157+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"d7840f2d-d5e9-446b-9e47-b4044c17f3e2\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:44:49.5096608+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"f498e29b-bcfa-40df-a9a9-6096aa37fc4f\"\r\n}" headers: cache-control: - no-cache @@ -979,7 +1030,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:58:48 GMT + - Tue, 25 May 2021 10:46:20 GMT expires: - '-1' pragma: @@ -996,7 +1047,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29989 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29986 status: code: 200 message: OK @@ -1010,15 +1061,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d7840f2d-d5e9-446b-9e47-b4044c17f3e2?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f498e29b-bcfa-40df-a9a9-6096aa37fc4f?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:57:18.2723157+00:00\",\r\n \"endTime\": - \"2021-04-06T03:58:55.4290727+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"d7840f2d-d5e9-446b-9e47-b4044c17f3e2\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:44:49.5096608+00:00\",\r\n \"endTime\": + \"2021-05-25T10:46:35.0095953+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"f498e29b-bcfa-40df-a9a9-6096aa37fc4f\"\r\n}" headers: cache-control: - no-cache @@ -1027,7 +1078,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:59:18 GMT + - Tue, 25 May 2021 10:46:50 GMT expires: - '-1' pragma: @@ -1044,7 +1095,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29987 + - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29984 status: code: 200 message: OK @@ -1058,10 +1109,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachineextensionx15cf0eff\",\r\n \"id\": @@ -1079,7 +1130,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:59:18 GMT + - Tue, 25 May 2021 10:46:50 GMT expires: - '-1' pragma: @@ -1096,7 +1147,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31995 + - Microsoft.Compute/LowCostGet3Min;3988,Microsoft.Compute/LowCostGet30Min;31940 status: code: 200 message: OK @@ -1110,47 +1161,47 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/instanceView?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/instanceView?api-version=2021-03-01 response: body: string: "{\r\n \"computerName\": \"myVM\",\r\n \"osName\": \"Windows Server 2016 Datacenter\",\r\n \"osVersion\": \"Microsoft Windows NT 10.0.14393.0\",\r\n - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.41491.1008\",\r\n \"statuses\": + \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.41491.1010\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": \"GuestAgent is running and processing the extensions.\",\r\n \"time\": - \"2021-04-06T03:59:16+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + \"2021-05-25T10:46:33+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n \"type\": \"Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows\",\r\n - \ \"typeHandlerVersion\": \"1.4.1693.1\",\r\n \"status\": {\r\n + \ \"typeHandlerVersion\": \"1.4.1693.3\",\r\n \"status\": {\r\n \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": \"Plugin enabled (handler name: Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows, - extension name: , version: 1.4.1693.1).\"\r\n }\r\n }\r\n ]\r\n + extension name: , version: 1.4.1693.3).\"\r\n }\r\n }\r\n ]\r\n \ },\r\n \"disks\": [\r\n {\r\n \"name\": \"myVMosdisk\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T03:55:52.1626111+00:00\"\r\n - \ }\r\n ]\r\n },\r\n {\r\n \"name\": \"virtualmachinex15cf0eff_disk2_44d64ab7bcc34536b575766404056e48\",\r\n + succeeded\",\r\n \"time\": \"2021-05-25T10:42:50.7440243+00:00\"\r\n + \ }\r\n ]\r\n },\r\n {\r\n \"name\": \"virtualmachinex15cf0eff_disk2_d0afd54c9c45480e8b9b99601fdd65ef\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T03:55:52.1626111+00:00\"\r\n - \ }\r\n ]\r\n },\r\n {\r\n \"name\": \"virtualmachinex15cf0eff_disk3_0f2f71ddf60341a3bbbf249bd5b2fcbd\",\r\n + succeeded\",\r\n \"time\": \"2021-05-25T10:42:50.7440243+00:00\"\r\n + \ }\r\n ]\r\n },\r\n {\r\n \"name\": \"virtualmachinex15cf0eff_disk3_c2ecc5c2329e47afbc892c5ee789a3ab\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T03:55:52.1626111+00:00\"\r\n + succeeded\",\r\n \"time\": \"2021-05-25T10:42:50.7440243+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"extensions\": [\r\n {\r\n \ \"name\": \"virtualmachineextensionx15cf0eff\",\r\n \"type\": \"Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows\",\r\n - \ \"typeHandlerVersion\": \"1.4.1693.1\",\r\n \"statuses\": [\r\n + \ \"typeHandlerVersion\": \"1.4.1693.3\",\r\n \"statuses\": [\r\n \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n \ \"message\": \"Plugin enabled (handler name: Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows, - extension name: , version: 1.4.1693.1).\"\r\n }\r\n ]\r\n }\r\n + extension name: , version: 1.4.1693.3).\"\r\n }\r\n ]\r\n }\r\n \ ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n - \ \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": \"2021-04-06T03:58:55.4134634+00:00\"\r\n + \ \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": \"2021-05-25T10:46:34.9939773+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n }\r\n ]\r\n}" headers: @@ -1161,7 +1212,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:59:18 GMT + - Tue, 25 May 2021 10:46:50 GMT expires: - '-1' pragma: @@ -1178,7 +1229,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31994 + - Microsoft.Compute/LowCostGet3Min;3987,Microsoft.Compute/LowCostGet30Min;31939 status: code: 200 message: OK @@ -1192,10 +1243,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachineextensionx15cf0eff\",\r\n \"id\": @@ -1213,7 +1264,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:59:18 GMT + - Tue, 25 May 2021 10:46:51 GMT expires: - '-1' pragma: @@ -1230,7 +1281,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31993 + - Microsoft.Compute/LowCostGet3Min;3986,Microsoft.Compute/LowCostGet30Min;31938 status: code: 200 message: OK @@ -1244,15 +1295,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/runCommands/RunPowerShellScript?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/runCommands/RunPowerShellScript?api-version=2021-03-01 response: body: string: "{\r\n \"script\": [\r\n \"param(\\r\\n [string]$arg1,\\r\\n [string]$arg2\\r\\n)\\r\\nWrite-Host This is a sample script with parameters $arg1 $arg2\\r\\n\\r\\n# SIG # Begin - signature block\\r\\n# MIIjjgYJKoZIhvcNAQcCoIIjfzCCI3sCAQExDzANBglghkgBZQMEAgEFADB5Bgor\\r\\n# + signature block\\r\\n# MIIjkQYJKoZIhvcNAQcCoIIjgjCCI34CAQExDzANBglghkgBZQMEAgEFADB5Bgor\\r\\n# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG\\r\\n# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCB6jm9GJUxEj/xj\\r\\n# xRn7NMmK1YlgeGDCHEVx3xVyCBNnmaCCDYEwggX/MIID56ADAgECAhMzAAAB32vw\\r\\n# LpKnSrTQAAAAAAHfMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD\\r\\n# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy\\r\\n# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p\\r\\n# @@ -1290,64 +1341,64 @@ interactions: wzIY4vDFLc5bnrRJOQrGCsLGra7lstnbFYhRRVg4MnEnGn+x9Cf43iw6IGmYslmJ\\r\\n# aG5vp7d0w0AFBqYBKig+gj8TTWYLwLNN9eGPfxxvFX1Fp3blQCplo8NdUmKGwx1j\\r\\n# NpeG39rz+PIWoZon4c2ll9DuXWNB41sHnIc+BncG0QaxdR8UvmFhtfDcxhsEvt9B\\r\\n# xw4o7t5lL+yX9qFcltgA1qFGvVnzl6UJS0gQmYAf0AApxbGbpT9Fdx41xtKiop96\\r\\n# eiL6SJUfq/tHI4D1nvi/a7dLl+LrdXga7Oo3mXkYS//WsyNodeav+vyL6wuA6mk7\\r\\n# r/ww7QRMjt/fdW1jkT3RnVZOT7+AVyKheBEyIXrvQQqxP/uozKRdwaGIm1dxVk5I\\r\\n# - RcBCyZt2WwqASGv9eZ/BvW1taslScxMNelDNMYIVYzCCFV8CAQEwgZUwfjELMAkG\\r\\n# A1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQx\\r\\n# + RcBCyZt2WwqASGv9eZ/BvW1taslScxMNelDNMYIVZjCCFWICAQEwgZUwfjELMAkG\\r\\n# A1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQx\\r\\n# HjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEoMCYGA1UEAxMfTWljcm9z\\r\\n# b2Z0IENvZGUgU2lnbmluZyBQQ0EgMjAxMQITMwAAAd9r8C6Sp0q00AAAAAAB3zAN\\r\\n# BglghkgBZQMEAgEFAKCBrjAZBgkqhkiG9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgor\\r\\n# BgEEAYI3AgELMQ4wDAYKKwYBBAGCNwIBFTAvBgkqhkiG9w0BCQQxIgQgtFV7nVIA\\r\\n# MzAyvGRGFyVFPBXkTNlNDitxIkf6V1ugHIUwQgYKKwYBBAGCNwIBDDE0MDKgFIAS\\r\\n# AE0AaQBjAHIAbwBzAG8AZgB0oRqAGGh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbTAN\\r\\n# BgkqhkiG9w0BAQEFAASCAQCdcZkwG3N2yyK8zjw+MCmVYaQKrdUoDeuk/eGP1cNs\\r\\n# 2/0LZ1Nl5T1BXbVxIXU8gqL9GzokG58Fo1kTzUx0Vk/mJyAaV+KHVPDe0pIfreZL\\r\\n# cosVVdCKCXc6zhBrapOG/fY5bmrhSMVsGGe04uvInKlItOltcAc1xx/z3yl3e4L7\\r\\n# d1esSaFrr+e95j4YwkCuQ8cUiAMWi9817841qYi36oIwVgsE29/d2b7+l5S2eEDy\\r\\n# - 0Umdiz2jWVXfSA6CePldzhOk5ySI5ShcBpn2b132gIs5lWlj3r1OD/lkOgOjQhSN\\r\\n# khCltIJso0c+f+LP822OJeHCSc1S6aKMH54rsrLZlSr9oYIS7TCCEukGCisGAQQB\\r\\n# - gjcDAwExghLZMIIS1QYJKoZIhvcNAQcCoIISxjCCEsICAQMxDzANBglghkgBZQME\\r\\n# AgEFADCCAVUGCyqGSIb3DQEJEAEEoIIBRASCAUAwggE8AgEBBgorBgEEAYRZCgMB\\r\\n# - MDEwDQYJYIZIAWUDBAIBBQAEICye+7PcMlsaxZQZ4xS/CJz3pTAcisYNJPqQgd+y\\r\\n# OPl2AgZgWeQWWNYYEzIwMjEwMzIzMTYzNjUxLjc1NlowBIACAfSggdSkgdEwgc4x\\r\\n# - CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRt\\r\\n# b25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsTIE1p\\r\\n# - Y3Jvc29mdCBPcGVyYXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFsZXMg\\r\\n# VFNTIEVTTjpEOURFLUUzOUEtNDNGRTElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUt\\r\\n# - U3RhbXAgU2VydmljZaCCDkAwggT1MIID3aADAgECAhMzAAABYfWiM16gKiRpAAAA\\r\\n# AAFhMA0GCSqGSIb3DQEBCwUAMHwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNo\\r\\n# - aW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29y\\r\\n# cG9yYXRpb24xJjAkBgNVBAMTHU1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEw\\r\\n# - MB4XDTIxMDExNDE5MDIyMVoXDTIyMDQxMTE5MDIyMVowgc4xCzAJBgNVBAYTAlVT\\r\\n# MRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQK\\r\\n# - ExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsTIE1pY3Jvc29mdCBPcGVy\\r\\n# YXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFsZXMgVFNTIEVTTjpEOURF\\r\\n# - LUUzOUEtNDNGRTElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUtU3RhbXAgU2Vydmlj\\r\\n# ZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJeInahBrU//GzTqhxUy\\r\\n# - AC8UXct6UJCkb2xEZKV3gjggmLAheBrxJk7tH+Pw2tTcyarLRfmV2xo5oBk5pW/O\\r\\n# cDc/n/TcTeQU6JIN5PlTcn0C9RlKQ6t9OuU/WAyAxGTjKE4ENnUjXtxiNlD/K2ZG\\r\\n# - MLvjpROBKh7TtkUJK6ZGWw/uTRabNBxRg13TvjkGHXEUEDJ8imacw9BCeR9L6und\\r\\n# r32tj4duOFIHD8m1es3SNN98Zq4IDBP3Ccb+HQgxpbeHIUlK0y6zmzIkvfN73Zxw\\r\\n# - fGvFv0/Max79WJY0cD8poCnZFijciWrf0eD1T2/+7HgewzrdxPdSFockUQ8QovID\\r\\n# IYkCAwEAAaOCARswggEXMB0GA1UdDgQWBBRWHpqd1hv71SVj5LAdPfNE7PhLLzAf\\r\\n# - BgNVHSMEGDAWgBTVYzpcijGQ80N7fEYbxTNoWoVtVTBWBgNVHR8ETzBNMEugSaBH\\r\\n# hkVodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpL2NybC9wcm9kdWN0cy9NaWNU\\r\\n# - aW1TdGFQQ0FfMjAxMC0wNy0wMS5jcmwwWgYIKwYBBQUHAQEETjBMMEoGCCsGAQUF\\r\\n# BzAChj5odHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpL2NlcnRzL01pY1RpbVN0\\r\\n# - YVBDQV8yMDEwLTA3LTAxLmNydDAMBgNVHRMBAf8EAjAAMBMGA1UdJQQMMAoGCCsG\\r\\n# AQUFBwMIMA0GCSqGSIb3DQEBCwUAA4IBAQAQTA9bqVBmx5TTMhzj+Q8zWkPQXgCc\\r\\n# - SQiqy2YYWF0hWr5GEiN2LtA+EWdu1y8oysZau4CP7SzM8VTSq31CLJiOy39Z4RvE\\r\\n# q2mr0EftFvmX2CxQ7ZyzrkhWMZaZQLkYbH5oabIFwndW34nh980BOY395tfnNS/Y\\r\\n# - 6N0f+jXdoFn7fI2c43TFYsUqIPWjOHJloMektlD6/uS6Zn4xse/lItFm+fWOcB2A\\r\\n# xyXEB3ZREeSg9j7+GoEl1xT/iJuV/So7TlWdwyacQu4lv3MBsvxzRIbKhZwrDYog\\r\\n# - moyJ+rwgQB8mKS4/M1SDRtIptamoTFJ56Tk6DuUXx1JudToelgjEZPa5MIIGcTCC\\r\\n# BFmgAwIBAgIKYQmBKgAAAAAAAjANBgkqhkiG9w0BAQsFADCBiDELMAkGA1UEBhMC\\r\\n# - VVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNV\\r\\n# BAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEyMDAGA1UEAxMpTWljcm9zb2Z0IFJv\\r\\n# - b3QgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IDIwMTAwHhcNMTAwNzAxMjEzNjU1WhcN\\r\\n# MjUwNzAxMjE0NjU1WjB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3Rv\\r\\n# - bjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0\\r\\n# aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EgMjAxMDCCASIw\\r\\n# - DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKkdDbx3EYo6IOz8E5f1+n9plGt0\\r\\n# VBDVpQoAgoX77XxoSyxfxcPlYcJ2tz5mK1vwFVMnBDEfQRsalR3OCROOfGEwWbEw\\r\\n# - RA/xYIiEVEMM1024OAizQt2TrNZzMFcmgqNFDdDq9UeBzb8kYDJYYEbyWEeGMoQe\\r\\n# dGFnkV+BVLHPk0ySwcSmXdFhE24oxhr5hoC732H8RsEnHSRnEnIaIYqvS2SJUGKx\\r\\n# - Xf13Hz3wV3WsvYpCTUBR0Q+cBj5nf/VmwAOWRH7v0Ev9buWayrGo8noqCjHw2k4G\\r\\n# kbaICDXoeByw6ZnNPOcvRLqn9NxkvaQBwSAJk3jN/LzAyURdXhacAQVPIk0CAwEA\\r\\n# - AaOCAeYwggHiMBAGCSsGAQQBgjcVAQQDAgEAMB0GA1UdDgQWBBTVYzpcijGQ80N7\\r\\n# fEYbxTNoWoVtVTAZBgkrBgEEAYI3FAIEDB4KAFMAdQBiAEMAQTALBgNVHQ8EBAMC\\r\\n# - AYYwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBTV9lbLj+iiXGJo0T2UkFvX\\r\\n# zpoYxDBWBgNVHR8ETzBNMEugSaBHhkVodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20v\\r\\n# - cGtpL2NybC9wcm9kdWN0cy9NaWNSb29DZXJBdXRfMjAxMC0wNi0yMy5jcmwwWgYI\\r\\n# KwYBBQUHAQEETjBMMEoGCCsGAQUFBzAChj5odHRwOi8vd3d3Lm1pY3Jvc29mdC5j\\r\\n# - b20vcGtpL2NlcnRzL01pY1Jvb0NlckF1dF8yMDEwLTA2LTIzLmNydDCBoAYDVR0g\\r\\n# AQH/BIGVMIGSMIGPBgkrBgEEAYI3LgMwgYEwPQYIKwYBBQUHAgEWMWh0dHA6Ly93\\r\\n# - d3cubWljcm9zb2Z0LmNvbS9QS0kvZG9jcy9DUFMvZGVmYXVsdC5odG0wQAYIKwYB\\r\\n# BQUHAgIwNB4yIB0ATABlAGcAYQBsAF8AUABvAGwAaQBjAHkAXwBTAHQAYQB0AGUA\\r\\n# - bQBlAG4AdAAuIB0wDQYJKoZIhvcNAQELBQADggIBAAfmiFEN4sbgmD+BcQM9naOh\\r\\n# IW+z66bM9TG+zwXiqf76V20ZMLPCxWbJat/15/B4vceoniXj+bzta1RXCCtRgkQS\\r\\n# - +7lTjMz0YBKKdsxAQEGb3FwX/1z5Xhc1mCRWS3TvQhDIr79/xn/yN31aPxzymXlK\\r\\n# kVIArzgPF/UveYFl2am1a+THzvbKegBvSzBEJCI8z+0DpZaPWSm8tv0E4XCfMkon\\r\\n# - /VWvL/625Y4zu2JfmttXQOnxzplmkIz/amJ/3cVKC5Em4jnsGUpxY517IW3DnKOi\\r\\n# PPp/fZZqkHimbdLhnPkd/DjYlPTGpQqWhqS9nhquBEKDuLWAmyI4ILUl5WTs9/S/\\r\\n# - fmNZJQ96LjlXdqJxqgaKD4kWumGnEcua2A5HmoDF0M2n0O99g/DhO3EJ3110mCII\\r\\n# YdqwUB5vvfHhAN/nMQekkzr3ZUd46PioSKv33nJ+YWtvd6mBy6cJrDm77MbL2IK0\\r\\n# - cs0d9LiFAR6A+xuJKlQ5slvayA1VmXqHczsI5pgt6o3gMy4SKfXAL1QnIffIrE7a\\r\\n# KLixqduWsqdCosnPGUFN4Ib5KpqjEWYw07t0MkvfY3v1mYovG8chr1m1rtxEPJdQ\\r\\n# - cdeh0sVV42neV8HR3jDA/czmTfsNv11P6Z0eGTgvvM9YBS7vDaBQNdrvCScc1bN+\\r\\n# NR4Iuto229Nfj950iEkSoYICzjCCAjcCAQEwgfyhgdSkgdEwgc4xCzAJBgNVBAYT\\r\\n# - AlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYD\\r\\n# VQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKTAnBgNVBAsTIE1pY3Jvc29mdCBP\\r\\n# - cGVyYXRpb25zIFB1ZXJ0byBSaWNvMSYwJAYDVQQLEx1UaGFsZXMgVFNTIEVTTjpE\\r\\n# OURFLUUzOUEtNDNGRTElMCMGA1UEAxMcTWljcm9zb2Z0IFRpbWUtU3RhbXAgU2Vy\\r\\n# - dmljZaIjCgEBMAcGBSsOAwIaAxUAFW5ShAw5ekTEXvL/4V1s0rbDz3mggYMwgYCk\\r\\n# fjB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMH\\r\\n# - UmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSYwJAYDVQQD\\r\\n# Ex1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EgMjAxMDANBgkqhkiG9w0BAQUFAAIF\\r\\n# - AOQEYpYwIhgPMjAyMTAzMjMxNjUwMzBaGA8yMDIxMDMyNDE2NTAzMFowczA5Bgor\\r\\n# BgEEAYRZCgQBMSswKTAKAgUA5ARilgIBADAGAgEAAgFFMAcCAQACAhBTMAoCBQDk\\r\\n# - BbQWAgEAMDYGCisGAQQBhFkKBAIxKDAmMAwGCisGAQQBhFkKAwKgCjAIAgEAAgMH\\r\\n# oSChCjAIAgEAAgMBhqAwDQYJKoZIhvcNAQEFBQADgYEASFz2koXme1HDHP+dkfx+\\r\\n# - a54ml6mJ8Db379GDu+Ndy+o1bYBgu+uPYn95h4r1pABWj59V1GuzAg6wzMZJnZyX\\r\\n# zcC3J4GjDbr3NdoAW8YSiwngi5YUi/rEgy4i6MTZLrwCDtpeOa39lRWmRZ04qKGH\\r\\n# - cY0FsK7leG1HvZCeyNSWCe4xggMNMIIDCQIBATCBkzB8MQswCQYDVQQGEwJVUzET\\r\\n# MBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMV\\r\\n# - TWljcm9zb2Z0IENvcnBvcmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1T\\r\\n# dGFtcCBQQ0EgMjAxMAITMwAAAWH1ojNeoCokaQAAAAABYTANBglghkgBZQMEAgEF\\r\\n# - AKCCAUowGgYJKoZIhvcNAQkDMQ0GCyqGSIb3DQEJEAEEMC8GCSqGSIb3DQEJBDEi\\r\\n# BCDo0JUcyI7Uoe4l/JwTfXam0Y7YmXgJDbU1AQ0Q12fuwDCB+gYLKoZIhvcNAQkQ\\r\\n# - Ai8xgeowgecwgeQwgb0EIGHPi6fqaRIt3/MD7Q3lgsMani9b9UG01b+WmaG0CThv\\r\\n# MIGYMIGApH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAO\\r\\n# - BgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEm\\r\\n# MCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTACEzMAAAFh9aIz\\r\\n# - XqAqJGkAAAAAAWEwIgQgWFoBkMIVNfb/Lm5cSa+g4KaG8AfLrBdjhdBmg5BixwAw\\r\\n# DQYJKoZIhvcNAQELBQAEggEAMj8wQu8zZNSnFoTZ25lID6Eimu5S3pOAumsfR2VX\\r\\n# - oHRxotHYD2JUHRW43cHA0Q37ixkK0K4ihA1aB3bRkdKZmCTROx517iRV9YRR++67\\r\\n# LQIqC8b0vqUMhY0R/xiGiHA9IdbGB0m5fSVKUbcoCR9b/MlXxx3kPpO1TEy/VVzt\\r\\n# - W6QKy9mL+L68ULkkGrM2oYc3zg7DbunM3Gk10fYOqzp0Q2O41gPe7PCsmuM3Rvqd\\r\\n# X8sSTEjt+KG8gVH2tVPE0uopJ9kg+8YlF2R8+oDKfF+Z7ACIo3R9ajFfzeSqbaWh\\r\\n# - 2XjAmSNRck1yD75/P6oDl7aF0zdesEfofHV3yW4hcfiDNw==\\r\\n# SIG # End signature + 0Umdiz2jWVXfSA6CePldzhOk5ySI5ShcBpn2b132gIs5lWlj3r1OD/lkOgOjQhSN\\r\\n# khCltIJso0c+f+LP822OJeHCSc1S6aKMH54rsrLZlSr9oYIS8DCCEuwGCisGAQQB\\r\\n# + gjcDAwExghLcMIIS2AYJKoZIhvcNAQcCoIISyTCCEsUCAQMxDzANBglghkgBZQME\\r\\n# AgEFADCCAVQGCyqGSIb3DQEJEAEEoIIBQwSCAT8wggE7AgEBBgorBgEEAYRZCgMB\\r\\n# + MDEwDQYJYIZIAWUDBAIBBQAEICye+7PcMlsaxZQZ4xS/CJz3pTAcisYNJPqQgd+y\\r\\n# OPl2AgZgifpDqiEYEjIwMjEwNTEwMjM1NTA2LjI3WjAEgAIB9KCB1KSB0TCBzjEL\\r\\n# + MAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1v\\r\\n# bmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEpMCcGA1UECxMgTWlj\\r\\n# + cm9zb2Z0IE9wZXJhdGlvbnMgUHVlcnRvIFJpY28xJjAkBgNVBAsTHVRoYWxlcyBU\\r\\n# U1MgRVNOOkY3QTYtRTI1MS0xNTBBMSUwIwYDVQQDExxNaWNyb3NvZnQgVGltZS1T\\r\\n# + dGFtcCBTZXJ2aWNloIIORDCCBPUwggPdoAMCAQICEzMAAAFZn/x+Xyzq8kMAAAAA\\r\\n# AVkwDQYJKoZIhvcNAQELBQAwfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hp\\r\\n# + bmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jw\\r\\n# b3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTAw\\r\\n# + HhcNMjEwMTE0MTkwMjE1WhcNMjIwNDExMTkwMjE1WjCBzjELMAkGA1UEBhMCVVMx\\r\\n# EzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoT\\r\\n# + FU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEpMCcGA1UECxMgTWljcm9zb2Z0IE9wZXJh\\r\\n# dGlvbnMgUHVlcnRvIFJpY28xJjAkBgNVBAsTHVRoYWxlcyBUU1MgRVNOOkY3QTYt\\r\\n# + RTI1MS0xNTBBMSUwIwYDVQQDExxNaWNyb3NvZnQgVGltZS1TdGFtcCBTZXJ2aWNl\\r\\n# MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArnjEYclnxIdES00igGj0\\r\\n# + AboyujyARkK3xaBX+Y10i3a0w4/fNVhTj6xGwibFPB/MkQMFZpNzsvGUTL/XfTZ9\\r\\n# GZ39HanCdjunJP3TK9kCZBAtnoP59oYHDCGLmut7+2YEl1sBcVnyovYkNzi3EGff\\r\\n# + QyvULwMUF2siPBs/6LZF0A5pLAiz/FCwx5kDPe/mP1UR3Crz6IzphwtyoqtgDA/4\\r\\n# 4TnzfvVJPmSPZ/uq5Oh5NeFK8NzMpitWiQvdmfT4o0CdumnisfW1fKaaBdByBULP\\r\\n# + UT8TLw0Sy9nUWNXlA/qi8MxPxgCjsrNpi9PgjH7ExW9b7X/UydhpqhHxsudDGZNk\\r\\n# 4wIDAQABo4IBGzCCARcwHQYDVR0OBBYEFPbQqYVGvK365Osn14jCPLLpN2PnMB8G\\r\\n# + A1UdIwQYMBaAFNVjOlyKMZDzQ3t8RhvFM2hahW1VMFYGA1UdHwRPME0wS6BJoEeG\\r\\n# RWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9wa2kvY3JsL3Byb2R1Y3RzL01pY1Rp\\r\\n# + bVN0YVBDQV8yMDEwLTA3LTAxLmNybDBaBggrBgEFBQcBAQROMEwwSgYIKwYBBQUH\\r\\n# MAKGPmh0dHA6Ly93d3cubWljcm9zb2Z0LmNvbS9wa2kvY2VydHMvTWljVGltU3Rh\\r\\n# + UENBXzIwMTAtMDctMDEuY3J0MAwGA1UdEwEB/wQCMAAwEwYDVR0lBAwwCgYIKwYB\\r\\n# BQUHAwgwDQYJKoZIhvcNAQELBQADggEBAI2RVBLoD4GGt8Y4IBajcpy5Rrh6y2nP\\r\\n# + Kf5kuWSHSkmYAmngRQOstayJ5gJ/ajKhzwqNUwL40cUVW8cutIyFadHkW1jqXdnp\\r\\n# Sv0hMFLPriPnBNFETy8ilCIdViNFU08ZHa2Kobmco/n6wPStkjjrg4U3Pift6sMk\\r\\n# + 6lXsibUv+wDB9f4YehziPmt+4C5BMVjzax1i+0czgtPHBX33u6GUWznagdql0VbU\\r\\n# pe3q8zERedJfyyhB9R34z5ircnu51zpH3jUa7F93oDS95xXnomO+akKeDiNGSq4B\\r\\n# + 7J/90qZBRpHV8q8AsFECZmQBS1aKNL/cyR5C/+VS8dWjsY8XMn87fAkwggZxMIIE\\r\\n# WaADAgECAgphCYEqAAAAAAACMA0GCSqGSIb3DQEBCwUAMIGIMQswCQYDVQQGEwJV\\r\\n# + UzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UE\\r\\n# ChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMTIwMAYDVQQDEylNaWNyb3NvZnQgUm9v\\r\\n# + dCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgMjAxMDAeFw0xMDA3MDEyMTM2NTVaFw0y\\r\\n# NTA3MDEyMTQ2NTVaMHwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9u\\r\\n# + MRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRp\\r\\n# b24xJjAkBgNVBAMTHU1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEwMIIBIjAN\\r\\n# + BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqR0NvHcRijog7PwTl/X6f2mUa3RU\\r\\n# ENWlCgCChfvtfGhLLF/Fw+Vhwna3PmYrW/AVUycEMR9BGxqVHc4JE458YTBZsTBE\\r\\n# + D/FgiIRUQwzXTbg4CLNC3ZOs1nMwVyaCo0UN0Or1R4HNvyRgMlhgRvJYR4YyhB50\\r\\n# YWeRX4FUsc+TTJLBxKZd0WETbijGGvmGgLvfYfxGwScdJGcSchohiq9LZIlQYrFd\\r\\n# + /XcfPfBXday9ikJNQFHRD5wGPmd/9WbAA5ZEfu/QS/1u5ZrKsajyeioKMfDaTgaR\\r\\n# togINeh4HLDpmc085y9Euqf03GS9pAHBIAmTeM38vMDJRF1eFpwBBU8iTQIDAQAB\\r\\n# + o4IB5jCCAeIwEAYJKwYBBAGCNxUBBAMCAQAwHQYDVR0OBBYEFNVjOlyKMZDzQ3t8\\r\\n# RhvFM2hahW1VMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIAQwBBMAsGA1UdDwQEAwIB\\r\\n# + hjAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNX2VsuP6KJcYmjRPZSQW9fO\\r\\n# mhjEMFYGA1UdHwRPME0wS6BJoEeGRWh0dHA6Ly9jcmwubWljcm9zb2Z0LmNvbS9w\\r\\n# + a2kvY3JsL3Byb2R1Y3RzL01pY1Jvb0NlckF1dF8yMDEwLTA2LTIzLmNybDBaBggr\\r\\n# BgEFBQcBAQROMEwwSgYIKwYBBQUHMAKGPmh0dHA6Ly93d3cubWljcm9zb2Z0LmNv\\r\\n# + bS9wa2kvY2VydHMvTWljUm9vQ2VyQXV0XzIwMTAtMDYtMjMuY3J0MIGgBgNVHSAB\\r\\n# Af8EgZUwgZIwgY8GCSsGAQQBgjcuAzCBgTA9BggrBgEFBQcCARYxaHR0cDovL3d3\\r\\n# + dy5taWNyb3NvZnQuY29tL1BLSS9kb2NzL0NQUy9kZWZhdWx0Lmh0bTBABggrBgEF\\r\\n# BQcCAjA0HjIgHQBMAGUAZwBhAGwAXwBQAG8AbABpAGMAeQBfAFMAdABhAHQAZQBt\\r\\n# + AGUAbgB0AC4gHTANBgkqhkiG9w0BAQsFAAOCAgEAB+aIUQ3ixuCYP4FxAz2do6Eh\\r\\n# b7Prpsz1Mb7PBeKp/vpXbRkws8LFZslq3/Xn8Hi9x6ieJeP5vO1rVFcIK1GCRBL7\\r\\n# + uVOMzPRgEop2zEBAQZvcXBf/XPleFzWYJFZLdO9CEMivv3/Gf/I3fVo/HPKZeUqR\\r\\n# UgCvOA8X9S95gWXZqbVr5MfO9sp6AG9LMEQkIjzP7QOllo9ZKby2/QThcJ8ySif9\\r\\n# + Va8v/rbljjO7Yl+a21dA6fHOmWaQjP9qYn/dxUoLkSbiOewZSnFjnXshbcOco6I8\\r\\n# +n99lmqQeKZt0uGc+R38ONiU9MalCpaGpL2eGq4EQoO4tYCbIjggtSXlZOz39L9+\\r\\n# + Y1klD3ouOVd2onGqBooPiRa6YacRy5rYDkeagMXQzafQ732D8OE7cQnfXXSYIghh\\r\\n# 2rBQHm+98eEA3+cxB6STOvdlR3jo+KhIq/fecn5ha293qYHLpwmsObvsxsvYgrRy\\r\\n# + zR30uIUBHoD7G4kqVDmyW9rIDVWZeodzOwjmmC3qjeAzLhIp9cAvVCch98isTtoo\\r\\n# uLGp25ayp0Kiyc8ZQU3ghvkqmqMRZjDTu3QyS99je/WZii8bxyGvWbWu3EQ8l1Bx\\r\\n# + 16HSxVXjad5XwdHeMMD9zOZN+w2/XU/pnR4ZOC+8z1gFLu8NoFA12u8JJxzVs341\\r\\n# Hgi62jbb01+P3nSISRKhggLSMIICOwIBATCB/KGB1KSB0TCBzjELMAkGA1UEBhMC\\r\\n# + VVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNV\\r\\n# BAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEpMCcGA1UECxMgTWljcm9zb2Z0IE9w\\r\\n# + ZXJhdGlvbnMgUHVlcnRvIFJpY28xJjAkBgNVBAsTHVRoYWxlcyBUU1MgRVNOOkY3\\r\\n# QTYtRTI1MS0xNTBBMSUwIwYDVQQDExxNaWNyb3NvZnQgVGltZS1TdGFtcCBTZXJ2\\r\\n# + aWNloiMKAQEwBwYFKw4DAhoDFQAqdssAjx+E7nxIJaulmde9cRmyEaCBgzCBgKR+\\r\\n# MHwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdS\\r\\n# + ZWRtb25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xJjAkBgNVBAMT\\r\\n# HU1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQSAyMDEwMA0GCSqGSIb3DQEBBQUAAgUA\\r\\n# + 5EOhvDAiGA8yMDIxMDUxMDE2MTI0NFoYDzIwMjEwNTExMTYxMjQ0WjB3MD0GCisG\\r\\n# AQQBhFkKBAExLzAtMAoCBQDkQ6G8AgEAMAoCAQACAiHnAgH/MAcCAQACAhFTMAoC\\r\\n# + BQDkRPM8AgEAMDYGCisGAQQBhFkKBAIxKDAmMAwGCisGAQQBhFkKAwKgCjAIAgEA\\r\\n# AgMHoSChCjAIAgEAAgMBhqAwDQYJKoZIhvcNAQEFBQADgYEAIChiGS06WIDgoSWj\\r\\n# + Q9tbjcp5y92qZNrvFbXTIy+snY86X9oNnL4Kain+hscXioO62oJqD0SPjRJCdxbA\\r\\n# /IH3nY1IEosfLjV54am/JQulZb6+/ZCXg05mm0423c+ZJw3Tk6BCgL+00KCRBoxk\\r\\n# + IgkGk2HR6ZKm6dj/Fhjh6EzreDoxggMNMIIDCQIBATCBkzB8MQswCQYDVQQGEwJV\\r\\n# UzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UE\\r\\n# + ChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGlt\\r\\n# ZS1TdGFtcCBQQ0EgMjAxMAITMwAAAVmf/H5fLOryQwAAAAABWTANBglghkgBZQME\\r\\n# + AgEFAKCCAUowGgYJKoZIhvcNAQkDMQ0GCyqGSIb3DQEJEAEEMC8GCSqGSIb3DQEJ\\r\\n# BDEiBCCJQbG7rky8z1MtMECT5qqOLKgfY1QKHS0/EywXjQFoOzCB+gYLKoZIhvcN\\r\\n# + AQkQAi8xgeowgecwgeQwgb0EIAFYG8+/MOZ815LOYlPj50YD66P+qrv98qRSffqv\\r\\n# E0PoMIGYMIGApH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24x\\r\\n# + EDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlv\\r\\n# bjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTACEzMAAAFZ\\r\\n# + n/x+Xyzq8kMAAAAAAVkwIgQg5GvzAxeK08zXJpHMDwEn04hcuO1QVN/cfwsQt+NN\\r\\n# tHcwDQYJKoZIhvcNAQELBQAEggEAghMeN+BOvB/U+OyNpaI/f/fJQ9/qEnuxS+GW\\r\\n# + 6TmZhp8umBSJBg6DMOmpb0JWUK5f4ORnoN/w2Y0PDt3WFTACaSZIYRvLY1FOdyJH\\r\\n# APXo2kyixWLm1TQZjQdA5UxUxSrdhNStMK9php/vDUn+WmA3ttEZBgK28VK1KRn7\\r\\n# + wN9l5VE/VyXOBzkfrPH4Mcd1hhf7MmaIXCyGyjiNRBx3Ai4r5troGz797FyS/nAV\\r\\n# U0LGBUk4QRSof8KUYxm+Q6aAuhIglt2Hr3dBXcTZc+4MK5V7ePNqCs2wA77PnOqd\\r\\n# + gPFIUada4RhtjCuulw5ulZjBtQbLt05mg0x1aKOpi2O2eUXwVw==\\r\\n# SIG # End signature block\\r\\n\"\r\n ],\r\n \"parameters\": [\r\n {\r\n \"name\": \"arg1\",\r\n \ \"type\": \"string\",\r\n \"required\": false\r\n },\r\n {\r\n \ \"name\": \"arg2\",\r\n \"type\": \"string\",\r\n \"required\": @@ -1360,11 +1411,11 @@ interactions: cache-control: - no-cache content-length: - - '14041' + - '14045' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:59:18 GMT + - Tue, 25 May 2021 10:46:51 GMT expires: - '-1' pragma: @@ -1395,10 +1446,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions?api-version=2021-03-01 response: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"virtualmachineextensionx15cf0eff\",\r\n @@ -1416,7 +1467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:59:18 GMT + - Tue, 25 May 2021 10:46:51 GMT expires: - '-1' pragma: @@ -1433,7 +1484,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3992,Microsoft.Compute/LowCostGet30Min;31992 + - Microsoft.Compute/LowCostGet3Min;3985,Microsoft.Compute/LowCostGet30Min;31937 status: code: 200 message: OK @@ -1447,88 +1498,48 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?$expand=instanceView&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinex15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"18860350-8851-48b5-a029-7b2cf4b34a09\",\r\n + \ \"properties\": {\r\n \"vmId\": \"59f59d01-504a-456a-b061-93cead79500b\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"14393.4402.2105052108\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk\"\r\n - \ },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": - [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"virtualmachinex15cf0eff_disk2_44d64ab7bcc34536b575766404056e48\",\r\n + \ },\r\n \"diskSizeGB\": 127,\r\n \"deleteOption\": \"Detach\"\r\n + \ },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n + \ \"name\": \"virtualmachinex15cf0eff_disk2_d0afd54c9c45480e8b9b99601fdd65ef\",\r\n \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk2_44d64ab7bcc34536b575766404056e48\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk2_d0afd54c9c45480e8b9b99601fdd65ef\"\r\n \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n \"name\": - \"virtualmachinex15cf0eff_disk3_0f2f71ddf60341a3bbbf249bd5b2fcbd\",\r\n \"createOption\": - \"Empty\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk3_0f2f71ddf60341a3bbbf249bd5b2fcbd\"\r\n + false,\r\n \"deleteOption\": \"Detach\"\r\n },\r\n {\r\n + \ \"lun\": 1,\r\n \"name\": \"virtualmachinex15cf0eff_disk3_c2ecc5c2329e47afbc892c5ee789a3ab\",\r\n + \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk3_c2ecc5c2329e47afbc892c5ee789a3ab\"\r\n \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": - \"myVM\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + false,\r\n \"deleteOption\": \"Detach\"\r\n }\r\n ]\r\n + \ },\r\n \"osProfile\": {\r\n \"computerName\": \"myVM\",\r\n \"adminUsername\": + \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": + true,\r\n \"enableAutomaticUpdates\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"AutomaticByOS\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff\",\"properties\":{\"primary\":true}}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": - \"myVM\",\r\n \"osName\": \"Windows Server 2016 Datacenter\",\r\n \"osVersion\": - \"Microsoft Windows NT 10.0.14393.0\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": - \"2.7.41491.1008\",\r\n \"statuses\": [\r\n {\r\n \"code\": - \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": - \"Ready\",\r\n \"message\": \"GuestAgent is running and processing - the extensions.\",\r\n \"time\": \"2021-04-06T03:59:16+00:00\"\r\n - \ }\r\n ],\r\n \"extensionHandlers\": [\r\n {\r\n - \ \"type\": \"Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows\",\r\n - \ \"typeHandlerVersion\": \"1.4.1693.1\",\r\n \"status\": - {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": - \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": - \"Plugin enabled (handler name: Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows, - extension name: , version: 1.4.1693.1).\"\r\n }\r\n }\r\n - \ ]\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": - \"myVMosdisk\",\r\n \"statuses\": [\r\n {\r\n \"code\": - \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n - \ \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": - \"2021-04-06T03:55:52.1626111+00:00\"\r\n }\r\n ]\r\n - \ },\r\n {\r\n \"name\": \"virtualmachinex15cf0eff_disk2_44d64ab7bcc34536b575766404056e48\",\r\n - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T03:55:52.1626111+00:00\"\r\n - \ }\r\n ]\r\n },\r\n {\r\n \"name\": - \"virtualmachinex15cf0eff_disk3_0f2f71ddf60341a3bbbf249bd5b2fcbd\",\r\n \"statuses\": - [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T03:55:52.1626111+00:00\"\r\n - \ }\r\n ]\r\n }\r\n ],\r\n \"extensions\": - [\r\n {\r\n \"name\": \"virtualmachineextensionx15cf0eff\",\r\n - \ \"type\": \"Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows\",\r\n - \ \"typeHandlerVersion\": \"1.4.1693.1\",\r\n \"statuses\": - [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"message\": \"Plugin enabled (handler name: - Microsoft.Azure.NetworkWatcher.NetworkWatcherAgentWindows, extension name: - , version: 1.4.1693.1).\"\r\n }\r\n ]\r\n }\r\n - \ ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n - \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": - \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n - \ \"time\": \"2021-04-06T03:58:55.4134634+00:00\"\r\n },\r\n - \ {\r\n \"code\": \"PowerState/running\",\r\n \"level\": - \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n }\r\n - \ ]\r\n }\r\n },\r\n \"resources\": [\r\n {\r\n \"name\": - \"virtualmachineextensionx15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff\",\r\n + \ \"provisioningState\": \"Succeeded\"\r\n },\r\n \"resources\": [\r\n + \ {\r\n \"name\": \"virtualmachineextensionx15cf0eff\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines/extensions\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"provisioningState\": \"Succeeded\",\r\n \"publisher\": @@ -1538,11 +1549,11 @@ interactions: cache-control: - no-cache content-length: - - '7162' + - '4113' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:59:18 GMT + - Tue, 25 May 2021 10:46:51 GMT expires: - '-1' pragma: @@ -1559,7 +1570,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3991,Microsoft.Compute/LowCostGet30Min;31991 + - Microsoft.Compute/LowCostGet3Min;3984,Microsoft.Compute/LowCostGet30Min;31936 status: code: 200 message: OK @@ -1577,26 +1588,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/runCommand?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/runCommand?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f20d8638-0a60-4e58-a97b-eea4cb3b2ca6?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/61b5fcc7-e667-424f-bdcf-5325fe838455?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 03:59:18 GMT + - Tue, 25 May 2021 10:46:51 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f20d8638-0a60-4e58-a97b-eea4cb3b2ca6?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/61b5fcc7-e667-424f-bdcf-5325fe838455?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1609,7 +1620,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/UpdateVM3Min;238,Microsoft.Compute/UpdateVM30Min;1198 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -1623,14 +1634,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f20d8638-0a60-4e58-a97b-eea4cb3b2ca6?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/61b5fcc7-e667-424f-bdcf-5325fe838455?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:59:18.9916833+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"f20d8638-0a60-4e58-a97b-eea4cb3b2ca6\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:46:51.4940016+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"61b5fcc7-e667-424f-bdcf-5325fe838455\"\r\n}" headers: cache-control: - no-cache @@ -1639,7 +1650,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 03:59:48 GMT + - Tue, 25 May 2021 10:47:21 GMT expires: - '-1' pragma: @@ -1656,7 +1667,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29985 + - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29982 status: code: 200 message: OK @@ -1670,17 +1681,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f20d8638-0a60-4e58-a97b-eea4cb3b2ca6?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/61b5fcc7-e667-424f-bdcf-5325fe838455?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T03:59:18.9916833+00:00\",\r\n \"endTime\": - \"2021-04-06T03:59:49.3199522+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2021-05-25T10:46:51.4940016+00:00\",\r\n \"endTime\": + \"2021-05-25T10:47:22.0553044+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\"value\":[{\"code\":\"ComponentStatus/StdOut/succeeded\",\"level\":\"Info\",\"displayStatus\":\"Provisioning succeeded\",\"message\":\"This is a sample script with parameters \"},{\"code\":\"ComponentStatus/StdErr/succeeded\",\"level\":\"Info\",\"displayStatus\":\"Provisioning - succeeded\",\"message\":\"\"}]}\r\n },\r\n \"name\": \"f20d8638-0a60-4e58-a97b-eea4cb3b2ca6\"\r\n}" + succeeded\",\"message\":\"\"}]}\r\n },\r\n \"name\": \"61b5fcc7-e667-424f-bdcf-5325fe838455\"\r\n}" headers: cache-control: - no-cache @@ -1689,7 +1700,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:00:19 GMT + - Tue, 25 May 2021 10:47:51 GMT expires: - '-1' pragma: @@ -1706,7 +1717,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29987 + - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29980 status: code: 200 message: OK @@ -1720,10 +1731,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f20d8638-0a60-4e58-a97b-eea4cb3b2ca6?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/61b5fcc7-e667-424f-bdcf-5325fe838455?monitor=true&api-version=2021-03-01 response: body: string: '{"value":[{"code":"ComponentStatus/StdOut/succeeded","level":"Info","displayStatus":"Provisioning @@ -1737,7 +1748,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:00:19 GMT + - Tue, 25 May 2021 10:47:51 GMT expires: - '-1' pragma: @@ -1754,7 +1765,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29986 + - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29979 status: code: 200 message: OK @@ -1770,26 +1781,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/restart?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/restart?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8dd129db-4539-4dac-bc83-a63432359fb8?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/90ccabf6-5be1-4f1f-b93f-8830369be3c2?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:00:19 GMT + - Tue, 25 May 2021 10:47:51 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8dd129db-4539-4dac-bc83-a63432359fb8?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/90ccabf6-5be1-4f1f-b93f-8830369be3c2?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1802,7 +1813,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/UpdateVM3Min;238,Microsoft.Compute/UpdateVM30Min;1197 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 202 message: Accepted @@ -1816,24 +1827,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8dd129db-4539-4dac-bc83-a63432359fb8?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/90ccabf6-5be1-4f1f-b93f-8830369be3c2?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:00:19.2888282+00:00\",\r\n \"endTime\": - \"2021-04-06T04:00:19.601283+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"8dd129db-4539-4dac-bc83-a63432359fb8\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:47:52.2437749+00:00\",\r\n \"endTime\": + \"2021-05-25T10:47:52.6500414+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"90ccabf6-5be1-4f1f-b93f-8830369be3c2\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:00:48 GMT + - Tue, 25 May 2021 10:48:22 GMT expires: - '-1' pragma: @@ -1850,7 +1861,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29984 + - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29977 status: code: 200 message: OK @@ -1864,10 +1875,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8dd129db-4539-4dac-bc83-a63432359fb8?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/90ccabf6-5be1-4f1f-b93f-8830369be3c2?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -1877,7 +1888,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 04:00:48 GMT + - Tue, 25 May 2021 10:48:22 GMT expires: - '-1' pragma: @@ -1890,7 +1901,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29983 + - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29976 status: code: 200 message: OK @@ -1906,26 +1917,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/powerOff?skipShutdown=false&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/powerOff?skipShutdown=false&api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3907c58b-a2be-4a1b-94f8-ea590cbb436b?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/edcb413e-d9b8-496c-be0a-4510c0833b82?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:00:49 GMT + - Tue, 25 May 2021 10:48:22 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3907c58b-a2be-4a1b-94f8-ea590cbb436b?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/edcb413e-d9b8-496c-be0a-4510c0833b82?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1938,7 +1949,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/UpdateVM3Min;237,Microsoft.Compute/UpdateVM30Min;1196 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1196' status: code: 202 message: Accepted @@ -1952,15 +1963,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3907c58b-a2be-4a1b-94f8-ea590cbb436b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/edcb413e-d9b8-496c-be0a-4510c0833b82?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:00:49.4764702+00:00\",\r\n \"endTime\": - \"2021-04-06T04:00:52.4452039+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"3907c58b-a2be-4a1b-94f8-ea590cbb436b\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:48:22.8846953+00:00\",\r\n \"endTime\": + \"2021-05-25T10:48:29.8536251+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"edcb413e-d9b8-496c-be0a-4510c0833b82\"\r\n}" headers: cache-control: - no-cache @@ -1969,7 +1980,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:01:18 GMT + - Tue, 25 May 2021 10:48:52 GMT expires: - '-1' pragma: @@ -1986,7 +1997,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29981 + - Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29974 status: code: 200 message: OK @@ -2000,10 +2011,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3907c58b-a2be-4a1b-94f8-ea590cbb436b?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/edcb413e-d9b8-496c-be0a-4510c0833b82?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -2013,7 +2024,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 04:01:18 GMT + - Tue, 25 May 2021 10:48:52 GMT expires: - '-1' pragma: @@ -2026,7 +2037,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29980 + - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29973 status: code: 200 message: OK @@ -2042,26 +2053,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/start?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/start?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/da356237-8853-476b-b56f-7a7b23bb53f6?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d780a5b2-6026-4e2b-9ae6-312b4d4d4870?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:01:18 GMT + - Tue, 25 May 2021 10:48:52 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/da356237-8853-476b-b56f-7a7b23bb53f6?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d780a5b2-6026-4e2b-9ae6-312b4d4d4870?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -2074,7 +2085,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/UpdateVM3Min;236,Microsoft.Compute/UpdateVM30Min;1195 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1195' status: code: 202 message: Accepted @@ -2088,15 +2099,109 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/da356237-8853-476b-b56f-7a7b23bb53f6?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d780a5b2-6026-4e2b-9ae6-312b4d4d4870?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:01:19.6484598+00:00\",\r\n \"endTime\": - \"2021-04-06T04:01:25.8985048+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"da356237-8853-476b-b56f-7a7b23bb53f6\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:48:53.4316919+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"d780a5b2-6026-4e2b-9ae6-312b4d4d4870\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 10:49:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29972 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d780a5b2-6026-4e2b-9ae6-312b4d4d4870?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-05-25T10:48:53.4316919+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"d780a5b2-6026-4e2b-9ae6-312b4d4d4870\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 10:49:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29970 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d780a5b2-6026-4e2b-9ae6-312b4d4d4870?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-05-25T10:48:53.4316919+00:00\",\r\n \"endTime\": + \"2021-05-25T10:49:17.6817375+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"d780a5b2-6026-4e2b-9ae6-312b4d4d4870\"\r\n}" headers: cache-control: - no-cache @@ -2105,7 +2210,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:01:28 GMT + - Tue, 25 May 2021 10:49:42 GMT expires: - '-1' pragma: @@ -2122,7 +2227,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29979 + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29968 status: code: 200 message: OK @@ -2136,10 +2241,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/da356237-8853-476b-b56f-7a7b23bb53f6?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d780a5b2-6026-4e2b-9ae6-312b4d4d4870?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -2149,7 +2254,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 04:01:28 GMT + - Tue, 25 May 2021 10:49:42 GMT expires: - '-1' pragma: @@ -2162,7 +2267,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29978 + - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29967 status: code: 200 message: OK @@ -2180,10 +2285,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachineextensionx15cf0eff\",\r\n \"id\": @@ -2195,7 +2300,7 @@ interactions: \"1.4\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b780f580-8e9b-4c77-ae75-835990a0b9d5?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a2fd0a2f-a451-4b48-b823-cfc63092b510?api-version=2021-03-01 cache-control: - no-cache content-length: @@ -2203,7 +2308,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:01:29 GMT + - Tue, 25 May 2021 10:49:43 GMT expires: - '-1' pragma: @@ -2220,9 +2325,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/UpdateVM3Min;235,Microsoft.Compute/UpdateVM30Min;1194 + - Microsoft.Compute/UpdateVM3Min;236,Microsoft.Compute/UpdateVM30Min;1194 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1194' status: code: 200 message: OK @@ -2236,24 +2341,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b780f580-8e9b-4c77-ae75-835990a0b9d5?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a2fd0a2f-a451-4b48-b823-cfc63092b510?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:01:29.8203805+00:00\",\r\n \"endTime\": - \"2021-04-06T04:01:30.086023+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"b780f580-8e9b-4c77-ae75-835990a0b9d5\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:49:43.1977038+00:00\",\r\n \"endTime\": + \"2021-05-25T10:49:43.6664541+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"a2fd0a2f-a451-4b48-b823-cfc63092b510\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:01:59 GMT + - Tue, 25 May 2021 10:50:12 GMT expires: - '-1' pragma: @@ -2270,7 +2375,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29976 + - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29972 status: code: 200 message: OK @@ -2284,10 +2389,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachineextensionx15cf0eff\",\r\n \"id\": @@ -2305,7 +2410,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:01:59 GMT + - Tue, 25 May 2021 10:50:12 GMT expires: - '-1' pragma: @@ -2322,7 +2427,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3999,Microsoft.Compute/LowCostGet30Min;31991 + - Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31937 status: code: 200 message: OK @@ -2338,10 +2443,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/extensions/virtualmachineextensionx15cf0eff?api-version=2021-03-01 response: body: string: '' @@ -2349,17 +2454,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b0c71ec1-89b8-4b5a-8afd-1f71f2227fa1?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/96ba536f-a2ed-4901-a1fa-ed5864cfdfff?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:02:00 GMT + - Tue, 25 May 2021 10:50:13 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b0c71ec1-89b8-4b5a-8afd-1f71f2227fa1?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/96ba536f-a2ed-4901-a1fa-ed5864cfdfff?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -2372,7 +2477,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/UpdateVM3Min;235,Microsoft.Compute/UpdateVM30Min;1193 x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14994' status: code: 202 message: Accepted @@ -2386,14 +2491,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b0c71ec1-89b8-4b5a-8afd-1f71f2227fa1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/96ba536f-a2ed-4901-a1fa-ed5864cfdfff?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:02:00.1486668+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"b0c71ec1-89b8-4b5a-8afd-1f71f2227fa1\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:50:13.9791079+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"96ba536f-a2ed-4901-a1fa-ed5864cfdfff\"\r\n}" headers: cache-control: - no-cache @@ -2402,7 +2507,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:02:29 GMT + - Tue, 25 May 2021 10:50:43 GMT expires: - '-1' pragma: @@ -2419,7 +2524,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29975 + - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29971 status: code: 200 message: OK @@ -2433,24 +2538,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/b0c71ec1-89b8-4b5a-8afd-1f71f2227fa1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/96ba536f-a2ed-4901-a1fa-ed5864cfdfff?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:02:00.1486668+00:00\",\r\n \"endTime\": - \"2021-04-06T04:02:40.508165+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"b0c71ec1-89b8-4b5a-8afd-1f71f2227fa1\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:50:13.9791079+00:00\",\r\n \"endTime\": + \"2021-05-25T10:50:44.6197268+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"96ba536f-a2ed-4901-a1fa-ed5864cfdfff\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:02:59 GMT + - Tue, 25 May 2021 10:51:14 GMT expires: - '-1' pragma: @@ -2467,7 +2572,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29973 + - Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29969 status: code: 200 message: OK @@ -2483,26 +2588,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/powerOff?skipShutdown=false&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/powerOff?skipShutdown=false&api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cc1437e7-c7a5-498b-8788-1768f3eb5ed2?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/dba629ca-187c-4a2e-984f-1467302b895d?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:02:59 GMT + - Tue, 25 May 2021 10:51:14 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cc1437e7-c7a5-498b-8788-1768f3eb5ed2?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/dba629ca-187c-4a2e-984f-1467302b895d?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -2513,9 +2618,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/UpdateVM3Min;235,Microsoft.Compute/UpdateVM30Min;1192 + - Microsoft.Compute/UpdateVM3Min;236,Microsoft.Compute/UpdateVM30Min;1192 x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1194' status: code: 202 message: Accepted @@ -2529,15 +2634,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cc1437e7-c7a5-498b-8788-1768f3eb5ed2?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/dba629ca-187c-4a2e-984f-1467302b895d?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:03:00.3833058+00:00\",\r\n \"endTime\": - \"2021-04-06T04:03:10.2895927+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"cc1437e7-c7a5-498b-8788-1768f3eb5ed2\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:51:14.4009609+00:00\",\r\n \"endTime\": + \"2021-05-25T10:51:30.7291296+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"dba629ca-187c-4a2e-984f-1467302b895d\"\r\n}" headers: cache-control: - no-cache @@ -2546,7 +2651,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:03:30 GMT + - Tue, 25 May 2021 10:51:44 GMT expires: - '-1' pragma: @@ -2563,7 +2668,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29971 + - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29967 status: code: 200 message: OK @@ -2577,10 +2682,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cc1437e7-c7a5-498b-8788-1768f3eb5ed2?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/dba629ca-187c-4a2e-984f-1467302b895d?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -2590,7 +2695,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 04:03:30 GMT + - Tue, 25 May 2021 10:51:44 GMT expires: - '-1' pragma: @@ -2603,7 +2708,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29970 + - Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29966 status: code: 200 message: OK @@ -2619,26 +2724,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/reapply?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/reapply?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c9d776de-f9a4-458e-88ae-cb17572d9558?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/61f4d532-77c7-42c1-9073-d0d99f63d6d9?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:03:30 GMT + - Tue, 25 May 2021 10:51:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c9d776de-f9a4-458e-88ae-cb17572d9558?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/61f4d532-77c7-42c1-9073-d0d99f63d6d9?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -2649,9 +2754,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/UpdateVM3Min;235,Microsoft.Compute/UpdateVM30Min;1191 + - Microsoft.Compute/UpdateVM3Min;236,Microsoft.Compute/UpdateVM30Min;1191 x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1193' status: code: 202 message: Accepted @@ -2665,15 +2770,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c9d776de-f9a4-458e-88ae-cb17572d9558?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/61f4d532-77c7-42c1-9073-d0d99f63d6d9?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:03:30.6021582+00:00\",\r\n \"endTime\": - \"2021-04-06T04:03:32.1021693+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"c9d776de-f9a4-458e-88ae-cb17572d9558\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:51:44.8697672+00:00\",\r\n \"endTime\": + \"2021-05-25T10:51:46.3697713+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"61f4d532-77c7-42c1-9073-d0d99f63d6d9\"\r\n}" headers: cache-control: - no-cache @@ -2682,7 +2787,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:04:00 GMT + - Tue, 25 May 2021 10:52:14 GMT expires: - '-1' pragma: @@ -2699,7 +2804,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29968 + - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29964 status: code: 200 message: OK @@ -2713,10 +2818,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c9d776de-f9a4-458e-88ae-cb17572d9558?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/61f4d532-77c7-42c1-9073-d0d99f63d6d9?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -2726,7 +2831,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 04:04:00 GMT + - Tue, 25 May 2021 10:52:14 GMT expires: - '-1' pragma: @@ -2739,7 +2844,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29967 + - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29963 status: code: 200 message: OK @@ -2755,26 +2860,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/redeploy?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/redeploy?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e5513768-0c9a-4bcc-a887-e859dec18faa?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/851b8483-2b79-4ccf-957f-cefd87a824f7?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:04:00 GMT + - Tue, 25 May 2021 10:52:14 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e5513768-0c9a-4bcc-a887-e859dec18faa?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/851b8483-2b79-4ccf-957f-cefd87a824f7?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -2785,9 +2890,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/UpdateVM3Min;236,Microsoft.Compute/UpdateVM30Min;1190 + - Microsoft.Compute/UpdateVM3Min;235,Microsoft.Compute/UpdateVM30Min;1190 x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1192' status: code: 202 message: Accepted @@ -2801,14 +2906,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e5513768-0c9a-4bcc-a887-e859dec18faa?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/851b8483-2b79-4ccf-957f-cefd87a824f7?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:04:00.7897094+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"e5513768-0c9a-4bcc-a887-e859dec18faa\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:52:15.3228873+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"851b8483-2b79-4ccf-957f-cefd87a824f7\"\r\n}" headers: cache-control: - no-cache @@ -2817,7 +2922,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:04:30 GMT + - Tue, 25 May 2021 10:52:45 GMT expires: - '-1' pragma: @@ -2834,7 +2939,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29965 + - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29961 status: code: 200 message: OK @@ -2848,14 +2953,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e5513768-0c9a-4bcc-a887-e859dec18faa?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/851b8483-2b79-4ccf-957f-cefd87a824f7?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:04:00.7897094+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"e5513768-0c9a-4bcc-a887-e859dec18faa\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:52:15.3228873+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"851b8483-2b79-4ccf-957f-cefd87a824f7\"\r\n}" headers: cache-control: - no-cache @@ -2864,7 +2969,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:05:00 GMT + - Tue, 25 May 2021 10:53:15 GMT expires: - '-1' pragma: @@ -2881,7 +2986,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29962 + - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29958 status: code: 200 message: OK @@ -2895,14 +3000,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e5513768-0c9a-4bcc-a887-e859dec18faa?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/851b8483-2b79-4ccf-957f-cefd87a824f7?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:04:00.7897094+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"e5513768-0c9a-4bcc-a887-e859dec18faa\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:52:15.3228873+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"851b8483-2b79-4ccf-957f-cefd87a824f7\"\r\n}" headers: cache-control: - no-cache @@ -2911,7 +3016,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:05:30 GMT + - Tue, 25 May 2021 10:53:45 GMT expires: - '-1' pragma: @@ -2928,7 +3033,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29959 + - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29955 status: code: 200 message: OK @@ -2942,15 +3047,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e5513768-0c9a-4bcc-a887-e859dec18faa?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/851b8483-2b79-4ccf-957f-cefd87a824f7?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:04:00.7897094+00:00\",\r\n \"endTime\": - \"2021-04-06T04:05:53.0709139+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"e5513768-0c9a-4bcc-a887-e859dec18faa\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:52:15.3228873+00:00\",\r\n \"endTime\": + \"2021-05-25T10:54:07.7136528+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"851b8483-2b79-4ccf-957f-cefd87a824f7\"\r\n}" headers: cache-control: - no-cache @@ -2959,7 +3064,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:06:00 GMT + - Tue, 25 May 2021 10:54:15 GMT expires: - '-1' pragma: @@ -2976,7 +3081,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29956 + - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29952 status: code: 200 message: OK @@ -2990,10 +3095,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e5513768-0c9a-4bcc-a887-e859dec18faa?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/851b8483-2b79-4ccf-957f-cefd87a824f7?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -3003,7 +3108,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 04:06:00 GMT + - Tue, 25 May 2021 10:54:15 GMT expires: - '-1' pragma: @@ -3016,7 +3121,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29955 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29951 status: code: 200 message: OK @@ -3035,57 +3140,55 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinex15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"18860350-8851-48b5-a029-7b2cf4b34a09\",\r\n + \ \"properties\": {\r\n \"vmId\": \"59f59d01-504a-456a-b061-93cead79500b\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"14393.4402.2105052108\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk\"\r\n - \ },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": - [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"virtualmachinex15cf0eff_disk2_44d64ab7bcc34536b575766404056e48\",\r\n + \ },\r\n \"diskSizeGB\": 127,\r\n \"deleteOption\": \"Detach\"\r\n + \ },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n + \ \"name\": \"virtualmachinex15cf0eff_disk2_d0afd54c9c45480e8b9b99601fdd65ef\",\r\n \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk2_44d64ab7bcc34536b575766404056e48\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk2_d0afd54c9c45480e8b9b99601fdd65ef\"\r\n \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n \"name\": - \"virtualmachinex15cf0eff_disk3_0f2f71ddf60341a3bbbf249bd5b2fcbd\",\r\n \"createOption\": - \"Empty\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk3_0f2f71ddf60341a3bbbf249bd5b2fcbd\"\r\n + false,\r\n \"deleteOption\": \"Detach\"\r\n },\r\n {\r\n + \ \"lun\": 1,\r\n \"name\": \"virtualmachinex15cf0eff_disk3_c2ecc5c2329e47afbc892c5ee789a3ab\",\r\n + \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk3_c2ecc5c2329e47afbc892c5ee789a3ab\"\r\n \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": - \"myVM\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + false,\r\n \"deleteOption\": \"Detach\"\r\n }\r\n ]\r\n + \ },\r\n \"osProfile\": {\r\n \"computerName\": \"myVM\",\r\n \"adminUsername\": + \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": + true,\r\n \"enableAutomaticUpdates\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"AutomaticByOS\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff\",\"properties\":{\"primary\":true}}]},\r\n \ \"provisioningState\": \"Updating\"\r\n }\r\n}" headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ab5c4f8b-39f4-4911-9f4a-24f3029a2169?api-version=2020-12-01 cache-control: - no-cache content-length: - - '3244' + - '3398' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:06:00 GMT + - Tue, 25 May 2021 10:54:16 GMT expires: - '-1' pragma: @@ -3104,55 +3207,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/PutVM3Min;744,Microsoft.Compute/PutVM30Min;3727 x-ms-ratelimit-remaining-subscription-writes: - - '1196' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ab5c4f8b-39f4-4911-9f4a-24f3029a2169?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:06:01.1334145+00:00\",\r\n \"endTime\": - \"2021-04-06T04:06:01.2896709+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"ab5c4f8b-39f4-4911-9f4a-24f3029a2169\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '184' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:06:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29952 + - '1193' status: code: 200 message: OK @@ -3166,41 +3221,43 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinex15cf0eff\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"18860350-8851-48b5-a029-7b2cf4b34a09\",\r\n + \ \"properties\": {\r\n \"vmId\": \"59f59d01-504a-456a-b061-93cead79500b\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"14393.4402.2105052108\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk\"\r\n - \ },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": - [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"virtualmachinex15cf0eff_disk2_44d64ab7bcc34536b575766404056e48\",\r\n + \ },\r\n \"diskSizeGB\": 127,\r\n \"deleteOption\": \"Detach\"\r\n + \ },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n + \ \"name\": \"virtualmachinex15cf0eff_disk2_d0afd54c9c45480e8b9b99601fdd65ef\",\r\n \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk2_44d64ab7bcc34536b575766404056e48\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk2_d0afd54c9c45480e8b9b99601fdd65ef\"\r\n \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n },\r\n {\r\n \"lun\": 1,\r\n \"name\": - \"virtualmachinex15cf0eff_disk3_0f2f71ddf60341a3bbbf249bd5b2fcbd\",\r\n \"createOption\": - \"Empty\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk3_0f2f71ddf60341a3bbbf249bd5b2fcbd\"\r\n + false,\r\n \"deleteOption\": \"Detach\"\r\n },\r\n {\r\n + \ \"lun\": 1,\r\n \"name\": \"virtualmachinex15cf0eff_disk3_c2ecc5c2329e47afbc892c5ee789a3ab\",\r\n + \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinex15cf0eff_disk3_c2ecc5c2329e47afbc892c5ee789a3ab\"\r\n \ },\r\n \"diskSizeGB\": 1023,\r\n \"toBeDetached\": - false\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": - \"myVM\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + false,\r\n \"deleteOption\": \"Detach\"\r\n }\r\n ]\r\n + \ },\r\n \"osProfile\": {\r\n \"computerName\": \"myVM\",\r\n \"adminUsername\": + \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": + true,\r\n \"enableAutomaticUpdates\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"AutomaticByOS\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex15cf0eff\",\"properties\":{\"primary\":true}}]},\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" @@ -3208,11 +3265,11 @@ interactions: cache-control: - no-cache content-length: - - '3245' + - '3399' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:06:30 GMT + - Tue, 25 May 2021 10:54:47 GMT expires: - '-1' pragma: @@ -3229,7 +3286,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31988 + - Microsoft.Compute/LowCostGet3Min;3990,Microsoft.Compute/LowCostGet30Min;31925 status: code: 200 message: OK @@ -3245,10 +3302,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/generalize?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/generalize?api-version=2021-03-01 response: body: string: '' @@ -3258,7 +3315,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 04:06:30 GMT + - Tue, 25 May 2021 10:54:47 GMT expires: - '-1' pragma: @@ -3273,7 +3330,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/UpdateVM3Min;238,Microsoft.Compute/UpdateVM30Min;1189 x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1191' status: code: 200 message: OK @@ -3289,26 +3346,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/deallocate?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff/deallocate?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/595ea5f9-4e7b-4902-9a7b-bdd10b8057db?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4cc5819b-4514-4715-a3ec-25fa077a9024?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:06:30 GMT + - Tue, 25 May 2021 10:54:48 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/595ea5f9-4e7b-4902-9a7b-bdd10b8057db?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4cc5819b-4514-4715-a3ec-25fa077a9024?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -3321,7 +3378,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteVM3Min;239,Microsoft.Compute/DeleteVM30Min;1199 x-ms-ratelimit-remaining-subscription-writes: - - '1191' + - '1190' status: code: 202 message: Accepted @@ -3335,14 +3392,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/595ea5f9-4e7b-4902-9a7b-bdd10b8057db?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4cc5819b-4514-4715-a3ec-25fa077a9024?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:06:31.5396622+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"595ea5f9-4e7b-4902-9a7b-bdd10b8057db\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:54:48.3073769+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"4cc5819b-4514-4715-a3ec-25fa077a9024\"\r\n}" headers: cache-control: - no-cache @@ -3351,7 +3408,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:06:40 GMT + - Tue, 25 May 2021 10:54:58 GMT expires: - '-1' pragma: @@ -3368,7 +3425,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29950 + - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29949 status: code: 200 message: OK @@ -3382,15 +3439,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/595ea5f9-4e7b-4902-9a7b-bdd10b8057db?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4cc5819b-4514-4715-a3ec-25fa077a9024?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:06:31.5396622+00:00\",\r\n \"endTime\": - \"2021-04-06T04:07:04.1333883+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"595ea5f9-4e7b-4902-9a7b-bdd10b8057db\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:54:48.3073769+00:00\",\r\n \"endTime\": + \"2021-05-25T10:55:27.6979934+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"4cc5819b-4514-4715-a3ec-25fa077a9024\"\r\n}" headers: cache-control: - no-cache @@ -3399,7 +3456,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:07:11 GMT + - Tue, 25 May 2021 10:55:33 GMT expires: - '-1' pragma: @@ -3416,7 +3473,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29949 + - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29945 status: code: 200 message: OK @@ -3430,10 +3487,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/595ea5f9-4e7b-4902-9a7b-bdd10b8057db?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4cc5819b-4514-4715-a3ec-25fa077a9024?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -3443,7 +3500,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 04:07:11 GMT + - Tue, 25 May 2021 10:55:34 GMT expires: - '-1' pragma: @@ -3456,7 +3513,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29948 + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29944 status: code: 200 message: OK @@ -3472,10 +3529,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex15cf0eff?api-version=2021-03-01 response: body: string: '' @@ -3483,17 +3540,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4358472e-9f27-4665-9e73-be8526d66e8a?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/6889ae8c-9082-42aa-8e96-0705f771a5b1?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:07:11 GMT + - Tue, 25 May 2021 10:55:34 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4358472e-9f27-4665-9e73-be8526d66e8a?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/6889ae8c-9082-42aa-8e96-0705f771a5b1?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -3506,7 +3563,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteVM3Min;238,Microsoft.Compute/DeleteVM30Min;1198 x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14993' status: code: 202 message: Accepted @@ -3520,24 +3577,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4358472e-9f27-4665-9e73-be8526d66e8a?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/6889ae8c-9082-42aa-8e96-0705f771a5b1?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:07:11.8834003+00:00\",\r\n \"endTime\": - \"2021-04-06T04:07:12.305253+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"4358472e-9f27-4665-9e73-be8526d66e8a\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:55:35.3230201+00:00\",\r\n \"endTime\": + \"2021-05-25T10:55:35.7761054+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"6889ae8c-9082-42aa-8e96-0705f771a5b1\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:07:21 GMT + - Tue, 25 May 2021 10:55:45 GMT expires: - '-1' pragma: @@ -3554,7 +3611,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29945 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29942 status: code: 200 message: OK diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_2.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_2.yaml index 6146f7b26ecd..a0d8ad97d8e6 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_2.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_2.yaml @@ -14,17 +14,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamex34bd0f90\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90\",\r\n - \ \"etag\": \"W/\\\"b8278259-80cf-4462-b519-7c4e31bed906\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"79996046-d29c-42b1-9196-d9a26c3955a0\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"dcde3600-1982-43d8-a069-8a856ef4cd82\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"b2bde5aa-2437-4e04-91b9-7eb700398dc8\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -32,7 +32,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/17d805dc-259d-4141-91bb-0090ea26975a?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/17ebcab5-2f12-4b8d-8263-cdcb3f2c15e7?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -40,7 +40,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:07:23 GMT + - Tue, 25 May 2021 10:55:48 GMT expires: - '-1' pragma: @@ -53,9 +53,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 58517641-70e2-4250-a023-20a3b88be232 + - 9a9c6941-04f5-402e-b9e4-f717b9313b62 x-ms-ratelimit-remaining-subscription-writes: - - '1185' + - '1193' status: code: 201 message: Created @@ -69,10 +69,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/17d805dc-259d-4141-91bb-0090ea26975a?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/17ebcab5-2f12-4b8d-8263-cdcb3f2c15e7?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -84,7 +84,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:07:26 GMT + - Tue, 25 May 2021 10:55:52 GMT expires: - '-1' pragma: @@ -101,7 +101,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3531c45b-96ba-4781-9f37-a0b913c896f5 + - 121e2201-fc37-4767-9a97-2da6d3c0f419 status: code: 200 message: OK @@ -115,17 +115,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamex34bd0f90\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90\",\r\n - \ \"etag\": \"W/\\\"67c2a81d-07b9-45e8-bab4-4e0a47c924cb\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"ecfdf9fd-fb9e-4a18-b458-c3d568f95912\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"dcde3600-1982-43d8-a069-8a856ef4cd82\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"b2bde5aa-2437-4e04-91b9-7eb700398dc8\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -137,9 +137,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:07:26 GMT + - Tue, 25 May 2021 10:55:52 GMT etag: - - W/"67c2a81d-07b9-45e8-bab4-4e0a47c924cb" + - W/"ecfdf9fd-fb9e-4a18-b458-c3d568f95912" expires: - '-1' pragma: @@ -156,7 +156,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c9eab4b9-b091-4bb1-ac4f-84c7803ac07c + - 5240ec43-1101-4b26-806b-de0393672107 status: code: 200 message: OK @@ -174,21 +174,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90/subnets/subnetx34bd0f90?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90/subnets/subnetx34bd0f90?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetx34bd0f90\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90/subnets/subnetx34bd0f90\",\r\n - \ \"etag\": \"W/\\\"0a68e1e7-9d78-4faa-86d1-62a344defeec\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"fe4bf767-58c6-4e9a-ab47-d21f00dcc3c0\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/dea1d763-9039-4ebd-b22c-83d4de44cea1?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/11a61c4e-7b10-4d36-bf7d-01cf66ffb40d?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -196,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:07:26 GMT + - Tue, 25 May 2021 10:55:52 GMT expires: - '-1' pragma: @@ -209,9 +209,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - eca41485-a978-4f72-8c80-a4946037f7ad + - d8560747-e8cc-4e6a-b0b7-1199f336fce4 x-ms-ratelimit-remaining-subscription-writes: - - '1184' + - '1192' status: code: 201 message: Created @@ -225,10 +225,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/dea1d763-9039-4ebd-b22c-83d4de44cea1?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/11a61c4e-7b10-4d36-bf7d-01cf66ffb40d?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -240,7 +240,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:07:29 GMT + - Tue, 25 May 2021 10:55:55 GMT expires: - '-1' pragma: @@ -257,7 +257,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4990619e-0b2f-4bba-b29a-bcba3b18e785 + - 6f40b42d-887f-430e-baaa-7d84752a85bc status: code: 200 message: OK @@ -271,14 +271,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90/subnets/subnetx34bd0f90?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90/subnets/subnetx34bd0f90?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetx34bd0f90\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex34bd0f90/subnets/subnetx34bd0f90\",\r\n - \ \"etag\": \"W/\\\"4d40f8d5-15de-4c9a-81f4-fd9c0b1b9fa5\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"67f92ab8-b323-4f25-9819-cbadac9be64d\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -291,9 +291,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:07:29 GMT + - Tue, 25 May 2021 10:55:55 GMT etag: - - W/"4d40f8d5-15de-4c9a-81f4-fd9c0b1b9fa5" + - W/"67f92ab8-b323-4f25-9819-cbadac9be64d" expires: - '-1' pragma: @@ -310,7 +310,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 765c84e6-2612-47b4-811f-6d3c1b7de4be + - dd769948-d5a3-444c-a350-d9427a87ecfb status: code: 200 message: OK @@ -329,18 +329,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex34bd0f90?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex34bd0f90?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"interfacex34bd0f90\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex34bd0f90\",\r\n - \ \"etag\": \"W/\\\"a08f7e9b-2694-41f5-9f98-2c8b0c141d5a\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"7788d877-5080-4ca0-81f8-e59e1e35c48e\\\"\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"f7834363-cf24-4eea-b321-e3ef162509d1\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"d1f163ae-8dd2-400e-9cf6-c260d82d6bea\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex34bd0f90/ipConfigurations/MyIpConfig\",\r\n - \ \"etag\": \"W/\\\"a08f7e9b-2694-41f5-9f98-2c8b0c141d5a\\\"\",\r\n + \ \"etag\": \"W/\\\"7788d877-5080-4ca0-81f8-e59e1e35c48e\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -348,7 +348,7 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"aa1n3xecdhmehidjrkcw33gnqc.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": + \"vls11mrxeqce3enzp01qaomnza.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"hostedWorkloads\": [],\r\n \ \"tapConfigurations\": [],\r\n \"nicType\": \"Standard\"\r\n },\r\n \ \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" @@ -356,7 +356,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9bb1ecd8-f8e1-41b7-8f8d-228469586f47?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1dd89441-4277-4941-96d3-af9a27a4491d?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -364,7 +364,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:07:30 GMT + - Tue, 25 May 2021 10:55:57 GMT expires: - '-1' pragma: @@ -377,9 +377,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 70b76c92-f0ca-483c-9ea4-ce1013c924d6 + - bbea3e81-c32f-4dfa-aeaa-3bc69069e7b9 x-ms-ratelimit-remaining-subscription-writes: - - '1183' + - '1191' status: code: 201 message: Created @@ -393,10 +393,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9bb1ecd8-f8e1-41b7-8f8d-228469586f47?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1dd89441-4277-4941-96d3-af9a27a4491d?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -408,7 +408,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:07:59 GMT + - Tue, 25 May 2021 10:56:27 GMT expires: - '-1' pragma: @@ -425,7 +425,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - a610b53d-5e9c-4a34-93be-3c89c999080c + - fc0d8600-2044-41af-911a-2007d202c390 status: code: 200 message: OK @@ -439,18 +439,18 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex34bd0f90?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex34bd0f90?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"interfacex34bd0f90\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex34bd0f90\",\r\n - \ \"etag\": \"W/\\\"a08f7e9b-2694-41f5-9f98-2c8b0c141d5a\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"7788d877-5080-4ca0-81f8-e59e1e35c48e\\\"\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"f7834363-cf24-4eea-b321-e3ef162509d1\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"d1f163ae-8dd2-400e-9cf6-c260d82d6bea\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex34bd0f90/ipConfigurations/MyIpConfig\",\r\n - \ \"etag\": \"W/\\\"a08f7e9b-2694-41f5-9f98-2c8b0c141d5a\\\"\",\r\n + \ \"etag\": \"W/\\\"7788d877-5080-4ca0-81f8-e59e1e35c48e\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -458,7 +458,7 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"aa1n3xecdhmehidjrkcw33gnqc.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": + \"vls11mrxeqce3enzp01qaomnza.bx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\n \"hostedWorkloads\": [],\r\n \ \"tapConfigurations\": [],\r\n \"nicType\": \"Standard\"\r\n },\r\n \ \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" @@ -470,9 +470,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:07:59 GMT + - Tue, 25 May 2021 10:56:27 GMT etag: - - W/"a08f7e9b-2694-41f5-9f98-2c8b0c141d5a" + - W/"7788d877-5080-4ca0-81f8-e59e1e35c48e" expires: - '-1' pragma: @@ -489,7 +489,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - fa33b1d1-4173-4ffa-85f4-f705756c1268 + - fc6aa9ee-f40a-4a69-a807-53d3ceb43ef4 status: code: 200 message: OK @@ -515,28 +515,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinex34bd0f90\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"73623e2f-f470-4494-9bb0-e86a91385c8a\",\r\n + \ \"properties\": {\r\n \"vmId\": \"c5acedbb-61ec-4403-b540-070f8e940faf\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"14393.4402.2105052108\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n - \ \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": []\r\n },\r\n - \ \"osProfile\": {\r\n \"computerName\": \"myVM\",\r\n \"adminUsername\": - \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": - true,\r\n \"enableAutomaticUpdates\": true,\r\n \"patchSettings\": - {\r\n \"patchMode\": \"AutomaticByOS\"\r\n }\r\n },\r\n + \ \"diskSizeGB\": 127,\r\n \"deleteOption\": \"Detach\"\r\n },\r\n + \ \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": + \"myVM\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": + {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex34bd0f90\",\"properties\":{\"primary\":true}}]},\r\n \ \"provisioningState\": \"Creating\",\r\n \"priority\": \"Spot\",\r\n @@ -546,15 +547,15 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/7ec801b0-4aef-421b-9c2c-17462c87c725?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/19beb1f4-eea9-4d37-be41-62dbd97b8099?api-version=2021-03-01 cache-control: - no-cache content-length: - - '1906' + - '1986' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:08:00 GMT + - Tue, 25 May 2021 10:56:30 GMT expires: - '-1' pragma: @@ -569,7 +570,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/PutVM3Min;743,Microsoft.Compute/PutVM30Min;3726 x-ms-ratelimit-remaining-subscription-writes: - - '1191' + - '1193' status: code: 201 message: Created @@ -583,14 +584,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/7ec801b0-4aef-421b-9c2c-17462c87c725?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/19beb1f4-eea9-4d37-be41-62dbd97b8099?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:08:01.2273659+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"7ec801b0-4aef-421b-9c2c-17462c87c725\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:56:29.9324568+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"19beb1f4-eea9-4d37-be41-62dbd97b8099\"\r\n}" headers: cache-control: - no-cache @@ -599,7 +600,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:08:10 GMT + - Tue, 25 May 2021 10:56:40 GMT expires: - '-1' pragma: @@ -616,7 +617,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29944 + - Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29941 status: code: 200 message: OK @@ -630,14 +631,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/7ec801b0-4aef-421b-9c2c-17462c87c725?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/19beb1f4-eea9-4d37-be41-62dbd97b8099?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:08:01.2273659+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"7ec801b0-4aef-421b-9c2c-17462c87c725\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:56:29.9324568+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"19beb1f4-eea9-4d37-be41-62dbd97b8099\"\r\n}" headers: cache-control: - no-cache @@ -646,7 +647,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:09:00 GMT + - Tue, 25 May 2021 10:57:30 GMT expires: - '-1' pragma: @@ -663,7 +664,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29943 + - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29940 status: code: 200 message: OK @@ -677,15 +678,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/7ec801b0-4aef-421b-9c2c-17462c87c725?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/19beb1f4-eea9-4d37-be41-62dbd97b8099?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:08:01.2273659+00:00\",\r\n \"endTime\": - \"2021-04-06T04:09:28.8059947+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"7ec801b0-4aef-421b-9c2c-17462c87c725\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:56:29.9324568+00:00\",\r\n \"endTime\": + \"2021-05-25T10:57:57.2919344+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"19beb1f4-eea9-4d37-be41-62dbd97b8099\"\r\n}" headers: cache-control: - no-cache @@ -694,7 +695,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:09:31 GMT + - Tue, 25 May 2021 10:58:00 GMT expires: - '-1' pragma: @@ -711,7 +712,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29941 + - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29938 status: code: 200 message: OK @@ -725,30 +726,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinex34bd0f90\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"vmId\": \"73623e2f-f470-4494-9bb0-e86a91385c8a\",\r\n + \ \"properties\": {\r\n \"vmId\": \"c5acedbb-61ec-4403-b540-070f8e940faf\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_D2_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"14393.4402.2105052108\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"name\": \"myVMosdisk\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/myVMosdisk\"\r\n - \ },\r\n \"diskSizeGB\": 127\r\n },\r\n \"dataDisks\": - []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"myVM\",\r\n - \ \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + \ },\r\n \"diskSizeGB\": 127,\r\n \"deleteOption\": \"Detach\"\r\n + \ },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n + \ \"computerName\": \"myVM\",\r\n \"adminUsername\": \"testuser\",\r\n + \ \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n + \ \"enableAutomaticUpdates\": true,\r\n \"patchSettings\": {\r\n + \ \"patchMode\": \"AutomaticByOS\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/interfacex34bd0f90\",\"properties\":{\"primary\":true}}]},\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"priority\": \"Spot\",\r\n @@ -758,11 +760,11 @@ interactions: cache-control: - no-cache content-length: - - '2120' + - '2200' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:09:31 GMT + - Tue, 25 May 2021 10:58:00 GMT expires: - '-1' pragma: @@ -779,7 +781,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31985 + - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31932 status: code: 200 message: OK @@ -795,10 +797,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90/simulateEviction?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90/simulateEviction?api-version=2021-03-01 response: body: string: '' @@ -806,7 +808,7 @@ interactions: cache-control: - no-cache date: - - Tue, 06 Apr 2021 04:09:31 GMT + - Tue, 25 May 2021 10:58:00 GMT expires: - '-1' pragma: @@ -821,7 +823,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteVM3Min;238,Microsoft.Compute/DeleteVM30Min;1197 x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1195' status: code: 204 message: No Content @@ -837,10 +839,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90/performMaintenance?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90/performMaintenance?api-version=2021-03-01 response: body: string: "{\r\n \"error\": {\r\n \"code\": \"OperationNotAllowed\",\r\n \"message\": @@ -854,7 +856,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:09:31 GMT + - Tue, 25 May 2021 10:58:00 GMT expires: - '-1' pragma: @@ -869,720 +871,8 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/UpdateVM3Min;239,Microsoft.Compute/UpdateVM30Min;1188 x-ms-ratelimit-remaining-subscription-writes: - - '1193' - status: - code: 409 - message: Conflict -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90/convertToManagedDisks?api-version=2020-12-01 - response: - body: - string: "{\r\n \"error\": {\r\n \"code\": \"OperationNotAllowed\",\r\n \"message\": - \"VM 'virtualmachinex34bd0f90' is already using managed disks.\"\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '138' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:09:31 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/UpdateVM3Min;238,Microsoft.Compute/UpdateVM30Min;1187 - x-ms-ratelimit-remaining-subscription-writes: - - '1192' - status: - code: 409 - message: Conflict -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90/reimage?api-version=2020-12-01 - response: - body: - string: "{\r\n \"error\": {\r\n \"code\": \"OperationNotAllowed\",\r\n \"message\": - \"The Reimage and OSUpgrade Virtual Machine actions require that the virtual - machine has Automatic OS Upgrades enabled.\"\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '195' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:09:31 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/UpdateVM3Min;237,Microsoft.Compute/UpdateVM30Min;1186 - x-ms-ratelimit-remaining-subscription-writes: - - '1191' + - '1194' status: code: 409 message: Conflict -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/virtualmachinex34bd0f90?api-version=2020-12-01 - response: - body: - string: '' - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 06 Apr 2021 04:09:32 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?monitor=true&api-version=2020-12-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/DeleteVM3Min;237,Microsoft.Compute/DeleteVM30Min;1196 - x-ms-ratelimit-remaining-subscription-deletes: - - '14992' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:09:41 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29940 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:10:11 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29939 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:10:41 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29938 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:11:11 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29937 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:11:42 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29935 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:12:12 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29934 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:12:41 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29933 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:13:12 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29932 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:13:42 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29930 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:14:12 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29929 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:14:41 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29928 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:09:32.1653846+00:00\",\r\n \"endTime\": - \"2021-04-06T04:14:59.1665663+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"89850abc-1a3a-4adb-ac4c-7c8e4d7d0cba\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '184' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:15:12 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29926 - status: - code: 200 - message: OK version: 1 diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_extension_image.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_extension_image.yaml index 2d58189ac33a..82732891b32d 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_extension_image.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_extension_image.yaml @@ -9,10 +9,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Compute/artifacttypes/vmextension/types/VMAccessAgent/versions/1.0.2?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Compute/artifacttypes/vmextension/types/VMAccessAgent/versions/1.0.2?api-version=2021-03-01 response: body: string: "{\r\n \"properties\": {\r\n \"operatingSystem\": \"Windows\",\r\n @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:15:13 GMT + - Tue, 25 May 2021 10:58:03 GMT expires: - '-1' pragma: @@ -59,10 +59,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Compute/artifacttypes/vmextension/types?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Compute/artifacttypes/vmextension/types?api-version=2021-03-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"BGInfo\",\r\n @@ -82,7 +82,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:15:13 GMT + - Tue, 25 May 2021 10:58:03 GMT expires: - '-1' pragma: @@ -113,10 +113,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Compute/artifacttypes/vmextension/types/VMAccessAgent/versions?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Microsoft.Compute/artifacttypes/vmextension/types/VMAccessAgent/versions?api-version=2021-03-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"1.0\",\r\n @@ -158,7 +158,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:15:13 GMT + - Tue, 25 May 2021 10:58:03 GMT expires: - '-1' pragma: diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_image.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_image.yaml index f831a69eb084..b96495f21e88 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_image.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vm.test_compute_vm_image.yaml @@ -9,10 +9,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2019-Datacenter/versions/2019.0.20190115?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2019-Datacenter/versions/2019.0.20190115?api-version=2021-03-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"replicaType\": @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:15:15 GMT + - Tue, 25 May 2021 10:58:06 GMT expires: - '-1' pragma: @@ -47,7 +47,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73997 + - Microsoft.Compute/GetVMImageFromLocation3Min;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73997 status: code: 200 message: OK @@ -61,17 +61,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2019-Datacenter/versions?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2019-Datacenter/versions?api-version=2021-03-01 response: body: - string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"17763.1098.2003062342\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2019-Datacenter/Versions/17763.1098.2003062342\"\r\n - \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"17763.1158.2004131759\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2019-Datacenter/Versions/17763.1158.2004131759\"\r\n - \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"17763.1217.2005081535\",\r\n + string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"17763.1217.2005081535\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2019-Datacenter/Versions/17763.1217.2005081535\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"17763.1282.2006061952\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2019-Datacenter/Versions/17763.1282.2006061952\"\r\n @@ -95,6 +91,10 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2019-Datacenter/Versions/17763.1757.2102060435\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"17763.1817.2103030313\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2019-Datacenter/Versions/17763.1817.2103030313\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"17763.1879.2104091832\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2019-Datacenter/Versions/17763.1879.2104091832\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"17763.1935.2105080716\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2019-Datacenter/Versions/17763.1935.2105080716\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"2019.0.20181107\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2019-Datacenter/Versions/2019.0.20181107\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"2019.0.20181122\",\r\n @@ -118,7 +118,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:15:15 GMT + - Tue, 25 May 2021 10:58:06 GMT expires: - '-1' pragma: @@ -135,7 +135,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43997 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43997 status: code: 200 message: OK @@ -149,10 +149,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers?api-version=2021-03-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"19h1gen2servertest\",\r\n @@ -208,7 +208,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:15:15 GMT + - Tue, 25 May 2021 10:58:06 GMT expires: - '-1' pragma: @@ -239,10 +239,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers?api-version=2021-03-01 response: body: string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"128technology\",\r\n @@ -327,6 +327,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/aerospike\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"affinio\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/affinio\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"affirmednetworks1607630812999\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/affirmednetworks1607630812999\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"ageniumscale1591804889317\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/ageniumscale1591804889317\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"aggregion-ltd\",\r\n @@ -343,6 +345,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/airalabrus\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"aiscaler-cache-control-ddos-and-url-rewriting-\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/aiscaler-cache-control-ddos-and-url-rewriting-\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"aisundowninc1618516322959\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/aisundowninc1618516322959\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"akamai-technologies\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/akamai-technologies\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"akumina\",\r\n @@ -527,6 +531,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/beyondtrust\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"bi-builders-as\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/bi-builders-as\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"big-id\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/big-id\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"bissantechnology1583581147809\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/bissantechnology1583581147809\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"bitdefendercybersecurity\",\r\n @@ -541,6 +547,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/black-duck-software\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"blackbird\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/blackbird\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"blackmagicdesignincorporated1596492193249\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/blackmagicdesignincorporated1596492193249\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"blk-technologies\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/blk-technologies\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"blockapps\",\r\n @@ -621,6 +629,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/center-for-internet-security-inc\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"centeritysystems\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/centeritysystems\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"centrixeltd1594135951373\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/centrixeltd1594135951373\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"centrocomputerspa1584528117084\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/centrocomputerspa1584528117084\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"certivox\",\r\n @@ -681,6 +691,10 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/cloudflare\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"cloudhouse\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/cloudhouse\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"cloudinfo-4919088\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/cloudinfo-4919088\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"cloudknox\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/cloudknox\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"cloudlanes\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/cloudlanes\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"cloudlink\",\r\n @@ -941,6 +955,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/egress1589289169584\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"eikonasystemsgmbh1601729310063\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/eikonasystemsgmbh1601729310063\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Elastic\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Elastic\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Elastic.Test\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Elastic.Test\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"elasticbox\",\r\n @@ -997,6 +1013,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/exact\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"exasol\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/exasol\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"excelero1608461290726\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/excelero1608461290726\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"exivity\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/exivity\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"exonar\",\r\n @@ -1131,6 +1149,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/hanu\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"haproxy-technologies\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/haproxy-technologies\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"harmanconnectedservicesinc1594928575643\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/harmanconnectedservicesinc1594928575643\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"harpaitalia\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/harpaitalia\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"hashhub\",\r\n @@ -1181,6 +1201,10 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/ibm\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"ibm-alliance-global-1560886\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/ibm-alliance-global-1560886\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"ibm-alliance-usa-ny-armonk-hq-ibmstorage-6201192\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/ibm-alliance-usa-ny-armonk-hq-ibmstorage-6201192\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"ibm-usa-ny-armonk-hq-6275750-ibmcloud-aiops\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/ibm-usa-ny-armonk-hq-6275750-ibmcloud-aiops\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"iboss\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/iboss\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"iconics\",\r\n @@ -1193,6 +1217,10 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/iguazio-5069960\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"ikan\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/ikan\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"iliimbiliimveyazlmsistemlerisanvetica1617000555584\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/iliimbiliimveyazlmsistemlerisanvetica1617000555584\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"illuminainc1586452220102\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/illuminainc1586452220102\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"image-technologies\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/image-technologies\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"imaginecommunications\",\r\n @@ -1259,6 +1287,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/ipswitch\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"iqsol\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/iqsol\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"iquate\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/iquate\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"iquest\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/iquest\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"irion\",\r\n @@ -1275,6 +1305,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/it4bizdoo\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"itelios\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/itelios\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"itrsgroupltd1620310702149\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/itrsgroupltd1620310702149\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"ivix1595238749040\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/ivix1595238749040\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"iwnamespace\",\r\n @@ -1489,6 +1521,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.ActiveDirectory.LinuxSSH\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.Azure.Applications\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Applications\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.Azure.Automation.HybridWorker.Test\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Automation.HybridWorker.Test\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.Azure.AzureDefenderForServers\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.AzureDefenderForServers\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.Azure.AzureDefenderForSQL\",\r\n @@ -1929,6 +1963,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor.VirtualMachines.Dev.TEST\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.Azure.Monitor.VirtualMachines.GuestHealth\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor.VirtualMachines.GuestHealth\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.DEV\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.DEV\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.INT\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.INT\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.Azure.Monitor.VirtualMachines.GuestHealth.SCALE\",\r\n @@ -2065,6 +2101,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.AzureCAT.AzureEnhancedMonitoringTest\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.AzureData\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.AzureData\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.AzureData.Test\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.AzureData.Test\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.AzureMonitor.WorkloadInsights\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Microsoft.AzureMonitor.WorkloadInsights\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"Microsoft.AzureMonitor.WorkloadInsights.Canary\",\r\n @@ -2279,10 +2317,14 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/mxhero\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"my-com\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/my-com\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"myarchinc1614657280935\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/myarchinc1614657280935\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"narrativescience\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/narrativescience\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"nasuni\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/nasuni\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"nasunicorporation\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/nasunicorporation\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"ncache\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/ncache\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"ncbi\",\r\n @@ -2329,6 +2371,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/netx\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"neusoft-neteye\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/neusoft-neteye\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"newnetcommunicationtechnologies1589991852134\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/newnetcommunicationtechnologies1589991852134\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"NewRelic.Infrastructure.Extensions\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/NewRelic.Infrastructure.Extensions\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"newtglobalconsultingllc1581492268566\",\r\n @@ -2341,6 +2385,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/nice-it-management-solutions\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"nicepeopleatwork\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/nicepeopleatwork\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"nilespartnersinc1617691698386\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/nilespartnersinc1617691698386\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"niolabs-5229713\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/niolabs-5229713\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"nodejsapi\",\r\n @@ -2449,6 +2495,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/osnexus\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"outsystems\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/outsystems\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"ovaledge1618392232783\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/ovaledge1618392232783\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"pacteratechnologiesinc\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/pacteratechnologiesinc\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"paladionnetworkspvtltd1606120508449\",\r\n @@ -2481,12 +2529,16 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/penta-security-systems-inc\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"percona\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/percona\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"perforce\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/perforce\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"periscope-tech-4791746\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/periscope-tech-4791746\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"piolinkinc1582849368309\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/piolinkinc1582849368309\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"pivotal\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/pivotal\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"pixitmedia1591611150480\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/pixitmedia1591611150480\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"plesk\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/plesk\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"pmsoftwareinternational1603102514882\",\r\n @@ -2659,6 +2711,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/rtts\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"rubrik-inc\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/rubrik-inc\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"runecastsolutionslimited1614186396822\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/runecastsolutionslimited1614186396822\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"s2ix\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/s2ix\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"saama\",\r\n @@ -2729,6 +2783,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/sepiosystems\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"seppmailag\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/seppmailag\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"seraumo1620002807288\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/seraumo1620002807288\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"service-control-inc\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/service-control-inc\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"shadow-soft\",\r\n @@ -2861,6 +2917,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/stormshield\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"storreduce\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/storreduce\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"storwarespzoo1611743234900\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/storwarespzoo1611743234900\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"strangebee1595948424730\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/strangebee1595948424730\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"strataidentity1608323708170\",\r\n @@ -3011,6 +3069,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/testable1603721901088\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"testpro\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/testpro\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"test_test_mix3pptest0011614206850774\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/test_test_mix3pptest0011614206850774\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"test_test_pmc2pc1\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/test_test_pmc2pc1\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"thales-vormetric\",\r\n @@ -3081,6 +3141,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/trifacta\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"tripwire-inc\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/tripwire-inc\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"truata1612259728221\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/truata1612259728221\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"truestack\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/truestack\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"tryonsolutionsinc1596650621083\",\r\n @@ -3175,6 +3237,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/visualsoft-center\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"vizixiotplatformretail001\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/vizixiotplatformretail001\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"vmlabinc1613642184700\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/vmlabinc1613642184700\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"vmturbo\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/vmturbo\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"vmware-inc\",\r\n @@ -3235,6 +3299,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/witfooinc1590167223060\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"wmspanel\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/wmspanel\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"wood1595864497589\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/wood1595864497589\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"workshare-technology\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/workshare-technology\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"world-programming\",\r\n @@ -3273,6 +3339,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/zabbix\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"zend\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/zend\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"zenterasystemsinc1605292453288\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/zenterasystemsinc1605292453288\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"zerodown_software\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/zerodown_software\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"zerto\",\r\n @@ -3287,6 +3355,8 @@ interactions: \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/zoomdata\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"zscaler\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/zscaler\"\r\n + \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"zscaler1579058425289\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/zscaler1579058425289\"\r\n \ },\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"zultysinc1596831546163\",\r\n \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/zultysinc1596831546163\"\r\n \ }\r\n]" @@ -3294,11 +3364,11 @@ interactions: cache-control: - no-cache content-length: - - '345977' + - '354026' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:15:15 GMT + - Tue, 25 May 2021 10:58:07 GMT expires: - '-1' pragma: @@ -3327,10 +3397,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus?api-version=2021-03-01 response: body: string: "[\r\n {\r\n \"properties\": {\r\n \"automaticOSUpgradeProperties\": @@ -3594,7 +3664,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:15:16 GMT + - Tue, 25 May 2021 10:58:07 GMT expires: - '-1' pragma: diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute.yaml deleted file mode 100644 index 61108b2c49c0..000000000000 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute.yaml +++ /dev/null @@ -1,1983 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus", "properties": {"addressSpace": {"addressPrefixes": - ["10.0.0.0/16"]}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '92' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3?api-version=2020-11-01 - response: - body: - string: "{\r\n \"name\": \"networknamex80f0ea3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3\",\r\n - \ \"etag\": \"W/\\\"5f8d5679-2dd0-4468-a791-b1884b1a6932\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"349c1ccc-e43c-4f34-a244-297802d07c26\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a81ac3d3-b5c5-4d78-ba4e-934757714b3a?api-version=2020-11-01 - cache-control: - - no-cache - content-length: - - '696' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:15:17 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 4d29f91d-3cf2-49d7-99bc-4c45a3c1fc87 - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a81ac3d3-b5c5-4d78-ba4e-934757714b3a?api-version=2020-11-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:15:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - b7836e31-805c-4db6-a905-35c88b281c41 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3?api-version=2020-11-01 - response: - body: - string: "{\r\n \"name\": \"networknamex80f0ea3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3\",\r\n - \ \"etag\": \"W/\\\"2693d9ed-41d7-435d-8dcb-56f1d446b045\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"349c1ccc-e43c-4f34-a244-297802d07c26\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '697' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:15:20 GMT - etag: - - W/"2693d9ed-41d7-435d-8dcb-56f1d446b045" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 9bacaff5-baba-4b9c-a1ac-9b8165c32d68 - status: - code: 200 - message: OK -- request: - body: '{"properties": {"addressPrefix": "10.0.0.0/24"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '48' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3/subnets/subnetnamex80f0ea3?api-version=2020-11-01 - response: - body: - string: "{\r\n \"name\": \"subnetnamex80f0ea3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3/subnets/subnetnamex80f0ea3\",\r\n - \ \"etag\": \"W/\\\"d316b7b8-f851-4351-b498-d2e22c4186bb\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9cd00512-090f-420e-9bc0-c056fc6227d7?api-version=2020-11-01 - cache-control: - - no-cache - content-length: - - '626' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:15:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 20d75265-7cd5-4d66-bd9c-728935b5a653 - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9cd00512-090f-420e-9bc0-c056fc6227d7?api-version=2020-11-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:15:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 502287ee-cd9c-4dc8-ab0c-54cdd95ec9e9 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3/subnets/subnetnamex80f0ea3?api-version=2020-11-01 - response: - body: - string: "{\r\n \"name\": \"subnetnamex80f0ea3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3/subnets/subnetnamex80f0ea3\",\r\n - \ \"etag\": \"W/\\\"540ab73f-9491-43c2-8f99-2360c67e393b\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '627' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:15:23 GMT - etag: - - W/"540ab73f-9491-43c2-8f99-2360c67e393b" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 05542995-bb1b-41e7-a72a-e965d294de04 - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus", "sku": {"name": "Standard_D1_v2", "tier": "Standard", - "capacity": 2}, "properties": {"upgradePolicy": {"mode": "Manual"}, "virtualMachineProfile": - {"osProfile": {"computerNamePrefix": "testPC", "adminUsername": "testuser", - "adminPassword": "Aa!1()-xyz"}, "storageProfile": {"imageReference": {"publisher": - "MicrosoftWindowsServer", "offer": "WindowsServer", "sku": "2016-Datacenter", - "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage", - "diskSizeGB": 512, "managedDisk": {"storageAccountType": "Standard_LRS"}}}, - "networkProfile": {"networkInterfaceConfigurations": [{"name": "testPC", "properties": - {"primary": true, "ipConfigurations": [{"name": "testPC", "properties": {"subnet": - {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3/subnets/subnetnamex80f0ea3"}}}]}}]}}, - "overprovision": true}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1020' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3?api-version=2020-12-01 - response: - body: - string: "{\r\n \"name\": \"virtualmachinescaleset80f0ea3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": - \"eastus\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": - \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": - true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n - \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": - \"testPC\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": - true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": - {\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"createOption\": - \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n - \ \"diskSizeGB\": 512\r\n },\r\n \"imageReference\": - {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": - \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": - \"latest\"\r\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3/subnets/subnetnamex80f0ea3\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]}\r\n - \ },\r\n \"provisioningState\": \"Creating\",\r\n \"overprovision\": - true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"3fd047af-abea-4d29-82ea-e30f20f810c5\"\r\n }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4588d937-deb2-4dd5-8009-01e27fcddaca?api-version=2020-12-01 - cache-control: - - no-cache - content-length: - - '2186' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:15:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;185,Microsoft.Compute/CreateVMScaleSet30Min;931,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3725,Microsoft.Compute/VmssQueuedVMOperations;0 - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-ms-request-charge: - - '4' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4588d937-deb2-4dd5-8009-01e27fcddaca?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:15:24.8072966+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"4588d937-deb2-4dd5-8009-01e27fcddaca\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:15:35 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29925 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/4588d937-deb2-4dd5-8009-01e27fcddaca?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:15:24.8072966+00:00\",\r\n \"endTime\": - \"2021-04-06T04:16:58.6827804+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"4588d937-deb2-4dd5-8009-01e27fcddaca\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '184' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:17:11 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29923 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3?api-version=2020-12-01 - response: - body: - string: "{\r\n \"name\": \"virtualmachinescaleset80f0ea3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": - \"eastus\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": - \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": - true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n - \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": - \"testPC\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": - true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": - {\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"createOption\": - \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n - \ \"diskSizeGB\": 512\r\n },\r\n \"imageReference\": - {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": - \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": - \"latest\"\r\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3/subnets/subnetnamex80f0ea3\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]}\r\n - \ },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": - true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"3fd047af-abea-4d29-82ea-e30f20f810c5\"\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2187' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:17:11 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;398,Microsoft.Compute/GetVMScaleSet30Min;2598 - status: - code: 200 - message: OK -- request: - body: '{"properties": {"publisher": "Microsoft.Azure.NetworkWatcher", "type": - "NetworkWatcherAgentWindows", "typeHandlerVersion": "1.4", "autoUpgradeMinorVersion": - true}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '163' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3/extensions/vmssextensionx80f0ea3?api-version=2020-12-01 - response: - body: - string: "{\r\n \"name\": \"vmssextensionx80f0ea3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3/extensions/vmssextensionx80f0ea3\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets/extensions\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"autoUpgradeMinorVersion\": - true,\r\n \"publisher\": \"Microsoft.Azure.NetworkWatcher\",\r\n \"type\": - \"NetworkWatcherAgentWindows\",\r\n \"typeHandlerVersion\": \"1.4\"\r\n - \ }\r\n}" - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/65e681af-da8c-4240-9e90-af60e1f87e3b?api-version=2020-12-01 - cache-control: - - no-cache - content-length: - - '611' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:17:11 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1199,Microsoft.Compute/VmssQueuedVMOperations;0 - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-ms-request-charge: - - '0' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/65e681af-da8c-4240-9e90-af60e1f87e3b?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:17:12.4953554+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"65e681af-da8c-4240-9e90-af60e1f87e3b\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:17:21 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29922 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/65e681af-da8c-4240-9e90-af60e1f87e3b?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:17:12.4953554+00:00\",\r\n \"endTime\": - \"2021-04-06T04:18:13.1674756+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"65e681af-da8c-4240-9e90-af60e1f87e3b\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '184' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:18:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29921 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3/extensions/vmssextensionx80f0ea3?api-version=2020-12-01 - response: - body: - string: "{\r\n \"name\": \"vmssextensionx80f0ea3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3/extensions/vmssextensionx80f0ea3\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets/extensions\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"autoUpgradeMinorVersion\": - true,\r\n \"publisher\": \"Microsoft.Azure.NetworkWatcher\",\r\n \"type\": - \"NetworkWatcherAgentWindows\",\r\n \"typeHandlerVersion\": \"1.4\"\r\n - \ }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '610' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:18:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31978 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3?api-version=2020-12-01 - response: - body: - string: "{\r\n \"name\": \"virtualmachinescaleset80f0ea3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": - \"eastus\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": - \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": - true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n - \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": - \"testPC\",\r\n \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": - {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": - true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": - {\r\n \"osDisk\": {\r\n \"osType\": \"Windows\",\r\n \"createOption\": - \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n - \ \"diskSizeGB\": 512\r\n },\r\n \"imageReference\": - {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": - \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": - \"latest\"\r\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex80f0ea3/subnets/subnetnamex80f0ea3\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]},\r\n - \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n - \ \"name\": \"vmssextensionx80f0ea3\",\r\n \"properties\": - {\r\n \"autoUpgradeMinorVersion\": true,\r\n \"publisher\": - \"Microsoft.Azure.NetworkWatcher\",\r\n \"type\": \"NetworkWatcherAgentWindows\",\r\n - \ \"typeHandlerVersion\": \"1.4\"\r\n }\r\n }\r\n - \ ]\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"3fd047af-abea-4d29-82ea-e30f20f810c5\"\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2584' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:18:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;396,Microsoft.Compute/GetVMScaleSet30Min;2596 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3/extensions/vmssextensionx80f0ea3?api-version=2020-12-01 - response: - body: - string: "{\r\n \"name\": \"vmssextensionx80f0ea3\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3/extensions/vmssextensionx80f0ea3\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets/extensions\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"autoUpgradeMinorVersion\": - true,\r\n \"publisher\": \"Microsoft.Azure.NetworkWatcher\",\r\n \"type\": - \"NetworkWatcherAgentWindows\",\r\n \"typeHandlerVersion\": \"1.4\"\r\n - \ }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '610' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:18:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31977 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3/instanceView?api-version=2020-12-01 - response: - body: - string: "{\r\n \"virtualMachine\": {\r\n \"statusesSummary\": [\r\n {\r\n - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"count\": 2\r\n - \ }\r\n ]\r\n },\r\n \"extensions\": [\r\n {\r\n \"name\": - \"vmssextensionx80f0ea3\",\r\n \"statusesSummary\": [\r\n {\r\n - \ \"code\": \"ProvisioningState/creating\",\r\n \"count\": - 2\r\n }\r\n ]\r\n }\r\n ],\r\n \"statuses\": [\r\n {\r\n - \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n - \ \"displayStatus\": \"Provisioning succeeded\",\r\n \"time\": \"2021-04-06T04:18:13.1518905+00:00\"\r\n - \ }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '568' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:18:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostGetVMScaleSet3Min;178,Microsoft.Compute/HighCostGetVMScaleSet30Min;898 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset80f0ea3/extensionRollingUpgrade?api-version=2020-12-01 - response: - body: - string: '' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 06 Apr 2021 04:18:13 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?monitor=true&api-version=2020-12-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1198,Microsoft.Compute/VmssQueuedVMOperations;0 - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-ms-request-charge: - - '0' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:18:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29919 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:19:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29916 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:19:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29913 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:20:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29910 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:20:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29907 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:21:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29904 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:21:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29901 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:22:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29898 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:22:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29895 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:23:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29892 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:23:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29889 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:24:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29886 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:24:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29883 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:25:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29892 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:25:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29889 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:26:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29886 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:26:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29883 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:27:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29880 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:27:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29877 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:28:15 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29874 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ee34cbf1-78c7-47d4-b54c-7ec23518a19f?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:18:14.0425151+00:00\",\r\n \"endTime\": - \"2021-04-06T04:28:15.34054+00:00\",\r\n \"status\": \"Failed\",\r\n \"error\": - {\r\n \"code\": \"MaxUnhealthyUpgradedInstancePercentExceededInRollingUpgrade\",\r\n - \ \"message\": \"Rolling Upgrade failed after exceeding the MaxUnhealthyUpgradedInstancePercent - value defined in the RollingUpgradePolicy. 100% of instances are in an unhealthy - state after being upgraded - more than the threshold of 20%. The most impactful - error is: Instance found to be unhealthy or unreachable.. First failed instance - ID is: 1.\"\r\n },\r\n \"name\": \"ee34cbf1-78c7-47d4-b54c-7ec23518a19f\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '623' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:28:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29872 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_base_2.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_base_2.yaml index a9a6d4e645da..e387b0d74639 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_base_2.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_base_2.yaml @@ -14,17 +14,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamexd7d31356\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356\",\r\n - \ \"etag\": \"W/\\\"d8da90e7-ebbd-4024-8ba0-8c18852d2df1\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"e3ae7c0b-5169-46c1-8bb5-5a1a960257b5\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"1a880b3c-4bdb-468a-a4ae-bc71fe148bb0\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"6bdfcf93-698b-4763-b5b0-75792d2a213b\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -32,7 +32,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/806873cf-6506-4225-9343-6385a238fab0?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ae760ee7-c85d-411b-8980-e9ebda282123?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -40,7 +40,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:28:46 GMT + - Tue, 25 May 2021 10:58:12 GMT expires: - '-1' pragma: @@ -53,9 +53,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3d744654-269f-4f79-8c03-f2853893e56b + - 41b86eb7-19ca-4014-a983-1bb63a81eaad x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -69,10 +69,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/806873cf-6506-4225-9343-6385a238fab0?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ae760ee7-c85d-411b-8980-e9ebda282123?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -84,7 +84,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:28:49 GMT + - Tue, 25 May 2021 10:58:15 GMT expires: - '-1' pragma: @@ -101,7 +101,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 11cdaa1c-104f-45f6-9dae-c5c9dcc03ad4 + - 1c29a1e3-ddbf-4726-b597-9072a2bb1f20 status: code: 200 message: OK @@ -115,17 +115,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamexd7d31356\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356\",\r\n - \ \"etag\": \"W/\\\"f13c040a-8bf8-4b2b-a510-0fb8d56f15bb\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"c0b550d1-4367-412c-9e49-79df9abf1f48\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"1a880b3c-4bdb-468a-a4ae-bc71fe148bb0\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"6bdfcf93-698b-4763-b5b0-75792d2a213b\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -137,9 +137,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:28:49 GMT + - Tue, 25 May 2021 10:58:15 GMT etag: - - W/"f13c040a-8bf8-4b2b-a510-0fb8d56f15bb" + - W/"c0b550d1-4367-412c-9e49-79df9abf1f48" expires: - '-1' pragma: @@ -156,7 +156,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 0e7ece66-97b1-4ef4-81cc-84c0f04a68dc + - 571ff818-e9bf-4d20-991d-837b0e749c5b status: code: 200 message: OK @@ -174,21 +174,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356/subnets/subnetnamexd7d31356?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356/subnets/subnetnamexd7d31356?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetnamexd7d31356\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356/subnets/subnetnamexd7d31356\",\r\n - \ \"etag\": \"W/\\\"f54210b1-d71b-454d-afbc-b0209e8565a1\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"5055f80c-c893-4aa4-8a66-addda3a2b820\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c51164de-b0ce-4eec-85cd-c8134e595bb2?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/261e0658-c9b9-4d1a-8c82-1b5906c51b2b?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -196,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:28:49 GMT + - Tue, 25 May 2021 10:58:15 GMT expires: - '-1' pragma: @@ -209,9 +209,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - dbc6f27e-2e67-4d08-8500-142d12544c3b + - 4659f420-b131-41b2-aa65-927df252cdf9 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -225,10 +225,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c51164de-b0ce-4eec-85cd-c8134e595bb2?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/261e0658-c9b9-4d1a-8c82-1b5906c51b2b?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -240,7 +240,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:28:52 GMT + - Tue, 25 May 2021 10:58:18 GMT expires: - '-1' pragma: @@ -257,7 +257,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 67219f21-e73e-4e8c-aa60-d8750ae05922 + - c0a4de16-a5ae-4fc5-80d2-25deed3b539b status: code: 200 message: OK @@ -271,14 +271,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356/subnets/subnetnamexd7d31356?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356/subnets/subnetnamexd7d31356?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetnamexd7d31356\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexd7d31356/subnets/subnetnamexd7d31356\",\r\n - \ \"etag\": \"W/\\\"fb443b32-a813-483d-9f66-c598541e725d\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"443c1203-d117-497c-b3a4-66fd29a93dee\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -291,9 +291,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:28:52 GMT + - Tue, 25 May 2021 10:58:19 GMT etag: - - W/"fb443b32-a813-483d-9f66-c598541e725d" + - W/"443c1203-d117-497c-b3a4-66fd29a93dee" expires: - '-1' pragma: @@ -310,7 +310,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b600e5ff-ef59-4e87-b68d-b110f4f91e87 + - 58724c69-2cf6-40b2-8317-df4386dae269 status: code: 200 message: OK @@ -329,16 +329,16 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/public_ip_address_name?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/public_ip_address_name?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"public_ip_address_name\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/public_ip_address_name\",\r\n - \ \"etag\": \"W/\\\"7b1b75aa-c357-4f70-92a8-3758f660c960\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"20f3c7c7-e597-4e70-a8cd-711b740ff5d1\\\"\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"resourceGuid\": \"6eb87035-d852-43ca-90b4-95cfe37a212e\",\r\n \"publicIPAddressVersion\": + \ \"resourceGuid\": \"b5b069e8-3f2d-459e-81f2-2c025e9a1091\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\": 10,\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \ \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Regional\"\r\n @@ -347,7 +347,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/414e2274-96c1-4405-a3cf-adc9c7d2bdb0?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3549837a-514a-498a-83ae-dbd667337dcc?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -355,7 +355,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:28:53 GMT + - Tue, 25 May 2021 10:58:20 GMT expires: - '-1' pragma: @@ -368,9 +368,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 6f8dd3c0-2ce5-4f8e-b80c-e04aeb3dbcd2 + - 12de76dc-b7b4-45a1-9be9-0a37326c8ce6 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1196' status: code: 201 message: Created @@ -384,10 +384,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/414e2274-96c1-4405-a3cf-adc9c7d2bdb0?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3549837a-514a-498a-83ae-dbd667337dcc?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -399,7 +399,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:28:54 GMT + - Tue, 25 May 2021 10:58:21 GMT expires: - '-1' pragma: @@ -416,7 +416,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 402aa150-a6f4-4c8f-b987-8cca2da4ceac + - 2370637e-659c-4e74-bc9e-be61d9ae140b status: code: 200 message: OK @@ -430,17 +430,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/public_ip_address_name?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/public_ip_address_name?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"public_ip_address_name\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/public_ip_address_name\",\r\n - \ \"etag\": \"W/\\\"408654ca-7ba9-45e9-b517-5d93ca1c2759\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"3070f081-8fd0-4c6f-b152-103d48b2fca4\\\"\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"6eb87035-d852-43ca-90b4-95cfe37a212e\",\r\n \"ipAddress\": - \"52.188.210.136\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": + \ \"resourceGuid\": \"b5b069e8-3f2d-459e-81f2-2c025e9a1091\",\r\n \"ipAddress\": + \"40.88.125.78\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\": 10,\r\n \"ipTags\": []\r\n \ },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"tier\": \"Regional\"\r\n }\r\n}" @@ -448,13 +448,13 @@ interactions: cache-control: - no-cache content-length: - - '762' + - '760' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:28:54 GMT + - Tue, 25 May 2021 10:58:21 GMT etag: - - W/"408654ca-7ba9-45e9-b517-5d93ca1c2759" + - W/"3070f081-8fd0-4c6f-b152-103d48b2fca4" expires: - '-1' pragma: @@ -471,7 +471,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 90dc58e9-c51f-4b1c-bce9-bac3d377626c + - f2334554-cde2-479b-9096-22296af43ee3 status: code: 200 message: OK @@ -504,19 +504,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"myLoadBalancer\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"ac035346-be23-4500-a2ac-b02d18e9b333\",\r\n + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"80321e00-46b0-437e-95b1-c495ca762dac\",\r\n \ \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"myFrontendIpconfiguration\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/frontendIPConfigurations/myFrontendIpconfiguration\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": @@ -528,7 +528,7 @@ interactions: \ }\r\n ],\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n \ }\r\n }\r\n ],\r\n \"backendAddressPools\": [\r\n {\r\n \ \"name\": \"myBackendAddressPool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/backendAddressPools/myBackendAddressPool\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"loadBalancerBackendAddresses\": [],\r\n \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/outboundRules/myOutboundRule\"\r\n @@ -537,7 +537,7 @@ interactions: \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n \ }\r\n ],\r\n \"loadBalancingRules\": [\r\n {\r\n \"name\": \"myLoadBalancingRule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/loadBalancingRules/myLoadBalancingRule\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \ \"type\": \"Microsoft.Network/loadBalancers/loadBalancingRules\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/frontendIPConfigurations/myFrontendIpconfiguration\"\r\n @@ -553,7 +553,7 @@ interactions: \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/probes/myProbe\"\r\n \ }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n {\r\n \ \"name\": \"myProbe\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/probes/myProbe\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \"requestPath\": \"healthcheck.aspx\",\r\n \"intervalInSeconds\": 15,\r\n \"numberOfProbes\": @@ -562,7 +562,7 @@ interactions: \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/probes\"\r\n \ }\r\n ],\r\n \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": \"myOutboundRule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/outboundRules/myOutboundRule\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": 1024,\r\n \"protocol\": \"All\",\r\n \"enableTcpReset\": @@ -577,7 +577,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/fbc224f3-cbd6-4f2f-9a9f-962516fd09b3?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d5f389c6-06c7-458c-bf49-1f263e047902?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -585,7 +585,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:28:54 GMT + - Tue, 25 May 2021 10:58:22 GMT expires: - '-1' pragma: @@ -598,9 +598,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f2d3c84c-5c64-403a-9c7b-7ff800de50b0 + - 89b975ab-4261-4574-b916-a87313f639cf x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1195' status: code: 201 message: Created @@ -614,10 +614,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/fbc224f3-cbd6-4f2f-9a9f-962516fd09b3?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d5f389c6-06c7-458c-bf49-1f263e047902?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -629,7 +629,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:29:24 GMT + - Tue, 25 May 2021 10:58:52 GMT expires: - '-1' pragma: @@ -646,7 +646,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b23b6f73-9ac9-4a3f-af1f-204dac274202 + - c8d4db20-cf17-4c95-8142-76976d762c57 status: code: 200 message: OK @@ -660,19 +660,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"myLoadBalancer\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"eastus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"ac035346-be23-4500-a2ac-b02d18e9b333\",\r\n + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"80321e00-46b0-437e-95b1-c495ca762dac\",\r\n \ \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"myFrontendIpconfiguration\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/frontendIPConfigurations/myFrontendIpconfiguration\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \ \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": @@ -684,7 +684,7 @@ interactions: \ }\r\n ],\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n \ }\r\n }\r\n ],\r\n \"backendAddressPools\": [\r\n {\r\n \ \"name\": \"myBackendAddressPool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/backendAddressPools/myBackendAddressPool\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"loadBalancerBackendAddresses\": [],\r\n \"outboundRules\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/outboundRules/myOutboundRule\"\r\n @@ -693,7 +693,7 @@ interactions: \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\r\n \ }\r\n ],\r\n \"loadBalancingRules\": [\r\n {\r\n \"name\": \"myLoadBalancingRule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/loadBalancingRules/myLoadBalancingRule\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \ \"type\": \"Microsoft.Network/loadBalancers/loadBalancingRules\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/frontendIPConfigurations/myFrontendIpconfiguration\"\r\n @@ -709,7 +709,7 @@ interactions: \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/probes/myProbe\"\r\n \ }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n {\r\n \ \"name\": \"myProbe\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/probes/myProbe\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \"requestPath\": \"healthcheck.aspx\",\r\n \"intervalInSeconds\": 15,\r\n \"numberOfProbes\": @@ -718,7 +718,7 @@ interactions: \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/probes\"\r\n \ }\r\n ],\r\n \"inboundNatRules\": [],\r\n \"outboundRules\": [\r\n {\r\n \"name\": \"myOutboundRule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/outboundRules/myOutboundRule\",\r\n - \ \"etag\": \"W/\\\"7633e716-ac5d-401b-aa0a-56f940348da6\\\"\",\r\n + \ \"etag\": \"W/\\\"a71818e7-c2bb-4531-ad32-fcd4f2d33621\\\"\",\r\n \ \"type\": \"Microsoft.Network/loadBalancers/outboundRules\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"allocatedOutboundPorts\": 1024,\r\n \"protocol\": \"All\",\r\n \"enableTcpReset\": @@ -737,9 +737,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:29:24 GMT + - Tue, 25 May 2021 10:58:52 GMT etag: - - W/"7633e716-ac5d-401b-aa0a-56f940348da6" + - W/"a71818e7-c2bb-4531-ad32-fcd4f2d33621" expires: - '-1' pragma: @@ -756,7 +756,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 0ba17c05-2892-4836-b17e-86ec42d0c8d5 + - a23ac97d-0e62-41f5-8c6f-4b6618fd447f status: code: 200 message: OK @@ -787,10 +787,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinescalesetd7d31356\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356\",\r\n @@ -813,22 +813,22 @@ interactions: \ \"extensionProfile\": {\r\n \"extensions\": []\r\n }\r\n \ },\r\n \"provisioningState\": \"Creating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"dfaa7d17-74fa-4961-bb0c-66a1176261bd\",\r\n \"automaticRepairsPolicy\": - {\r\n \"enabled\": true,\r\n \"gracePeriod\": \"PT30M\",\r\n \"repairAction\": - \"Replace\"\r\n }\r\n }\r\n}" + \"10f09348-5465-4208-a897-de19e56c3def\",\r\n \"automaticRepairsPolicy\": + {\r\n \"enabled\": true,\r\n \"gracePeriod\": \"PT30M\"\r\n }\r\n + \ }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3151deec-5762-4913-a795-c5fd627b3458?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cb8ca45f-34a6-4c54-bfee-8c82d4a6802c?api-version=2021-03-01 cache-control: - no-cache content-length: - - '2918' + - '2884' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:29:25 GMT + - Tue, 25 May 2021 10:58:56 GMT expires: - '-1' pragma: @@ -841,9 +841,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;185,Microsoft.Compute/CreateVMScaleSet30Min;930,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3725,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/CreateVMScaleSet3Min;197,Microsoft.Compute/CreateVMScaleSet30Min;989,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3959,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1192' x-ms-request-charge: - '4' status: @@ -859,14 +859,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3151deec-5762-4913-a795-c5fd627b3458?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cb8ca45f-34a6-4c54-bfee-8c82d4a6802c?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:29:25.4182695+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"3151deec-5762-4913-a795-c5fd627b3458\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:58:56.1825651+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"cb8ca45f-34a6-4c54-bfee-8c82d4a6802c\"\r\n}" headers: cache-control: - no-cache @@ -875,7 +875,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:29:35 GMT + - Tue, 25 May 2021 10:59:06 GMT expires: - '-1' pragma: @@ -892,7 +892,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29871 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29937 status: code: 200 message: OK @@ -906,15 +906,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3151deec-5762-4913-a795-c5fd627b3458?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cb8ca45f-34a6-4c54-bfee-8c82d4a6802c?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:29:25.4182695+00:00\",\r\n \"endTime\": - \"2021-04-06T04:30:57.2474756+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"3151deec-5762-4913-a795-c5fd627b3458\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T10:58:56.1825651+00:00\",\r\n \"endTime\": + \"2021-05-25T11:00:39.7763828+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"cb8ca45f-34a6-4c54-bfee-8c82d4a6802c\"\r\n}" headers: cache-control: - no-cache @@ -923,7 +923,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:31:12 GMT + - Tue, 25 May 2021 11:00:43 GMT expires: - '-1' pragma: @@ -940,7 +940,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29894 + - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29935 status: code: 200 message: OK @@ -954,10 +954,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinescalesetd7d31356\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356\",\r\n @@ -980,18 +980,18 @@ interactions: \ \"extensionProfile\": {\r\n \"extensions\": []\r\n }\r\n \ },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"dfaa7d17-74fa-4961-bb0c-66a1176261bd\",\r\n \"automaticRepairsPolicy\": - {\r\n \"enabled\": true,\r\n \"gracePeriod\": \"PT30M\",\r\n \"repairAction\": - \"Replace\"\r\n }\r\n }\r\n}" + \"10f09348-5465-4208-a897-de19e56c3def\",\r\n \"automaticRepairsPolicy\": + {\r\n \"enabled\": true,\r\n \"gracePeriod\": \"PT30M\"\r\n }\r\n + \ }\r\n}" headers: cache-control: - no-cache content-length: - - '2919' + - '2885' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:31:12 GMT + - Tue, 25 May 2021 11:00:43 GMT expires: - '-1' pragma: @@ -1008,7 +1008,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;398,Microsoft.Compute/GetVMScaleSet30Min;2591 + - Microsoft.Compute/GetVMScaleSet3Min;398,Microsoft.Compute/GetVMScaleSet30Min;2594 status: code: 200 message: OK @@ -1026,26 +1026,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356/setOrchestrationServiceState?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356/setOrchestrationServiceState?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/80990091-f49d-4552-b16d-4b38bb6f05a7?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c193d3a1-cfb7-4454-b996-86de9467373f?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:31:12 GMT + - Tue, 25 May 2021 11:00:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/80990091-f49d-4552-b16d-4b38bb6f05a7?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c193d3a1-cfb7-4454-b996-86de9467373f?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1056,9 +1056,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1197,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1199,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1189' x-ms-request-charge: - '0' status: @@ -1078,26 +1078,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356/reimage?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356/reimage?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/25a8defa-a807-4c11-acba-578ca2f428be?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/36aff229-c199-47e8-b18e-cc79009ca945?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:31:12 GMT + - Tue, 25 May 2021 11:00:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/25a8defa-a807-4c11-acba-578ca2f428be?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/36aff229-c199-47e8-b18e-cc79009ca945?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1108,9 +1108,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1196,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3723,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1198,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3957,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1188' x-ms-request-charge: - '2' status: @@ -1126,14 +1126,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/80990091-f49d-4552-b16d-4b38bb6f05a7?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c193d3a1-cfb7-4454-b996-86de9467373f?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:31:12.9819618+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"80990091-f49d-4552-b16d-4b38bb6f05a7\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:00:44.5107842+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"c193d3a1-cfb7-4454-b996-86de9467373f\"\r\n}" headers: cache-control: - no-cache @@ -1142,7 +1142,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:31:42 GMT + - Tue, 25 May 2021 11:01:14 GMT expires: - '-1' pragma: @@ -1159,7 +1159,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29891 + - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29932 status: code: 200 message: OK @@ -1173,14 +1173,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/25a8defa-a807-4c11-acba-578ca2f428be?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/36aff229-c199-47e8-b18e-cc79009ca945?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:31:13.1693513+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"25a8defa-a807-4c11-acba-578ca2f428be\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:00:44.7451916+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"36aff229-c199-47e8-b18e-cc79009ca945\"\r\n}" headers: cache-control: - no-cache @@ -1189,7 +1189,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:31:42 GMT + - Tue, 25 May 2021 11:01:14 GMT expires: - '-1' pragma: @@ -1206,7 +1206,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29890 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29931 status: code: 200 message: OK @@ -1220,14 +1220,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/80990091-f49d-4552-b16d-4b38bb6f05a7?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c193d3a1-cfb7-4454-b996-86de9467373f?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:31:12.9819618+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"80990091-f49d-4552-b16d-4b38bb6f05a7\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:00:44.5107842+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"c193d3a1-cfb7-4454-b996-86de9467373f\"\r\n}" headers: cache-control: - no-cache @@ -1236,7 +1236,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:32:12 GMT + - Tue, 25 May 2021 11:01:44 GMT expires: - '-1' pragma: @@ -1253,7 +1253,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29885 + - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29926 status: code: 200 message: OK @@ -1267,14 +1267,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/25a8defa-a807-4c11-acba-578ca2f428be?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/36aff229-c199-47e8-b18e-cc79009ca945?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:31:13.1693513+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"25a8defa-a807-4c11-acba-578ca2f428be\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:00:44.7451916+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"36aff229-c199-47e8-b18e-cc79009ca945\"\r\n}" headers: cache-control: - no-cache @@ -1283,7 +1283,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:32:13 GMT + - Tue, 25 May 2021 11:01:44 GMT expires: - '-1' pragma: @@ -1300,7 +1300,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29884 + - Microsoft.Compute/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29925 status: code: 200 message: OK @@ -1314,14 +1314,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/80990091-f49d-4552-b16d-4b38bb6f05a7?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c193d3a1-cfb7-4454-b996-86de9467373f?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:31:12.9819618+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"80990091-f49d-4552-b16d-4b38bb6f05a7\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:00:44.5107842+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"c193d3a1-cfb7-4454-b996-86de9467373f\"\r\n}" headers: cache-control: - no-cache @@ -1330,7 +1330,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:32:42 GMT + - Tue, 25 May 2021 11:02:14 GMT expires: - '-1' pragma: @@ -1347,7 +1347,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29879 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29919 status: code: 200 message: OK @@ -1361,14 +1361,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/25a8defa-a807-4c11-acba-578ca2f428be?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/36aff229-c199-47e8-b18e-cc79009ca945?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:31:13.1693513+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"25a8defa-a807-4c11-acba-578ca2f428be\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:00:44.7451916+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"36aff229-c199-47e8-b18e-cc79009ca945\"\r\n}" headers: cache-control: - no-cache @@ -1377,7 +1377,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:32:42 GMT + - Tue, 25 May 2021 11:02:14 GMT expires: - '-1' pragma: @@ -1394,7 +1394,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29878 + - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29918 status: code: 200 message: OK @@ -1408,15 +1408,109 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/80990091-f49d-4552-b16d-4b38bb6f05a7?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c193d3a1-cfb7-4454-b996-86de9467373f?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:31:12.9819618+00:00\",\r\n \"endTime\": - \"2021-04-06T04:32:54.7323989+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"80990091-f49d-4552-b16d-4b38bb6f05a7\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:00:44.5107842+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"c193d3a1-cfb7-4454-b996-86de9467373f\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 11:02:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14976,Microsoft.Compute/GetOperation30Min;29913 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/36aff229-c199-47e8-b18e-cc79009ca945?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-05-25T11:00:44.7451916+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"36aff229-c199-47e8-b18e-cc79009ca945\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 May 2021 11:02:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14975,Microsoft.Compute/GetOperation30Min;29912 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c193d3a1-cfb7-4454-b996-86de9467373f?api-version=2021-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2021-05-25T11:00:44.5107842+00:00\",\r\n \"endTime\": + \"2021-05-25T11:02:52.9796662+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"c193d3a1-cfb7-4454-b996-86de9467373f\"\r\n}" headers: cache-control: - no-cache @@ -1425,7 +1519,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:33:12 GMT + - Tue, 25 May 2021 11:03:15 GMT expires: - '-1' pragma: @@ -1442,7 +1536,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14977,Microsoft.Compute/GetOperation30Min;29873 + - Microsoft.Compute/GetOperation3Min;14970,Microsoft.Compute/GetOperation30Min;29907 status: code: 200 message: OK @@ -1456,10 +1550,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/80990091-f49d-4552-b16d-4b38bb6f05a7?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c193d3a1-cfb7-4454-b996-86de9467373f?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -1469,7 +1563,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 04:33:12 GMT + - Tue, 25 May 2021 11:03:15 GMT expires: - '-1' pragma: @@ -1482,7 +1576,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14976,Microsoft.Compute/GetOperation30Min;29872 + - Microsoft.Compute/GetOperation3Min;14969,Microsoft.Compute/GetOperation30Min;29906 status: code: 200 message: OK @@ -1496,15 +1590,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/25a8defa-a807-4c11-acba-578ca2f428be?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/36aff229-c199-47e8-b18e-cc79009ca945?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:31:13.1693513+00:00\",\r\n \"endTime\": - \"2021-04-06T04:32:54.7323989+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"25a8defa-a807-4c11-acba-578ca2f428be\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:00:44.7451916+00:00\",\r\n \"endTime\": + \"2021-05-25T11:02:52.9796662+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"36aff229-c199-47e8-b18e-cc79009ca945\"\r\n}" headers: cache-control: - no-cache @@ -1513,7 +1607,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:33:12 GMT + - Tue, 25 May 2021 11:03:15 GMT expires: - '-1' pragma: @@ -1530,7 +1624,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14975,Microsoft.Compute/GetOperation30Min;29871 + - Microsoft.Compute/GetOperation3Min;14968,Microsoft.Compute/GetOperation30Min;29905 status: code: 200 message: OK @@ -1544,10 +1638,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/25a8defa-a807-4c11-acba-578ca2f428be?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/36aff229-c199-47e8-b18e-cc79009ca945?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -1557,7 +1651,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 04:33:12 GMT + - Tue, 25 May 2021 11:03:15 GMT expires: - '-1' pragma: @@ -1570,7 +1664,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14974,Microsoft.Compute/GetOperation30Min;29870 + - Microsoft.Compute/GetOperation3Min;14967,Microsoft.Compute/GetOperation30Min;29904 status: code: 200 message: OK @@ -1588,26 +1682,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356/reimageall?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356/reimageall?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8ec1d0cd-a2be-4081-80d1-fb47379ba210?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a40d9b00-48ac-443a-a902-19d08fc692e4?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:33:12 GMT + - Tue, 25 May 2021 11:03:15 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8ec1d0cd-a2be-4081-80d1-fb47379ba210?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a40d9b00-48ac-443a-a902-19d08fc692e4?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1618,9 +1712,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;236,Microsoft.Compute/VMScaleSetActions30Min;1194,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3721,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;236,Microsoft.Compute/VMScaleSetActions30Min;1196,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3959,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1187' x-ms-request-charge: - '2' status: @@ -1636,14 +1730,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8ec1d0cd-a2be-4081-80d1-fb47379ba210?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a40d9b00-48ac-443a-a902-19d08fc692e4?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:33:13.6231469+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"8ec1d0cd-a2be-4081-80d1-fb47379ba210\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:03:15.7609066+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"a40d9b00-48ac-443a-a902-19d08fc692e4\"\r\n}" headers: cache-control: - no-cache @@ -1652,7 +1746,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:33:43 GMT + - Tue, 25 May 2021 11:03:45 GMT expires: - '-1' pragma: @@ -1669,7 +1763,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14973,Microsoft.Compute/GetOperation30Min;29868 + - Microsoft.Compute/GetOperation3Min;14965,Microsoft.Compute/GetOperation30Min;29900 status: code: 200 message: OK @@ -1683,14 +1777,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8ec1d0cd-a2be-4081-80d1-fb47379ba210?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a40d9b00-48ac-443a-a902-19d08fc692e4?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:33:13.6231469+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"8ec1d0cd-a2be-4081-80d1-fb47379ba210\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:03:15.7609066+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"a40d9b00-48ac-443a-a902-19d08fc692e4\"\r\n}" headers: cache-control: - no-cache @@ -1699,7 +1793,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:34:13 GMT + - Tue, 25 May 2021 11:04:15 GMT expires: - '-1' pragma: @@ -1716,7 +1810,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14973,Microsoft.Compute/GetOperation30Min;29865 + - Microsoft.Compute/GetOperation3Min;14967,Microsoft.Compute/GetOperation30Min;29896 status: code: 200 message: OK @@ -1730,14 +1824,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8ec1d0cd-a2be-4081-80d1-fb47379ba210?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a40d9b00-48ac-443a-a902-19d08fc692e4?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:33:13.6231469+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"8ec1d0cd-a2be-4081-80d1-fb47379ba210\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:03:15.7609066+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"a40d9b00-48ac-443a-a902-19d08fc692e4\"\r\n}" headers: cache-control: - no-cache @@ -1746,7 +1840,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:34:43 GMT + - Tue, 25 May 2021 11:04:46 GMT expires: - '-1' pragma: @@ -1763,7 +1857,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14976,Microsoft.Compute/GetOperation30Min;29862 + - Microsoft.Compute/GetOperation3Min;14971,Microsoft.Compute/GetOperation30Min;29893 status: code: 200 message: OK @@ -1777,15 +1871,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8ec1d0cd-a2be-4081-80d1-fb47379ba210?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a40d9b00-48ac-443a-a902-19d08fc692e4?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:33:13.6231469+00:00\",\r\n \"endTime\": - \"2021-04-06T04:34:55.1392076+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"8ec1d0cd-a2be-4081-80d1-fb47379ba210\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:03:15.7609066+00:00\",\r\n \"endTime\": + \"2021-05-25T11:05:01.9641776+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"a40d9b00-48ac-443a-a902-19d08fc692e4\"\r\n}" headers: cache-control: - no-cache @@ -1794,7 +1888,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:35:13 GMT + - Tue, 25 May 2021 11:05:16 GMT expires: - '-1' pragma: @@ -1811,7 +1905,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29882 + - Microsoft.Compute/GetOperation3Min;14974,Microsoft.Compute/GetOperation30Min;29890 status: code: 200 message: OK @@ -1825,10 +1919,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8ec1d0cd-a2be-4081-80d1-fb47379ba210?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a40d9b00-48ac-443a-a902-19d08fc692e4?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -1838,7 +1932,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 04:35:13 GMT + - Tue, 25 May 2021 11:05:16 GMT expires: - '-1' pragma: @@ -1851,7 +1945,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14978,Microsoft.Compute/GetOperation30Min;29881 + - Microsoft.Compute/GetOperation3Min;14973,Microsoft.Compute/GetOperation30Min;29889 status: code: 200 message: OK @@ -1867,10 +1961,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetd7d31356?api-version=2021-03-01 response: body: string: '' @@ -1878,17 +1972,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cdd7986e-93b9-4a50-9a26-d11011f3a180?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fc393c6c-44d3-4195-8333-71bf04e389d5?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:35:13 GMT + - Tue, 25 May 2021 11:05:16 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cdd7986e-93b9-4a50-9a26-d11011f3a180?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fc393c6c-44d3-4195-8333-71bf04e389d5?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1899,9 +1993,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/DeleteVMScaleSet3Min;79,Microsoft.Compute/DeleteVMScaleSet30Min;399,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3723,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/DeleteVMScaleSet3Min;79,Microsoft.Compute/DeleteVMScaleSet30Min;399,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3725,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-deletes: - - '14996' + - '14992' x-ms-request-charge: - '2' status: @@ -1917,14 +2011,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cdd7986e-93b9-4a50-9a26-d11011f3a180?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fc393c6c-44d3-4195-8333-71bf04e389d5?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:35:14.1548899+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"cdd7986e-93b9-4a50-9a26-d11011f3a180\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:05:16.9173876+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"fc393c6c-44d3-4195-8333-71bf04e389d5\"\r\n}" headers: cache-control: - no-cache @@ -1933,7 +2027,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:35:23 GMT + - Tue, 25 May 2021 11:05:26 GMT expires: - '-1' pragma: @@ -1950,7 +2044,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14977,Microsoft.Compute/GetOperation30Min;29880 + - Microsoft.Compute/GetOperation3Min;14972,Microsoft.Compute/GetOperation30Min;29888 status: code: 200 message: OK @@ -1964,14 +2058,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cdd7986e-93b9-4a50-9a26-d11011f3a180?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fc393c6c-44d3-4195-8333-71bf04e389d5?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:35:14.1548899+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"cdd7986e-93b9-4a50-9a26-d11011f3a180\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:05:16.9173876+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"fc393c6c-44d3-4195-8333-71bf04e389d5\"\r\n}" headers: cache-control: - no-cache @@ -1980,7 +2074,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:35:34 GMT + - Tue, 25 May 2021 11:05:37 GMT expires: - '-1' pragma: @@ -1997,7 +2091,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29879 + - Microsoft.Compute/GetOperation3Min;14976,Microsoft.Compute/GetOperation30Min;29886 status: code: 200 message: OK @@ -2011,15 +2105,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/cdd7986e-93b9-4a50-9a26-d11011f3a180?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fc393c6c-44d3-4195-8333-71bf04e389d5?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:35:14.1548899+00:00\",\r\n \"endTime\": - \"2021-04-06T04:35:54.1707601+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"cdd7986e-93b9-4a50-9a26-d11011f3a180\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:05:16.9173876+00:00\",\r\n \"endTime\": + \"2021-05-25T11:06:05.5580744+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"fc393c6c-44d3-4195-8333-71bf04e389d5\"\r\n}" headers: cache-control: - no-cache @@ -2028,7 +2122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:36:04 GMT + - Tue, 25 May 2021 11:06:07 GMT expires: - '-1' pragma: @@ -2045,7 +2139,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29877 + - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29884 status: code: 200 message: OK diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_perform_maintenance.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_perform_maintenance.yaml index f943e02acae4..dd94905a243a 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_perform_maintenance.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_perform_maintenance.yaml @@ -14,17 +14,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamexfe411907\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907\",\r\n - \ \"etag\": \"W/\\\"c469d1f0-d047-4261-b5e5-df2156a0b3cf\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"0ebde4b2-45ba-4cf4-85f0-07e0a14b667d\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"10c1ff98-18d9-449a-b661-578800804147\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"9f8452a4-72b0-4251-aaff-1973b4f2f99e\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -32,7 +32,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2687172a-0c00-49c2-8190-f5e5019914bb?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a977e8b8-65f9-494c-ba1c-e8599444c677?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -40,7 +40,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:36:06 GMT + - Tue, 25 May 2021 11:06:12 GMT expires: - '-1' pragma: @@ -53,7 +53,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 07e258d5-436c-4037-877b-182842e903d4 + - e6c6df07-a62b-4fa7-8f31-763e1a5d9e04 x-ms-ratelimit-remaining-subscription-writes: - '1192' status: @@ -69,10 +69,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2687172a-0c00-49c2-8190-f5e5019914bb?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a977e8b8-65f9-494c-ba1c-e8599444c677?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -84,7 +84,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:36:09 GMT + - Tue, 25 May 2021 11:06:15 GMT expires: - '-1' pragma: @@ -101,7 +101,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c1fac06c-2cd6-446d-a969-749895758308 + - ecba7c42-d7e0-4cdb-8597-98e5d23c5a3f status: code: 200 message: OK @@ -115,17 +115,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamexfe411907\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907\",\r\n - \ \"etag\": \"W/\\\"c7aaa4db-0a48-44ab-b940-8b6dca45a65f\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"17041714-3f7c-47d8-823b-21f9f8e39099\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"10c1ff98-18d9-449a-b661-578800804147\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"9f8452a4-72b0-4251-aaff-1973b4f2f99e\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -137,9 +137,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:36:09 GMT + - Tue, 25 May 2021 11:06:15 GMT etag: - - W/"c7aaa4db-0a48-44ab-b940-8b6dca45a65f" + - W/"17041714-3f7c-47d8-823b-21f9f8e39099" expires: - '-1' pragma: @@ -156,7 +156,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3b893599-a1e4-4d0f-bcaa-623799b98e79 + - 117dada4-6ce8-4018-8872-5ae7547d16d9 status: code: 200 message: OK @@ -174,21 +174,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907/subnets/subnetnamexfe411907?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907/subnets/subnetnamexfe411907?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetnamexfe411907\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907/subnets/subnetnamexfe411907\",\r\n - \ \"etag\": \"W/\\\"5e688c49-4240-4ac5-8e93-18d3138a91de\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"d405d95f-477d-4bbe-ae68-aa66bedbd048\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c8b41d74-c5f2-45d4-801e-9e23efa85b01?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/17b12597-bb65-4a4a-8600-4e72085acd2b?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -196,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:36:09 GMT + - Tue, 25 May 2021 11:06:15 GMT expires: - '-1' pragma: @@ -209,7 +209,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 20644c58-5a7d-4d2c-9250-3bbf54e3886c + - a5824979-a910-4b32-a740-ce1ceade0178 x-ms-ratelimit-remaining-subscription-writes: - '1191' status: @@ -225,10 +225,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c8b41d74-c5f2-45d4-801e-9e23efa85b01?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/17b12597-bb65-4a4a-8600-4e72085acd2b?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -240,7 +240,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:36:12 GMT + - Tue, 25 May 2021 11:06:18 GMT expires: - '-1' pragma: @@ -257,7 +257,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9e6423ea-b83c-4d9d-a7bc-4dc32a716514 + - 5a5adac9-4625-4233-ab8d-d33611266cfe status: code: 200 message: OK @@ -271,14 +271,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907/subnets/subnetnamexfe411907?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907/subnets/subnetnamexfe411907?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetnamexfe411907\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907/subnets/subnetnamexfe411907\",\r\n - \ \"etag\": \"W/\\\"deeffcbd-ed27-4b90-ba24-20ebd8aea4af\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"91d29264-af60-4350-a805-9c9a28f8e329\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -291,9 +291,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:36:12 GMT + - Tue, 25 May 2021 11:06:18 GMT etag: - - W/"deeffcbd-ed27-4b90-ba24-20ebd8aea4af" + - W/"91d29264-af60-4350-a805-9c9a28f8e329" expires: - '-1' pragma: @@ -310,7 +310,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 92987af3-310a-42c4-9cf6-c2d20eca3c25 + - f938cfd2-f110-47ee-8aff-6875ef99f4ac status: code: 200 message: OK @@ -338,10 +338,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinescalesetfe411907\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907\",\r\n @@ -363,12 +363,12 @@ interactions: \"latest\"\r\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907/subnets/subnetnamexfe411907\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]}\r\n \ },\r\n \"provisioningState\": \"Creating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"8225b4ac-35c8-4d35-aa64-4433913a89df\"\r\n }\r\n}" + \"94f04569-6d84-40a5-99c6-0b56e1a4ce50\"\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a12a1d7e-6edc-4223-b8b9-4989784d99a1?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3caf2ba4-3e5d-4ed5-8255-5ebb448f1e5c?api-version=2021-03-01 cache-control: - no-cache content-length: @@ -376,7 +376,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:36:13 GMT + - Tue, 25 May 2021 11:06:21 GMT expires: - '-1' pragma: @@ -389,9 +389,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;185,Microsoft.Compute/CreateVMScaleSet30Min;929,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3723,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/CreateVMScaleSet3Min;185,Microsoft.Compute/CreateVMScaleSet30Min;930,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3723,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' x-ms-request-charge: - '2' status: @@ -407,14 +407,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a12a1d7e-6edc-4223-b8b9-4989784d99a1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3caf2ba4-3e5d-4ed5-8255-5ebb448f1e5c?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:36:13.6396389+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"a12a1d7e-6edc-4223-b8b9-4989784d99a1\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:06:22.0112409+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"3caf2ba4-3e5d-4ed5-8255-5ebb448f1e5c\"\r\n}" headers: cache-control: - no-cache @@ -423,7 +423,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:36:23 GMT + - Tue, 25 May 2021 11:06:32 GMT expires: - '-1' pragma: @@ -440,7 +440,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29876 + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29883 status: code: 200 message: OK @@ -454,15 +454,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a12a1d7e-6edc-4223-b8b9-4989784d99a1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3caf2ba4-3e5d-4ed5-8255-5ebb448f1e5c?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:36:13.6396389+00:00\",\r\n \"endTime\": - \"2021-04-06T04:37:34.4524536+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"a12a1d7e-6edc-4223-b8b9-4989784d99a1\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:06:22.0112409+00:00\",\r\n \"endTime\": + \"2021-05-25T11:07:51.0740204+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"3caf2ba4-3e5d-4ed5-8255-5ebb448f1e5c\"\r\n}" headers: cache-control: - no-cache @@ -471,7 +471,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:38:00 GMT + - Tue, 25 May 2021 11:08:09 GMT expires: - '-1' pragma: @@ -488,7 +488,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29874 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29881 status: code: 200 message: OK @@ -502,10 +502,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinescalesetfe411907\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907\",\r\n @@ -527,7 +527,7 @@ interactions: \"latest\"\r\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexfe411907/subnets/subnetnamexfe411907\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]}\r\n \ },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"8225b4ac-35c8-4d35-aa64-4433913a89df\"\r\n }\r\n}" + \"94f04569-6d84-40a5-99c6-0b56e1a4ce50\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -536,7 +536,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:38:00 GMT + - Tue, 25 May 2021 11:08:09 GMT expires: - '-1' pragma: @@ -553,7 +553,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;395,Microsoft.Compute/GetVMScaleSet30Min;2585 + - Microsoft.Compute/GetVMScaleSet3Min;396,Microsoft.Compute/GetVMScaleSet30Min;2592 status: code: 200 message: OK @@ -567,74 +567,29 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907/virtualmachines/0/instanceView?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907/virtualmachines/0/instanceView?api-version=2021-03-01 response: body: - string: "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": - \"The entity was not found in this Azure location.\"\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '115' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:41:00 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSetVM3Min;999,Microsoft.Compute/GetVMScaleSetVM30Min;4999,Microsoft.Compute/VMScaleSetVMViews3Min;4999 - x-ms-request-charge: - - '1' - status: - code: 404 - message: Not Found -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907/virtualmachines/1/instanceView?api-version=2020-12-01 - response: - body: - string: "{\r\n \"placementGroupId\": \"eca35d04-4dd9-40e6-af8d-771ffcd67675\",\r\n - \ \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \"computerName\": - \"testPC000001\",\r\n \"osName\": \"Windows Server 2016 Datacenter\",\r\n + string: "{\r\n \"placementGroupId\": \"59a61579-217b-4ffd-a415-106e4962e7e8\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"computerName\": + \"testPC000000\",\r\n \"osName\": \"Windows Server 2016 Datacenter\",\r\n \ \"osVersion\": \"Microsoft Windows NT 10.0.14393.0\",\r\n \"vmAgent\": - {\r\n \"vmAgentVersion\": \"2.7.41491.1008\",\r\n \"statuses\": [\r\n + {\r\n \"vmAgentVersion\": \"2.7.41491.1010\",\r\n \"statuses\": [\r\n \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": \"GuestAgent is running and processing the extensions.\",\r\n \"time\": - \"2021-04-06T04:40:41+00:00\"\r\n }\r\n ]\r\n },\r\n \"disks\": - [\r\n {\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_f6bf22995f3f43f8a3cab3ffceffc47b\",\r\n + \"2021-05-25T11:10:48+00:00\"\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_eb8640dfb44941d6b367cf02242cdcde\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T04:36:19.3583951+00:00\"\r\n + succeeded\",\r\n \"time\": \"2021-05-25T11:07:51.6209153+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n - \ \"time\": \"2021-04-06T04:37:34.3743455+00:00\"\r\n },\r\n {\r\n + \ \"time\": \"2021-05-25T11:08:42.9178144+00:00\"\r\n },\r\n {\r\n \ \"code\": \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \ \"displayStatus\": \"VM running\"\r\n }\r\n ]\r\n}" headers: @@ -645,7 +600,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:41:00 GMT + - Tue, 25 May 2021 11:11:10 GMT expires: - '-1' pragma: @@ -662,7 +617,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSetVM3Min;998,Microsoft.Compute/GetVMScaleSetVM30Min;4998,Microsoft.Compute/VMScaleSetVMViews3Min;4998 + - Microsoft.Compute/GetVMScaleSetVM3Min;999,Microsoft.Compute/GetVMScaleSetVM30Min;4999,Microsoft.Compute/VMScaleSetVMViews3Min;4998 x-ms-request-charge: - '1' status: @@ -682,14 +637,14 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907/performMaintenance?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907/performMaintenance?api-version=2021-03-01 response: body: string: "{\r\n \"error\": {\r\n \"code\": \"OperationNotAllowed\",\r\n \"message\": - \"Operation 'performMaintenance' is not allowed on VM 'virtualmachinescalesetfe411907_1' + \"Operation 'performMaintenance' is not allowed on VM 'virtualmachinescalesetfe411907_0' since the Subscription of this VM is not eligible.\"\r\n }\r\n}" headers: cache-control: @@ -699,7 +654,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:41:00 GMT + - Tue, 25 May 2021 11:11:10 GMT expires: - '-1' pragma: @@ -712,9 +667,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1190 + - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1191 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1187' status: code: 409 message: Conflict @@ -730,14 +685,14 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907/virtualmachines/1/performMaintenance?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907/virtualmachines/0/performMaintenance?api-version=2021-03-01 response: body: string: "{\r\n \"error\": {\r\n \"code\": \"OperationNotAllowed\",\r\n \"message\": - \"Operation 'performMaintenance' is not allowed on VM 'virtualmachinescalesetfe411907_1' + \"Operation 'performMaintenance' is not allowed on VM 'virtualmachinescalesetfe411907_0' since the Subscription of this VM is not eligible.\"\r\n }\r\n}" headers: cache-control: @@ -747,7 +702,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:41:01 GMT + - Tue, 25 May 2021 11:11:10 GMT expires: - '-1' pragma: @@ -760,9 +715,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1189 + - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1190 x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1186' status: code: 409 message: Conflict @@ -778,10 +733,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetfe411907?api-version=2021-03-01 response: body: string: '' @@ -789,17 +744,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/29c8d116-c0e9-497d-a04d-81a749594a59?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/888f6f88-0226-422a-bdd9-b848c7e4be36?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 04:41:01 GMT + - Tue, 25 May 2021 11:11:10 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/29c8d116-c0e9-497d-a04d-81a749594a59?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/888f6f88-0226-422a-bdd9-b848c7e4be36?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -812,7 +767,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteVMScaleSet3Min;79,Microsoft.Compute/DeleteVMScaleSet30Min;398,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3728,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-deletes: - - '14995' + - '14991' x-ms-request-charge: - '1' status: @@ -828,61 +783,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/29c8d116-c0e9-497d-a04d-81a749594a59?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:41:01.8120083+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"29c8d116-c0e9-497d-a04d-81a749594a59\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:41:11 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29886 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/29c8d116-c0e9-497d-a04d-81a749594a59?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/888f6f88-0226-422a-bdd9-b848c7e4be36?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:41:01.8120083+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"29c8d116-c0e9-497d-a04d-81a749594a59\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:11:11.0116454+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"888f6f88-0226-422a-bdd9-b848c7e4be36\"\r\n}" headers: cache-control: - no-cache @@ -891,7 +799,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:41:22 GMT + - Tue, 25 May 2021 11:11:20 GMT expires: - '-1' pragma: @@ -908,7 +816,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29885 + - Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29885 status: code: 200 message: OK @@ -922,14 +830,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/29c8d116-c0e9-497d-a04d-81a749594a59?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/888f6f88-0226-422a-bdd9-b848c7e4be36?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:41:01.8120083+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"29c8d116-c0e9-497d-a04d-81a749594a59\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:11:11.0116454+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"888f6f88-0226-422a-bdd9-b848c7e4be36\"\r\n}" headers: cache-control: - no-cache @@ -938,7 +846,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:41:52 GMT + - Tue, 25 May 2021 11:11:31 GMT expires: - '-1' pragma: @@ -955,7 +863,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29884 + - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29884 status: code: 200 message: OK @@ -969,15 +877,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/29c8d116-c0e9-497d-a04d-81a749594a59?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/888f6f88-0226-422a-bdd9-b848c7e4be36?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:41:01.8120083+00:00\",\r\n \"endTime\": - \"2021-04-06T04:41:56.9685026+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"29c8d116-c0e9-497d-a04d-81a749594a59\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:11:11.0116454+00:00\",\r\n \"endTime\": + \"2021-05-25T11:11:50.3710673+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"888f6f88-0226-422a-bdd9-b848c7e4be36\"\r\n}" headers: cache-control: - no-cache @@ -986,7 +894,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:42:22 GMT + - Tue, 25 May 2021 11:12:01 GMT expires: - '-1' pragma: @@ -1003,7 +911,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29882 + - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29882 status: code: 200 message: OK diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_rolling_upgrades.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_rolling_upgrades.yaml deleted file mode 100644 index 35fb35f6588b..000000000000 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_rolling_upgrades.yaml +++ /dev/null @@ -1,1704 +0,0 @@ -interactions: -- request: - body: '{"location": "eastus", "properties": {"addressSpace": {"addressPrefixes": - ["10.0.0.0/16"]}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '92' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db?api-version=2020-11-01 - response: - body: - string: "{\r\n \"name\": \"networknamexb4bb17db\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db\",\r\n - \ \"etag\": \"W/\\\"6663bc7a-fc4d-42ae-a138-3bc54c8bafa8\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"0977f371-f229-46a8-bd7b-559c018cf7a3\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/228b0129-32a6-4524-9b97-bf2e9ae9b592?api-version=2020-11-01 - cache-control: - - no-cache - content-length: - - '698' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:42:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 3e845f83-5e01-4ffb-ad64-8e2e66cb92bb - x-ms-ratelimit-remaining-subscription-writes: - - '1190' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/228b0129-32a6-4524-9b97-bf2e9ae9b592?api-version=2020-11-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:42:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - b9ed815d-ae1a-4901-9754-d54c99eb894a - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db?api-version=2020-11-01 - response: - body: - string: "{\r\n \"name\": \"networknamexb4bb17db\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db\",\r\n - \ \"etag\": \"W/\\\"6f76eb1b-6626-4fd9-9549-7b257b917dfb\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"0977f371-f229-46a8-bd7b-559c018cf7a3\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '699' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:42:27 GMT - etag: - - W/"6f76eb1b-6626-4fd9-9549-7b257b917dfb" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 6870f117-601c-45ca-9613-901c26d1fa39 - status: - code: 200 - message: OK -- request: - body: '{"properties": {"addressPrefix": "10.0.0.0/24"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '48' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db/subnets/subnetnamexb4bb17db?api-version=2020-11-01 - response: - body: - string: "{\r\n \"name\": \"subnetnamexb4bb17db\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db/subnets/subnetnamexb4bb17db\",\r\n - \ \"etag\": \"W/\\\"ef615637-1533-4fff-b478-5b5b9761c4d1\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ec604312-81a0-48e3-8051-78f50ce746ab?api-version=2020-11-01 - cache-control: - - no-cache - content-length: - - '629' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:42:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - de74ddcf-c180-4b71-ba0d-109b5c01ba83 - x-ms-ratelimit-remaining-subscription-writes: - - '1189' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ec604312-81a0-48e3-8051-78f50ce746ab?api-version=2020-11-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:42:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - e54d555f-81a3-4641-ad38-9fb4d112271f - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db/subnets/subnetnamexb4bb17db?api-version=2020-11-01 - response: - body: - string: "{\r\n \"name\": \"subnetnamexb4bb17db\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db/subnets/subnetnamexb4bb17db\",\r\n - \ \"etag\": \"W/\\\"e4864e54-f5c4-4770-bf1b-de33d11c3e42\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '630' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:42:30 GMT - etag: - - W/"e4864e54-f5c4-4770-bf1b-de33d11c3e42" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - ab878427-c5d4-445b-baf8-096f606b2dd0 - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus", "sku": {"name": "Standard_D1_v2", "tier": "Standard", - "capacity": 1}, "properties": {"upgradePolicy": {"mode": "Manual", "rollingUpgradePolicy": - {"maxUnhealthyInstancePercent": 100, "maxUnhealthyUpgradedInstancePercent": - 100}}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "testPC", - "adminUsername": "testuser", "adminPassword": "Aa!1()-xyz"}, "storageProfile": - {"imageReference": {"publisher": "MicrosoftWindowsServer", "offer": "WindowsServer", - "sku": "2016-Datacenter", "version": "latest"}, "osDisk": {"caching": "ReadWrite", - "createOption": "FromImage", "diskSizeGB": 512, "managedDisk": {"storageAccountType": - "Standard_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": [{"name": - "testPC", "properties": {"primary": true, "ipConfigurations": [{"name": "testPC", - "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db/subnets/subnetnamexb4bb17db"}}}]}}]}}, - "overprovision": true}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1128' - Content-Type: - - application/json - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db?api-version=2020-12-01 - response: - body: - string: "{\r\n \"name\": \"virtualmachinescalesetb4bb17db\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": - \"eastus\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": - \"Standard\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": - true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\",\r\n \"rollingUpgradePolicy\": - {\r\n \"maxBatchInstancePercent\": 20,\r\n \"maxUnhealthyInstancePercent\": - 100,\r\n \"maxUnhealthyUpgradedInstancePercent\": 100,\r\n \"pauseTimeBetweenBatches\": - \"PT0S\"\r\n }\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"testPC\",\r\n \"adminUsername\": - \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": - true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": - [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": - true\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n - \ \"osType\": \"Windows\",\r\n \"createOption\": \"FromImage\",\r\n - \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n - \ \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"diskSizeGB\": - 512\r\n },\r\n \"imageReference\": {\r\n \"publisher\": - \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n - \ \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\"\r\n - \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db/subnets/subnetnamexb4bb17db\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]}\r\n - \ },\r\n \"provisioningState\": \"Creating\",\r\n \"overprovision\": - true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"0c348340-5197-4fba-81b0-80335c00a566\"\r\n }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c6016656-4f95-4a6c-ab8c-6a370516a8a5?api-version=2020-12-01 - cache-control: - - no-cache - content-length: - - '2414' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:42:31 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;185,Microsoft.Compute/CreateVMScaleSet30Min;928,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3726,Microsoft.Compute/VmssQueuedVMOperations;0 - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - x-ms-request-charge: - - '2' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c6016656-4f95-4a6c-ab8c-6a370516a8a5?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:42:31.4062064+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c6016656-4f95-4a6c-ab8c-6a370516a8a5\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:42:41 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29881 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c6016656-4f95-4a6c-ab8c-6a370516a8a5?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:42:31.4062064+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c6016656-4f95-4a6c-ab8c-6a370516a8a5\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:44:18 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29880 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c6016656-4f95-4a6c-ab8c-6a370516a8a5?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:42:31.4062064+00:00\",\r\n \"endTime\": - \"2021-04-06T04:44:43.0941976+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"c6016656-4f95-4a6c-ab8c-6a370516a8a5\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '184' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:44:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29877 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db?api-version=2020-12-01 - response: - body: - string: "{\r\n \"name\": \"virtualmachinescalesetb4bb17db\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": - \"eastus\",\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \"tier\": - \"Standard\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": - true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\",\r\n \"rollingUpgradePolicy\": - {\r\n \"maxBatchInstancePercent\": 20,\r\n \"maxUnhealthyInstancePercent\": - 100,\r\n \"maxUnhealthyUpgradedInstancePercent\": 100,\r\n \"pauseTimeBetweenBatches\": - \"PT0S\"\r\n }\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"testPC\",\r\n \"adminUsername\": - \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": - true,\r\n \"enableAutomaticUpdates\": true\r\n },\r\n \"secrets\": - [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": - true\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n - \ \"osType\": \"Windows\",\r\n \"createOption\": \"FromImage\",\r\n - \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n - \ \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"diskSizeGB\": - 512\r\n },\r\n \"imageReference\": {\r\n \"publisher\": - \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n - \ \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\"\r\n - \ }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb4bb17db/subnets/subnetnamexb4bb17db\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]}\r\n - \ },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": - true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"0c348340-5197-4fba-81b0-80335c00a566\"\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2415' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:44:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;397,Microsoft.Compute/GetVMScaleSet30Min;2581 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb4bb17db/extensionRollingUpgrade?api-version=2020-12-01 - response: - body: - string: '' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Tue, 06 Apr 2021 04:44:48 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?monitor=true&api-version=2020-12-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1188,Microsoft.Compute/VmssQueuedVMOperations;0 - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-ms-request-charge: - - '0' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:45:18 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29890 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:45:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29887 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:46:18 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29884 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:46:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29881 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:47:18 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29878 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:47:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29875 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:48:19 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29872 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:48:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29869 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:49:19 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29866 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:49:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29863 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:50:18 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29890 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:50:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29887 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:51:18 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29884 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:51:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29881 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:52:19 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29878 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:52:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29875 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:53:19 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29872 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:53:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29869 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:54:19 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29866 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:54:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29863 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:55:19 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29883 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c5f8ffb9-7506-4336-b9cb-aa7b0b938585?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:44:48.9691962+00:00\",\r\n \"endTime\": - \"2021-04-06T04:55:35.7046482+00:00\",\r\n \"status\": \"Failed\",\r\n \"error\": - {\r\n \"code\": \"MaxUnhealthyUpgradedInstancePercentExceededInRollingUpgrade\",\r\n - \ \"message\": \"Rolling Upgrade failed after exceeding the MaxUnhealthyUpgradedInstancePercent - value defined in the RollingUpgradePolicy. 100% of instances are in an unhealthy - state after being upgraded - more than the threshold of 20%. The most impactful - error is: Instance found to be unhealthy or unreachable.. First failed instance - ID is: 0.\"\r\n },\r\n \"name\": \"c5f8ffb9-7506-4336-b9cb-aa7b0b938585\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '625' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:55:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29880 - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_vm.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_vm.yaml index b7cf0ea8ee38..5566b8b715e6 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_vm.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_vm.yaml @@ -14,17 +14,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamex8c68120d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d\",\r\n - \ \"etag\": \"W/\\\"5f9aad96-a9c7-4d58-bdbd-bb7f864524b0\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"003888f7-46ec-4870-a944-d5df7b7377e0\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"bbb7883a-ea2f-44c1-9244-f4ddffd3cbf9\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"3fb0c708-b0ad-4369-8cde-dfcbadb2d57c\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -32,7 +32,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b87d0b6a-a0ce-41b5-a871-ba905e339db3?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8b6fcbaa-b395-4d36-b7d9-82f59f1d77bf?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -40,7 +40,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:55:50 GMT + - Tue, 25 May 2021 11:12:05 GMT expires: - '-1' pragma: @@ -53,9 +53,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - bbf66a60-d7bd-4ffd-8015-b11f321bbefd + - 856ac6ee-4e7d-4ad6-9188-3a801c0fdb44 x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1190' status: code: 201 message: Created @@ -69,10 +69,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b87d0b6a-a0ce-41b5-a871-ba905e339db3?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8b6fcbaa-b395-4d36-b7d9-82f59f1d77bf?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -84,7 +84,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:55:53 GMT + - Tue, 25 May 2021 11:12:08 GMT expires: - '-1' pragma: @@ -101,7 +101,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c95dc3ca-89ad-496d-b7af-dc0be1fbcb3a + - e97a2384-446b-4787-990f-5ad41165811b status: code: 200 message: OK @@ -115,17 +115,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamex8c68120d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d\",\r\n - \ \"etag\": \"W/\\\"5f8eb86a-ef07-42f0-97a7-d362c60e4314\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"268b9fcf-9358-48d0-8142-01807c41311f\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"bbb7883a-ea2f-44c1-9244-f4ddffd3cbf9\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"3fb0c708-b0ad-4369-8cde-dfcbadb2d57c\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -137,9 +137,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:55:54 GMT + - Tue, 25 May 2021 11:12:09 GMT etag: - - W/"5f8eb86a-ef07-42f0-97a7-d362c60e4314" + - W/"268b9fcf-9358-48d0-8142-01807c41311f" expires: - '-1' pragma: @@ -156,7 +156,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 1084ed41-0b15-4b03-8bab-33133aa82c20 + - 211b2175-f6b9-4214-a9d2-ed80dbe9627a status: code: 200 message: OK @@ -174,21 +174,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetnamex8c68120d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d\",\r\n - \ \"etag\": \"W/\\\"aabf16b0-dae7-4245-8bd5-3bff6a7cfbb0\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"f31b6ae6-8719-455d-9833-e3355d3c0d04\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a446581a-e536-464f-b623-0f398278bd55?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e2ff46af-58fc-4adf-917e-6de4698abaa3?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -196,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:55:54 GMT + - Tue, 25 May 2021 11:12:09 GMT expires: - '-1' pragma: @@ -209,9 +209,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4cd3f98f-ac92-4459-9e30-53f0e2a11dfd + - 36a3995d-b87c-497b-bcdb-1c782bba575e x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1189' status: code: 201 message: Created @@ -225,10 +225,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a446581a-e536-464f-b623-0f398278bd55?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e2ff46af-58fc-4adf-917e-6de4698abaa3?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -240,7 +240,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:55:57 GMT + - Tue, 25 May 2021 11:12:12 GMT expires: - '-1' pragma: @@ -257,7 +257,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d1850e0a-8a4b-4cf5-804c-4105168fe313 + - e4aa8ac6-760a-45f9-bdae-0a454c1c818e status: code: 200 message: OK @@ -271,14 +271,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetnamex8c68120d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d\",\r\n - \ \"etag\": \"W/\\\"940e2998-f056-419d-95cb-8ce1868e8c31\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"af9b4787-fab7-4399-9197-a6c16abf8b9a\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -291,9 +291,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:55:57 GMT + - Tue, 25 May 2021 11:12:12 GMT etag: - - W/"940e2998-f056-419d-95cb-8ce1868e8c31" + - W/"af9b4787-fab7-4399-9197-a6c16abf8b9a" expires: - '-1' pragma: @@ -310,7 +310,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d202ee32-a84f-419a-882c-42ad55efb2a2 + - 01113721-a71f-4384-aeb2-fa0a69589b32 status: code: 200 message: OK @@ -338,10 +338,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinescaleset8c68120d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d\",\r\n @@ -363,12 +363,12 @@ interactions: \"latest\"\r\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]}\r\n \ },\r\n \"provisioningState\": \"Creating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"a8f6a742-c104-45a3-a51e-d26c8f9632f8\"\r\n }\r\n}" + \"2b005c20-2bab-4491-aa18-af63849333fc\"\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8a12aa65-b36d-4840-9e8c-07a3f125ba73?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ef427875-a0c7-44a7-b811-0599f6f35745?api-version=2021-03-01 cache-control: - no-cache content-length: @@ -376,7 +376,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:55:58 GMT + - Tue, 25 May 2021 11:12:15 GMT expires: - '-1' pragma: @@ -389,9 +389,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;185,Microsoft.Compute/CreateVMScaleSet30Min;929,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3727,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/CreateVMScaleSet3Min;185,Microsoft.Compute/CreateVMScaleSet30Min;929,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3726,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1196' x-ms-request-charge: - '2' status: @@ -407,70 +407,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8a12aa65-b36d-4840-9e8c-07a3f125ba73?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ef427875-a0c7-44a7-b811-0599f6f35745?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:55:58.720754+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"8a12aa65-b36d-4840-9e8c-07a3f125ba73\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:12:15.1054126+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"ef427875-a0c7-44a7-b811-0599f6f35745\"\r\n}" headers: cache-control: - no-cache content-length: - - '133' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 04:56:08 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29879 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8a12aa65-b36d-4840-9e8c-07a3f125ba73?api-version=2020-12-01 - response: - body: - string: "{\r\n \"startTime\": \"2021-04-06T04:55:58.720754+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"8a12aa65-b36d-4840-9e8c-07a3f125ba73\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '133' + - '134' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:57:45 GMT + - Tue, 25 May 2021 11:12:25 GMT expires: - '-1' pragma: @@ -487,7 +440,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29878 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29881 status: code: 200 message: OK @@ -501,24 +454,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/8a12aa65-b36d-4840-9e8c-07a3f125ba73?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ef427875-a0c7-44a7-b811-0599f6f35745?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T04:55:58.720754+00:00\",\r\n \"endTime\": - \"2021-04-06T04:57:47.8461528+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"8a12aa65-b36d-4840-9e8c-07a3f125ba73\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:12:15.1054126+00:00\",\r\n \"endTime\": + \"2021-05-25T11:13:50.7774547+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"ef427875-a0c7-44a7-b811-0599f6f35745\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:58:16 GMT + - Tue, 25 May 2021 11:14:02 GMT expires: - '-1' pragma: @@ -535,7 +488,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29876 + - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29879 status: code: 200 message: OK @@ -549,10 +502,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinescaleset8c68120d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d\",\r\n @@ -574,7 +527,7 @@ interactions: \"latest\"\r\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]}\r\n \ },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"a8f6a742-c104-45a3-a51e-d26c8f9632f8\"\r\n }\r\n}" + \"2b005c20-2bab-4491-aa18-af63849333fc\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -583,7 +536,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 04:58:16 GMT + - Tue, 25 May 2021 11:14:02 GMT expires: - '-1' pragma: @@ -600,7 +553,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;396,Microsoft.Compute/GetVMScaleSet30Min;2578 + - Microsoft.Compute/GetVMScaleSet3Min;395,Microsoft.Compute/GetVMScaleSet30Min;2585 status: code: 200 message: OK @@ -614,85 +567,40 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/0/instanceView?api-version=2020-12-01 - response: - body: - string: "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": - \"The entity was not found in this Azure location.\"\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '115' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 05:01:16 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSetVM3Min;999,Microsoft.Compute/GetVMScaleSetVM30Min;4997,Microsoft.Compute/VMScaleSetVMViews3Min;4999 - x-ms-request-charge: - - '1' - status: - code: 404 - message: Not Found -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/1/instanceView?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/0/instanceView?api-version=2021-03-01 response: body: - string: "{\r\n \"placementGroupId\": \"43ae820f-f7fc-4710-a057-ec61b1b09088\",\r\n - \ \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \"computerName\": - \"testPC000001\",\r\n \"osName\": \"Windows Server 2016 Datacenter\",\r\n + string: "{\r\n \"placementGroupId\": \"34cce735-f560-4317-b998-beec388955cf\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"computerName\": + \"testPC000000\",\r\n \"osName\": \"Windows Server 2016 Datacenter\",\r\n \ \"osVersion\": \"Microsoft Windows NT 10.0.14393.0\",\r\n \"vmAgent\": - {\r\n \"vmAgentVersion\": \"2.7.41491.1008\",\r\n \"statuses\": [\r\n + {\r\n \"vmAgentVersion\": \"2.7.41491.1010\",\r\n \"statuses\": [\r\n \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": \"GuestAgent is running and processing the extensions.\",\r\n \"time\": - \"2021-04-06T05:01:02+00:00\"\r\n }\r\n ]\r\n },\r\n \"disks\": - [\r\n {\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_d7f407043ccb44769d9114bcf5c8fb42\",\r\n + \"2021-05-25T11:16:57+00:00\"\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_1f11cee6d4274b69bec6cab11310733a\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T04:56:12.1896+00:00\"\r\n + succeeded\",\r\n \"time\": \"2021-05-25T11:13:51.3554894+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n - \ \"time\": \"2021-04-06T04:57:47.7836854+00:00\"\r\n },\r\n {\r\n + \ \"time\": \"2021-05-25T11:14:43.5900156+00:00\"\r\n },\r\n {\r\n \ \"code\": \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \ \"displayStatus\": \"VM running\"\r\n }\r\n ]\r\n}" headers: cache-control: - no-cache content-length: - - '1315' + - '1318' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:01:16 GMT + - Tue, 25 May 2021 11:17:03 GMT expires: - '-1' pragma: @@ -709,7 +617,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSetVM3Min;998,Microsoft.Compute/GetVMScaleSetVM30Min;4996,Microsoft.Compute/VMScaleSetVMViews3Min;4998 + - Microsoft.Compute/GetVMScaleSetVM3Min;999,Microsoft.Compute/GetVMScaleSetVM30Min;4998,Microsoft.Compute/VMScaleSetVMViews3Min;4999 x-ms-request-charge: - '1' status: @@ -725,66 +633,45 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/1?$expand=instanceView&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/0?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"virtualmachinescaleset8c68120d_1\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/1\",\r\n + string: "{\r\n \"name\": \"virtualmachinescaleset8c68120d_0\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/0\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachines\",\r\n - \ \"location\": \"eastus\",\r\n \"instanceId\": \"1\",\r\n \"sku\": {\r\n + \ \"location\": \"eastus\",\r\n \"instanceId\": \"0\",\r\n \"sku\": {\r\n \ \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \ \"properties\": {\r\n \"latestModelApplied\": true,\r\n \"modelDefinitionApplied\": - \"VirtualMachineScaleSet\",\r\n \"instanceView\": {\r\n \"placementGroupId\": - \"43ae820f-f7fc-4710-a057-ec61b1b09088\",\r\n \"platformUpdateDomain\": - 1,\r\n \"platformFaultDomain\": 1,\r\n \"computerName\": \"testPC000001\",\r\n - \ \"osName\": \"Windows Server 2016 Datacenter\",\r\n \"osVersion\": - \"Microsoft Windows NT 10.0.14393.0\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": - \"2.7.41491.1008\",\r\n \"statuses\": [\r\n {\r\n \"code\": - \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": - \"Ready\",\r\n \"message\": \"GuestAgent is running and processing - the extensions.\",\r\n \"time\": \"2021-04-06T05:01:02+00:00\"\r\n - \ }\r\n ]\r\n },\r\n \"disks\": [\r\n {\r\n - \ \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_d7f407043ccb44769d9114bcf5c8fb42\",\r\n - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T04:56:12.1896+00:00\"\r\n - \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": - \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T04:57:47.7836854+00:00\"\r\n - \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"networkProfileConfiguration\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]},\r\n - \ \"vmId\": \"714824c6-703a-408d-a0ef-6eb3c57acbd0\",\r\n \"hardwareProfile\": + \"VirtualMachineScaleSet\",\r\n \"networkProfileConfiguration\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]},\r\n + \ \"vmId\": \"0fb144e3-a110-4ecb-b2cc-d5658cea4022\",\r\n \"hardwareProfile\": {},\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Windows\",\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_d7f407043ccb44769d9114bcf5c8fb42\",\r\n + \"14393.4402.2105052108\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Windows\",\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_1f11cee6d4274b69bec6cab11310733a\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinescalesvirtualmachinescaleseOS__1_d7f407043ccb44769d9114bcf5c8fb42\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinescalesvirtualmachinescaleseOS__1_1f11cee6d4274b69bec6cab11310733a\"\r\n \ },\r\n \"diskSizeGB\": 512\r\n },\r\n \"dataDisks\": - []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"testPC000001\",\r\n + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"testPC000000\",\r\n \ \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": - {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/1/networkInterfaces/testPC\"}]},\r\n + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/0/networkInterfaces/testPC\"}]},\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '4475' + - '2873' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:01:16 GMT + - Tue, 25 May 2021 11:17:03 GMT expires: - '-1' pragma: @@ -801,7 +688,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSetVM3Min;997,Microsoft.Compute/GetVMScaleSetVM30Min;4995,Microsoft.Compute/VMScaleSetVMViews3Min;4997 + - Microsoft.Compute/GetVMScaleSetVM3Min;998,Microsoft.Compute/GetVMScaleSetVM30Min;4997,Microsoft.Compute/VMScaleSetVMViews3Min;4998 x-ms-request-charge: - '1' status: @@ -821,48 +708,47 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/0?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"virtualmachinescaleset8c68120d_1\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/1\",\r\n + string: "{\r\n \"name\": \"virtualmachinescaleset8c68120d_0\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/0\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachines\",\r\n - \ \"location\": \"eastus\",\r\n \"instanceId\": \"1\",\r\n \"sku\": {\r\n + \ \"location\": \"eastus\",\r\n \"instanceId\": \"0\",\r\n \"sku\": {\r\n \ \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \ \"properties\": {\r\n \"latestModelApplied\": true,\r\n \"modelDefinitionApplied\": \"VirtualMachineScaleSet\",\r\n \"networkProfileConfiguration\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]},\r\n - \ \"vmId\": \"714824c6-703a-408d-a0ef-6eb3c57acbd0\",\r\n \"hardwareProfile\": + \ \"vmId\": \"0fb144e3-a110-4ecb-b2cc-d5658cea4022\",\r\n \"hardwareProfile\": {},\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Windows\",\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_d7f407043ccb44769d9114bcf5c8fb42\",\r\n + \"14393.4402.2105052108\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Windows\",\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_1f11cee6d4274b69bec6cab11310733a\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinescalesvirtualmachinescaleseOS__1_d7f407043ccb44769d9114bcf5c8fb42\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinescalesvirtualmachinescaleseOS__1_1f11cee6d4274b69bec6cab11310733a\"\r\n \ },\r\n \"diskSizeGB\": 512\r\n },\r\n \"dataDisks\": - []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"testPC000001\",\r\n + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"testPC000000\",\r\n \ \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": - {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/1/networkInterfaces/testPC\"}]},\r\n + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/0/networkInterfaces/testPC\"}]},\r\n \ \"provisioningState\": \"Updating\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/18a5a497-7621-4dc9-9489-7f757f34aa37?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/7bc195de-43f2-4e07-8d0e-6aac64680f3f?api-version=2021-03-01 cache-control: - no-cache content-length: - - '2952' + - '2872' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:01:16 GMT + - Tue, 25 May 2021 11:17:04 GMT expires: - '-1' pragma: @@ -879,9 +765,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1195,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1189,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1193' x-ms-request-charge: - '0' status: @@ -897,24 +783,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/18a5a497-7621-4dc9-9489-7f757f34aa37?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/7bc195de-43f2-4e07-8d0e-6aac64680f3f?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:01:16.6127451+00:00\",\r\n \"endTime\": - \"2021-04-06T05:01:16.7533724+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"18a5a497-7621-4dc9-9489-7f757f34aa37\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:17:03.8402303+00:00\",\r\n \"endTime\": + \"2021-05-25T11:17:03.996487+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"7bc195de-43f2-4e07-8d0e-6aac64680f3f\"\r\n}" headers: cache-control: - no-cache content-length: - - '184' + - '183' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:01:46 GMT + - Tue, 25 May 2021 11:17:34 GMT expires: - '-1' pragma: @@ -931,7 +817,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29910 + - Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29900 status: code: 200 message: OK @@ -945,46 +831,45 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/0?api-version=2021-03-01 response: body: - string: "{\r\n \"name\": \"virtualmachinescaleset8c68120d_1\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/1\",\r\n + string: "{\r\n \"name\": \"virtualmachinescaleset8c68120d_0\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/0\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachines\",\r\n - \ \"location\": \"eastus\",\r\n \"instanceId\": \"1\",\r\n \"sku\": {\r\n + \ \"location\": \"eastus\",\r\n \"instanceId\": \"0\",\r\n \"sku\": {\r\n \ \"name\": \"Standard_D1_v2\",\r\n \"tier\": \"Standard\"\r\n },\r\n \ \"properties\": {\r\n \"latestModelApplied\": true,\r\n \"modelDefinitionApplied\": \"VirtualMachineScaleSet\",\r\n \"networkProfileConfiguration\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamex8c68120d/subnets/subnetnamex8c68120d\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]},\r\n - \ \"vmId\": \"714824c6-703a-408d-a0ef-6eb3c57acbd0\",\r\n \"hardwareProfile\": + \ \"vmId\": \"0fb144e3-a110-4ecb-b2cc-d5658cea4022\",\r\n \"hardwareProfile\": {},\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2016-Datacenter\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"14393.4283.2103051830\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Windows\",\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_d7f407043ccb44769d9114bcf5c8fb42\",\r\n + \"14393.4402.2105052108\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Windows\",\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_1f11cee6d4274b69bec6cab11310733a\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinescalesvirtualmachinescaleseOS__1_d7f407043ccb44769d9114bcf5c8fb42\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/disks/virtualmachinescalesvirtualmachinescaleseOS__1_1f11cee6d4274b69bec6cab11310733a\"\r\n \ },\r\n \"diskSizeGB\": 512\r\n },\r\n \"dataDisks\": - []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"testPC000001\",\r\n + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"testPC000000\",\r\n \ \"adminUsername\": \"testuser\",\r\n \"windowsConfiguration\": {\r\n \"provisionVMAgent\": true,\r\n \"enableAutomaticUpdates\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"AutomaticByOS\"\r\n - \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": - {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/1/networkInterfaces/testPC\"}]},\r\n + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualMachines/0/networkInterfaces/testPC\"}]},\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '2953' + - '2873' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:01:46 GMT + - Tue, 25 May 2021 11:17:34 GMT expires: - '-1' pragma: @@ -1001,7 +886,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSetVM3Min;996,Microsoft.Compute/GetVMScaleSetVM30Min;4994,Microsoft.Compute/VMScaleSetVMViews3Min;4996 + - Microsoft.Compute/GetVMScaleSetVM3Min;997,Microsoft.Compute/GetVMScaleSetVM30Min;4996,Microsoft.Compute/VMScaleSetVMViews3Min;4997 x-ms-request-charge: - '1' status: @@ -1019,26 +904,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/1/restart?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/0/restart?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/aeb4acb8-8415-497a-be23-7de48d6bc5b5?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/998e16e5-8043-42aa-8e2b-682af291da50?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:01:46 GMT + - Tue, 25 May 2021 11:17:34 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/aeb4acb8-8415-497a-be23-7de48d6bc5b5?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/998e16e5-8043-42aa-8e2b-682af291da50?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1049,9 +934,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1194,Microsoft.Compute/VMScaleSetVMActions3Min;199,Microsoft.Compute/VMScaleSetVMActions30Min;999,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3728,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1188,Microsoft.Compute/VMScaleSetVMActions3Min;199,Microsoft.Compute/VMScaleSetVMActions30Min;999,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3728,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1185' x-ms-request-charge: - '1' status: @@ -1067,15 +952,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/aeb4acb8-8415-497a-be23-7de48d6bc5b5?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/998e16e5-8043-42aa-8e2b-682af291da50?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:01:47.3783664+00:00\",\r\n \"endTime\": - \"2021-04-06T05:02:16.5658882+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"aeb4acb8-8415-497a-be23-7de48d6bc5b5\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:17:34.9652378+00:00\",\r\n \"endTime\": + \"2021-05-25T11:17:36.9652282+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"998e16e5-8043-42aa-8e2b-682af291da50\"\r\n}" headers: cache-control: - no-cache @@ -1084,7 +969,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:02:16 GMT + - Tue, 25 May 2021 11:18:05 GMT expires: - '-1' pragma: @@ -1101,7 +986,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29908 + - Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29898 status: code: 200 message: OK @@ -1115,10 +1000,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/aeb4acb8-8415-497a-be23-7de48d6bc5b5?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/998e16e5-8043-42aa-8e2b-682af291da50?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -1128,7 +1013,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 05:02:16 GMT + - Tue, 25 May 2021 11:18:05 GMT expires: - '-1' pragma: @@ -1141,7 +1026,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29907 + - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29897 status: code: 200 message: OK @@ -1157,26 +1042,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/1/poweroff?skipShutdown=false&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/0/poweroff?skipShutdown=false&api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/58b20ade-251d-469d-9728-ec719edb03a2?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/91c0bcee-c199-4592-bc60-9d0fdb5d5a47?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:02:16 GMT + - Tue, 25 May 2021 11:18:05 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/58b20ade-251d-469d-9728-ec719edb03a2?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/91c0bcee-c199-4592-bc60-9d0fdb5d5a47?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1189,7 +1074,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteVMScaleSetVM3Min;239,Microsoft.Compute/DeleteVMScaleSetVM30Min;1199,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3727,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1184' x-ms-request-charge: - '1' status: @@ -1205,24 +1090,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/58b20ade-251d-469d-9728-ec719edb03a2?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/91c0bcee-c199-4592-bc60-9d0fdb5d5a47?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:02:17.5971657+00:00\",\r\n \"endTime\": - \"2021-04-06T05:02:39.5346987+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"58b20ade-251d-469d-9728-ec719edb03a2\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:18:05.621504+00:00\",\r\n \"endTime\": + \"2021-05-25T11:18:17.2934221+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"91c0bcee-c199-4592-bc60-9d0fdb5d5a47\"\r\n}" headers: cache-control: - no-cache content-length: - - '184' + - '183' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:02:47 GMT + - Tue, 25 May 2021 11:18:35 GMT expires: - '-1' pragma: @@ -1239,7 +1124,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29904 + - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29895 status: code: 200 message: OK @@ -1253,10 +1138,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/58b20ade-251d-469d-9728-ec719edb03a2?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/91c0bcee-c199-4592-bc60-9d0fdb5d5a47?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -1266,7 +1151,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 05:02:47 GMT + - Tue, 25 May 2021 11:18:35 GMT expires: - '-1' pragma: @@ -1279,7 +1164,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29903 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29894 status: code: 200 message: OK @@ -1295,26 +1180,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/1/start?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/0/start?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ff336b62-ad81-4b0c-a677-74f560486e45?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/129d367d-1ae3-40da-8b24-1009365fb6dd?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:02:47 GMT + - Tue, 25 May 2021 11:18:35 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ff336b62-ad81-4b0c-a677-74f560486e45?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/129d367d-1ae3-40da-8b24-1009365fb6dd?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1325,9 +1210,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;237,Microsoft.Compute/VMScaleSetActions30Min;1193,Microsoft.Compute/VMScaleSetVMActions3Min;198,Microsoft.Compute/VMScaleSetVMActions30Min;998,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3726,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;237,Microsoft.Compute/VMScaleSetActions30Min;1187,Microsoft.Compute/VMScaleSetVMActions3Min;198,Microsoft.Compute/VMScaleSetVMActions30Min;998,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3726,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1183' x-ms-request-charge: - '1' status: @@ -1343,15 +1228,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ff336b62-ad81-4b0c-a677-74f560486e45?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/129d367d-1ae3-40da-8b24-1009365fb6dd?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:02:47.8316292+00:00\",\r\n \"endTime\": - \"2021-04-06T05:03:03.8629208+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"ff336b62-ad81-4b0c-a677-74f560486e45\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:18:36.1371739+00:00\",\r\n \"endTime\": + \"2021-05-25T11:18:40.0590573+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"129d367d-1ae3-40da-8b24-1009365fb6dd\"\r\n}" headers: cache-control: - no-cache @@ -1360,7 +1245,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:03:17 GMT + - Tue, 25 May 2021 11:19:05 GMT expires: - '-1' pragma: @@ -1377,7 +1262,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29900 + - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29892 status: code: 200 message: OK @@ -1391,10 +1276,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ff336b62-ad81-4b0c-a677-74f560486e45?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/129d367d-1ae3-40da-8b24-1009365fb6dd?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -1404,7 +1289,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 05:03:17 GMT + - Tue, 25 May 2021 11:19:05 GMT expires: - '-1' pragma: @@ -1417,7 +1302,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29899 + - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29891 status: code: 200 message: OK @@ -1435,26 +1320,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/1/runCommand?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/0/runCommand?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/256f4d2f-b701-439f-b5f6-7a9ad5d4b952?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/0444640e-1656-4ba2-96cb-b74274183b2a?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:03:17 GMT + - Tue, 25 May 2021 11:19:05 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/256f4d2f-b701-439f-b5f6-7a9ad5d4b952?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/0444640e-1656-4ba2-96cb-b74274183b2a?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1465,9 +1350,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;236,Microsoft.Compute/VMScaleSetActions30Min;1192,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3725,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;236,Microsoft.Compute/VMScaleSetActions30Min;1186,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3725,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1191' + - '1182' x-ms-request-charge: - '1' status: @@ -1483,23 +1368,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/256f4d2f-b701-439f-b5f6-7a9ad5d4b952?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/0444640e-1656-4ba2-96cb-b74274183b2a?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:03:18.0505025+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"256f4d2f-b701-439f-b5f6-7a9ad5d4b952\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:19:06.652924+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"0444640e-1656-4ba2-96cb-b74274183b2a\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '133' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:03:47 GMT + - Tue, 25 May 2021 11:19:36 GMT expires: - '-1' pragma: @@ -1516,7 +1401,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29896 + - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29889 status: code: 200 message: OK @@ -1530,23 +1415,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/256f4d2f-b701-439f-b5f6-7a9ad5d4b952?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/0444640e-1656-4ba2-96cb-b74274183b2a?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:03:18.0505025+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"256f4d2f-b701-439f-b5f6-7a9ad5d4b952\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:19:06.652924+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"0444640e-1656-4ba2-96cb-b74274183b2a\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '133' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:04:17 GMT + - Tue, 25 May 2021 11:20:06 GMT expires: - '-1' pragma: @@ -1563,7 +1448,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29893 + - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29911 status: code: 200 message: OK @@ -1577,26 +1462,26 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/256f4d2f-b701-439f-b5f6-7a9ad5d4b952?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/0444640e-1656-4ba2-96cb-b74274183b2a?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:03:18.0505025+00:00\",\r\n \"endTime\": - \"2021-04-06T05:04:24.3164573+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2021-05-25T11:19:06.652924+00:00\",\r\n \"endTime\": + \"2021-05-25T11:20:07.2935686+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\"value\":[{\"code\":\"ComponentStatus/StdOut/succeeded\",\"level\":\"Info\",\"displayStatus\":\"Provisioning succeeded\",\"message\":\"This is a sample script with parameters \"},{\"code\":\"ComponentStatus/StdErr/succeeded\",\"level\":\"Info\",\"displayStatus\":\"Provisioning - succeeded\",\"message\":\"\"}]}\r\n },\r\n \"name\": \"256f4d2f-b701-439f-b5f6-7a9ad5d4b952\"\r\n}" + succeeded\",\"message\":\"\"}]}\r\n },\r\n \"name\": \"0444640e-1656-4ba2-96cb-b74274183b2a\"\r\n}" headers: cache-control: - no-cache content-length: - - '503' + - '502' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:04:47 GMT + - Tue, 25 May 2021 11:20:36 GMT expires: - '-1' pragma: @@ -1613,7 +1498,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14980,Microsoft.Compute/GetOperation30Min;29890 + - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29909 status: code: 200 message: OK @@ -1627,10 +1512,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/256f4d2f-b701-439f-b5f6-7a9ad5d4b952?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/0444640e-1656-4ba2-96cb-b74274183b2a?monitor=true&api-version=2021-03-01 response: body: string: '{"value":[{"code":"ComponentStatus/StdOut/succeeded","level":"Info","displayStatus":"Provisioning @@ -1644,7 +1529,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:04:47 GMT + - Tue, 25 May 2021 11:20:36 GMT expires: - '-1' pragma: @@ -1661,12 +1546,12 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29889 + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29908 status: code: 200 message: OK - request: - body: '{"instanceIds": ["1"]}' + body: '{"instanceIds": ["0"]}' headers: Accept: - '*/*' @@ -1679,26 +1564,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/manualupgrade?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/manualupgrade?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/028d8321-e810-4666-b68d-045ac6a71ba1?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/de9ce437-0ec0-44fb-a68c-15f61f8f773c?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:04:47 GMT + - Tue, 25 May 2021 11:20:36 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/028d8321-e810-4666-b68d-045ac6a71ba1?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/de9ce437-0ec0-44fb-a68c-15f61f8f773c?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1709,9 +1594,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;237,Microsoft.Compute/VMScaleSetActions30Min;1191,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;237,Microsoft.Compute/VMScaleSetActions30Min;1185,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1190' + - '1181' x-ms-request-charge: - '0' status: @@ -1727,15 +1612,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/028d8321-e810-4666-b68d-045ac6a71ba1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/de9ce437-0ec0-44fb-a68c-15f61f8f773c?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:04:48.4258274+00:00\",\r\n \"endTime\": - \"2021-04-06T05:04:49.6133458+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"028d8321-e810-4666-b68d-045ac6a71ba1\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:20:37.6217769+00:00\",\r\n \"endTime\": + \"2021-05-25T11:20:37.7623889+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"de9ce437-0ec0-44fb-a68c-15f61f8f773c\"\r\n}" headers: cache-control: - no-cache @@ -1744,7 +1629,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:05:18 GMT + - Tue, 25 May 2021 11:21:07 GMT expires: - '-1' pragma: @@ -1761,7 +1646,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29897 + - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29906 status: code: 200 message: OK @@ -1775,10 +1660,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/028d8321-e810-4666-b68d-045ac6a71ba1?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/de9ce437-0ec0-44fb-a68c-15f61f8f773c?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -1788,7 +1673,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 05:05:18 GMT + - Tue, 25 May 2021 11:21:07 GMT expires: - '-1' pragma: @@ -1801,7 +1686,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14980,Microsoft.Compute/GetOperation30Min;29896 + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29905 status: code: 200 message: OK @@ -1817,26 +1702,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/1/deallocate?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/0/deallocate?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3da28ce7-275d-4dc9-b644-1e6fd1e1598b?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f1b874ab-21d8-4a94-bebd-88004efd2c6e?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:05:18 GMT + - Tue, 25 May 2021 11:21:08 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3da28ce7-275d-4dc9-b644-1e6fd1e1598b?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f1b874ab-21d8-4a94-bebd-88004efd2c6e?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1849,7 +1734,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteVMScaleSetVM3Min;239,Microsoft.Compute/DeleteVMScaleSetVM30Min;1198,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3724,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1189' + - '1180' x-ms-request-charge: - '1' status: @@ -1865,14 +1750,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3da28ce7-275d-4dc9-b644-1e6fd1e1598b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f1b874ab-21d8-4a94-bebd-88004efd2c6e?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:05:18.6758384+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"3da28ce7-275d-4dc9-b644-1e6fd1e1598b\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:21:08.1530383+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"f1b874ab-21d8-4a94-bebd-88004efd2c6e\"\r\n}" headers: cache-control: - no-cache @@ -1881,7 +1766,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:05:48 GMT + - Tue, 25 May 2021 11:21:37 GMT expires: - '-1' pragma: @@ -1898,7 +1783,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29894 + - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29903 status: code: 200 message: OK @@ -1912,15 +1797,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3da28ce7-275d-4dc9-b644-1e6fd1e1598b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f1b874ab-21d8-4a94-bebd-88004efd2c6e?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:05:18.6758384+00:00\",\r\n \"endTime\": - \"2021-04-06T05:05:53.5977967+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"3da28ce7-275d-4dc9-b644-1e6fd1e1598b\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:21:08.1530383+00:00\",\r\n \"endTime\": + \"2021-05-25T11:21:40.1218059+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"f1b874ab-21d8-4a94-bebd-88004efd2c6e\"\r\n}" headers: cache-control: - no-cache @@ -1929,7 +1814,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:06:17 GMT + - Tue, 25 May 2021 11:22:07 GMT expires: - '-1' pragma: @@ -1946,7 +1831,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29891 + - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29900 status: code: 200 message: OK @@ -1960,10 +1845,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3da28ce7-275d-4dc9-b644-1e6fd1e1598b?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/f1b874ab-21d8-4a94-bebd-88004efd2c6e?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -1973,7 +1858,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 05:06:18 GMT + - Tue, 25 May 2021 11:22:07 GMT expires: - '-1' pragma: @@ -1986,12 +1871,12 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29890 + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29899 status: code: 200 message: OK - request: - body: '{"instanceIds": ["1"]}' + body: '{"instanceIds": ["0"]}' headers: Accept: - '*/*' @@ -2004,26 +1889,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/delete?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/delete?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/060fa5e3-e0fe-4e35-bb8d-c74b62bc04cc?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e00281e7-9879-41bb-8cde-282c2d72f3fa?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:06:18 GMT + - Tue, 25 May 2021 11:22:08 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/060fa5e3-e0fe-4e35-bb8d-c74b62bc04cc?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e00281e7-9879-41bb-8cde-282c2d72f3fa?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -2034,9 +1919,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1191,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3724,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1184,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3724,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1188' + - '1179' x-ms-request-charge: - '1' status: @@ -2052,15 +1937,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/060fa5e3-e0fe-4e35-bb8d-c74b62bc04cc?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e00281e7-9879-41bb-8cde-282c2d72f3fa?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:06:18.972931+00:00\",\r\n \"endTime\": - \"2021-04-06T05:06:21.0354518+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"060fa5e3-e0fe-4e35-bb8d-c74b62bc04cc\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:22:08.8093508+00:00\",\r\n \"endTime\": + \"2021-05-25T11:22:09.621866+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"e00281e7-9879-41bb-8cde-282c2d72f3fa\"\r\n}" headers: cache-control: - no-cache @@ -2069,7 +1954,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:06:48 GMT + - Tue, 25 May 2021 11:22:38 GMT expires: - '-1' pragma: @@ -2086,7 +1971,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29888 + - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29897 status: code: 200 message: OK @@ -2100,10 +1985,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/060fa5e3-e0fe-4e35-bb8d-c74b62bc04cc?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/e00281e7-9879-41bb-8cde-282c2d72f3fa?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -2113,7 +1998,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 05:06:48 GMT + - Tue, 25 May 2021 11:22:39 GMT expires: - '-1' pragma: @@ -2126,7 +2011,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29887 + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29896 status: code: 200 message: OK @@ -2142,26 +2027,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/1?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d/virtualmachines/0?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/79cc1454-3d1a-4ceb-89b3-8e958d145fd5?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c31b6b76-d485-42d9-80ae-2216701d85a6?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:06:49 GMT + - Tue, 25 May 2021 11:22:39 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/79cc1454-3d1a-4ceb-89b3-8e958d145fd5?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c31b6b76-d485-42d9-80ae-2216701d85a6?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -2174,7 +2059,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteVMScaleSetVM3Min;238,Microsoft.Compute/DeleteVMScaleSetVM30Min;1197,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-deletes: - - '14994' + - '14992' x-ms-request-charge: - '0' status: @@ -2190,15 +2075,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/79cc1454-3d1a-4ceb-89b3-8e958d145fd5?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/c31b6b76-d485-42d9-80ae-2216701d85a6?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:06:49.1918039+00:00\",\r\n \"endTime\": - \"2021-04-06T05:06:49.2699413+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"79cc1454-3d1a-4ceb-89b3-8e958d145fd5\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:22:39.2313514+00:00\",\r\n \"endTime\": + \"2021-05-25T11:22:39.3094604+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"c31b6b76-d485-42d9-80ae-2216701d85a6\"\r\n}" headers: cache-control: - no-cache @@ -2207,7 +2092,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:07:18 GMT + - Tue, 25 May 2021 11:23:09 GMT expires: - '-1' pragma: @@ -2224,7 +2109,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29885 + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29894 status: code: 200 message: OK @@ -2240,10 +2125,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescaleset8c68120d?api-version=2021-03-01 response: body: string: '' @@ -2251,17 +2136,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/88c8975b-683c-4b84-bbcf-b943aa4b634a?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/7f488333-cd9f-4607-9696-f10f14a469ea?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:07:18 GMT + - Tue, 25 May 2021 11:23:09 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/88c8975b-683c-4b84-bbcf-b943aa4b634a?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/7f488333-cd9f-4607-9696-f10f14a469ea?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -2272,9 +2157,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/DeleteVMScaleSet3Min;79,Microsoft.Compute/DeleteVMScaleSet30Min;398,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/DeleteVMScaleSet3Min;79,Microsoft.Compute/DeleteVMScaleSet30Min;397,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-deletes: - - '14993' + - '14991' x-ms-request-charge: - '0' status: @@ -2290,15 +2175,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/88c8975b-683c-4b84-bbcf-b943aa4b634a?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/7f488333-cd9f-4607-9696-f10f14a469ea?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:07:19.3950521+00:00\",\r\n \"endTime\": - \"2021-04-06T05:07:19.4888462+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"88c8975b-683c-4b84-bbcf-b943aa4b634a\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:23:09.6845489+00:00\",\r\n \"endTime\": + \"2021-05-25T11:23:09.8095274+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"7f488333-cd9f-4607-9696-f10f14a469ea\"\r\n}" headers: cache-control: - no-cache @@ -2307,7 +2192,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:07:28 GMT + - Tue, 25 May 2021 11:23:19 GMT expires: - '-1' pragma: @@ -2324,7 +2209,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29883 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29892 status: code: 200 message: OK diff --git a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_vm_2.yaml b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_vm_2.yaml index 6057ef300169..b391465db9e2 100644 --- a/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_vm_2.yaml +++ b/sdk/compute/azure-mgmt-compute/tests/recordings/test_mgmt_compute_vmss.test_compute_vmss_vm_2.yaml @@ -14,17 +14,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamexb172129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e\",\r\n - \ \"etag\": \"W/\\\"d165aec9-d359-49c2-9b92-d7c1f28003fd\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"c5ab5673-8a43-4209-9e6e-841de9f80812\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"2a8f79c2-99d7-47c8-94ff-3b6cba13d11e\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"e25ad320-78ee-4ede-8970-9fe31f86ad0b\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -32,7 +32,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a6d6a6b4-92a0-4bd6-9596-7df2042fd55c?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f12dcfa9-f8cb-441a-9d67-2fb3d0437b01?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -40,7 +40,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:07:30 GMT + - Tue, 25 May 2021 11:23:23 GMT expires: - '-1' pragma: @@ -53,9 +53,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d494d99a-93fc-4f48-b5cf-cbf8da7c91c5 + - 64dcd07a-93dc-4a0d-808c-0fc661c8d81e x-ms-ratelimit-remaining-subscription-writes: - - '1191' + - '1189' status: code: 201 message: Created @@ -69,10 +69,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a6d6a6b4-92a0-4bd6-9596-7df2042fd55c?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f12dcfa9-f8cb-441a-9d67-2fb3d0437b01?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -84,7 +84,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:07:33 GMT + - Tue, 25 May 2021 11:23:26 GMT expires: - '-1' pragma: @@ -101,7 +101,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - b0d73fd2-8091-46ab-877a-1f0450fa5bf9 + - 4671d216-bddb-438b-8acf-b9c55164b422 status: code: 200 message: OK @@ -115,17 +115,17 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"networknamexb172129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e\",\r\n - \ \"etag\": \"W/\\\"5da0a4b2-0438-46e8-868c-ad92dd1f1df6\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"544e6d8e-ad31-4b03-a0f7-c224f701df44\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"2a8f79c2-99d7-47c8-94ff-3b6cba13d11e\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + \"e25ad320-78ee-4ede-8970-9fe31f86ad0b\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n \ }\r\n}" @@ -137,9 +137,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:07:33 GMT + - Tue, 25 May 2021 11:23:26 GMT etag: - - W/"5da0a4b2-0438-46e8-868c-ad92dd1f1df6" + - W/"544e6d8e-ad31-4b03-a0f7-c224f701df44" expires: - '-1' pragma: @@ -156,7 +156,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 1fbcc679-3d55-48c8-900a-c73cdc017598 + - 0079feb4-af3d-479a-8e0b-356a1e838c46 status: code: 200 message: OK @@ -174,21 +174,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e/subnets/subnetnamexb172129e?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e/subnets/subnetnamexb172129e?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetnamexb172129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e/subnets/subnetnamexb172129e\",\r\n - \ \"etag\": \"W/\\\"c837afd2-3fa7-46f0-ae41-0e97bdb83cfe\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"9f7694c1-5f8a-4760-a74b-30a6a27bec89\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/54dd13ca-1b44-4287-bd30-ddf6d6483abf?api-version=2020-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4cbc98f2-5488-4732-a63b-f88cae7d92f7?api-version=2021-02-01 cache-control: - no-cache content-length: @@ -196,7 +196,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:07:33 GMT + - Tue, 25 May 2021 11:23:27 GMT expires: - '-1' pragma: @@ -209,9 +209,9 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 90cea7dd-7600-4160-b7a5-5460afd66e2e + - c7aa0ff8-3e79-4c83-bdd2-4c94bdd229ff x-ms-ratelimit-remaining-subscription-writes: - - '1190' + - '1188' status: code: 201 message: Created @@ -225,10 +225,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/54dd13ca-1b44-4287-bd30-ddf6d6483abf?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4cbc98f2-5488-4732-a63b-f88cae7d92f7?api-version=2021-02-01 response: body: string: "{\r\n \"status\": \"Succeeded\"\r\n}" @@ -240,7 +240,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:07:36 GMT + - Tue, 25 May 2021 11:23:30 GMT expires: - '-1' pragma: @@ -257,7 +257,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - eebadbbf-94d4-4a0a-a3ef-864081f9b5be + - 6860c73b-629c-4061-8185-465287ddc2d5 status: code: 200 message: OK @@ -271,14 +271,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-network/18.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e/subnets/subnetnamexb172129e?api-version=2020-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e/subnets/subnetnamexb172129e?api-version=2021-02-01 response: body: string: "{\r\n \"name\": \"subnetnamexb172129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e/subnets/subnetnamexb172129e\",\r\n - \ \"etag\": \"W/\\\"348b5285-ce7f-46e2-8f21-16afd2c09c16\\\"\",\r\n \"properties\": + \ \"etag\": \"W/\\\"2817c0b4-d8b2-4d5d-98bc-ccb1b7424278\\\"\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": @@ -291,9 +291,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:07:36 GMT + - Tue, 25 May 2021 11:23:30 GMT etag: - - W/"348b5285-ce7f-46e2-8f21-16afd2c09c16" + - W/"2817c0b4-d8b2-4d5d-98bc-ccb1b7424278" expires: - '-1' pragma: @@ -310,7 +310,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f95851a0-d844-4f67-ad7a-53ad96a6eaab + - acbcc9e0-d064-4de9-8037-950bd618130d status: code: 200 message: OK @@ -338,10 +338,10 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinescalesetb172129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e\",\r\n @@ -363,12 +363,12 @@ interactions: \"latest\"\r\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e/subnets/subnetnamexb172129e\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]}\r\n \ },\r\n \"provisioningState\": \"Creating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"f6bb2ceb-946b-47c9-9476-403032601e5f\"\r\n }\r\n}" + \"c7a214ee-c275-40fb-9d7c-9749deb30523\"\r\n }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ded486d0-f869-4ad8-a195-1ce88bcdc1df?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/87d35843-677e-49f7-808d-783e254e56a4?api-version=2021-03-01 cache-control: - no-cache content-length: @@ -376,7 +376,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:07:38 GMT + - Tue, 25 May 2021 11:23:33 GMT expires: - '-1' pragma: @@ -389,9 +389,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;185,Microsoft.Compute/CreateVMScaleSet30Min;929,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3724,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/CreateVMScaleSet3Min;185,Microsoft.Compute/CreateVMScaleSet30Min;928,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3724,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1195' x-ms-request-charge: - '2' status: @@ -407,14 +407,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ded486d0-f869-4ad8-a195-1ce88bcdc1df?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/87d35843-677e-49f7-808d-783e254e56a4?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:07:38.0826171+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"ded486d0-f869-4ad8-a195-1ce88bcdc1df\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:23:32.9033304+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"87d35843-677e-49f7-808d-783e254e56a4\"\r\n}" headers: cache-control: - no-cache @@ -423,7 +423,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:07:48 GMT + - Tue, 25 May 2021 11:23:43 GMT expires: - '-1' pragma: @@ -440,7 +440,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29882 + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29891 status: code: 200 message: OK @@ -454,15 +454,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/ded486d0-f869-4ad8-a195-1ce88bcdc1df?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/87d35843-677e-49f7-808d-783e254e56a4?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:07:38.0826171+00:00\",\r\n \"endTime\": - \"2021-04-06T05:08:57.1767948+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"ded486d0-f869-4ad8-a195-1ce88bcdc1df\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:23:32.9033304+00:00\",\r\n \"endTime\": + \"2021-05-25T11:25:01.2159007+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"87d35843-677e-49f7-808d-783e254e56a4\"\r\n}" headers: cache-control: - no-cache @@ -471,7 +471,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:09:25 GMT + - Tue, 25 May 2021 11:25:21 GMT expires: - '-1' pragma: @@ -488,7 +488,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29880 + - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29900 status: code: 200 message: OK @@ -502,10 +502,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e?api-version=2021-03-01 response: body: string: "{\r\n \"name\": \"virtualmachinescalesetb172129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e\",\r\n @@ -527,7 +527,7 @@ interactions: \"latest\"\r\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"testPC\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/networknamexb172129e/subnets/subnetnamexb172129e\"},\"privateIPAddressVersion\":\"IPv4\"}}]}}]}\r\n \ },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"f6bb2ceb-946b-47c9-9476-403032601e5f\"\r\n }\r\n}" + \"c7a214ee-c275-40fb-9d7c-9749deb30523\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -536,7 +536,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:09:25 GMT + - Tue, 25 May 2021 11:25:21 GMT expires: - '-1' pragma: @@ -553,7 +553,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;396,Microsoft.Compute/GetVMScaleSet30Min;2581 + - Microsoft.Compute/GetVMScaleSet3Min;395,Microsoft.Compute/GetVMScaleSet30Min;2569 status: code: 200 message: OK @@ -567,74 +567,29 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e/virtualmachines/0/instanceView?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e/virtualmachines/0/instanceView?api-version=2021-03-01 response: body: - string: "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": - \"The entity was not found in this Azure location.\"\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '115' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 06 Apr 2021 05:12:25 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSetVM3Min;999,Microsoft.Compute/GetVMScaleSetVM30Min;4995,Microsoft.Compute/VMScaleSetVMViews3Min;4999 - x-ms-request-charge: - - '1' - status: - code: 404 - message: Not Found -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e/virtualmachines/1/instanceView?api-version=2020-12-01 - response: - body: - string: "{\r\n \"placementGroupId\": \"d1ad5da7-7098-49f0-8460-f85ee91801d7\",\r\n - \ \"platformUpdateDomain\": 1,\r\n \"platformFaultDomain\": 1,\r\n \"computerName\": - \"testPC000001\",\r\n \"osName\": \"Windows Server 2016 Datacenter\",\r\n + string: "{\r\n \"placementGroupId\": \"0ae0b610-0037-48d0-a55b-c30a1e2589c8\",\r\n + \ \"platformUpdateDomain\": 0,\r\n \"platformFaultDomain\": 0,\r\n \"computerName\": + \"testPC000000\",\r\n \"osName\": \"Windows Server 2016 Datacenter\",\r\n \ \"osVersion\": \"Microsoft Windows NT 10.0.14393.0\",\r\n \"vmAgent\": - {\r\n \"vmAgentVersion\": \"2.7.41491.1008\",\r\n \"statuses\": [\r\n + {\r\n \"vmAgentVersion\": \"2.7.41491.1010\",\r\n \"statuses\": [\r\n \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": \"GuestAgent is running and processing the extensions.\",\r\n \"time\": - \"2021-04-06T05:12:18+00:00\"\r\n }\r\n ]\r\n },\r\n \"disks\": - [\r\n {\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_fcfb4403882b43d69355549e4213a2ec\",\r\n + \"2021-05-25T11:28:10+00:00\"\r\n }\r\n ]\r\n },\r\n \"disks\": + [\r\n {\r\n \"name\": \"virtualmachinescalesvirtualmachinescaleseOS__1_c1cb56ff99da4448b37ef000afedc76e\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2021-04-06T05:07:41.7857456+00:00\"\r\n + succeeded\",\r\n \"time\": \"2021-05-25T11:25:01.7471476+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning succeeded\",\r\n - \ \"time\": \"2021-04-06T05:08:57.1142969+00:00\"\r\n },\r\n {\r\n + \ \"time\": \"2021-05-25T11:25:32.2940335+00:00\"\r\n },\r\n {\r\n \ \"code\": \"PowerState/running\",\r\n \"level\": \"Info\",\r\n \ \"displayStatus\": \"VM running\"\r\n }\r\n ]\r\n}" headers: @@ -645,7 +600,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:12:25 GMT + - Tue, 25 May 2021 11:28:20 GMT expires: - '-1' pragma: @@ -662,7 +617,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSetVM3Min;998,Microsoft.Compute/GetVMScaleSetVM30Min;4994,Microsoft.Compute/VMScaleSetVMViews3Min;4998 + - Microsoft.Compute/GetVMScaleSetVM3Min;999,Microsoft.Compute/GetVMScaleSetVM30Min;4995,Microsoft.Compute/VMScaleSetVMViews3Min;4999 x-ms-request-charge: - '1' status: @@ -680,26 +635,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e/virtualmachines/1/redeploy?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e/virtualmachines/0/redeploy?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/161fdd36-e40e-47ca-81f0-428e3e63bef3?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/69fe5ca7-1d15-4014-b837-6bdc3c1eec9c?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:12:25 GMT + - Tue, 25 May 2021 11:28:21 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/161fdd36-e40e-47ca-81f0-428e3e63bef3?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/69fe5ca7-1d15-4014-b837-6bdc3c1eec9c?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -710,9 +665,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1193,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3728,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1183,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3728,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1187' + - '1178' x-ms-request-charge: - '1' status: @@ -728,14 +683,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/161fdd36-e40e-47ca-81f0-428e3e63bef3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/69fe5ca7-1d15-4014-b837-6bdc3c1eec9c?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:12:25.8494742+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"161fdd36-e40e-47ca-81f0-428e3e63bef3\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:28:21.7941655+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"69fe5ca7-1d15-4014-b837-6bdc3c1eec9c\"\r\n}" headers: cache-control: - no-cache @@ -744,7 +699,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:12:55 GMT + - Tue, 25 May 2021 11:28:51 GMT expires: - '-1' pragma: @@ -761,7 +716,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29888 + - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29898 status: code: 200 message: OK @@ -775,14 +730,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/161fdd36-e40e-47ca-81f0-428e3e63bef3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/69fe5ca7-1d15-4014-b837-6bdc3c1eec9c?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:12:25.8494742+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"161fdd36-e40e-47ca-81f0-428e3e63bef3\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:28:21.7941655+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"69fe5ca7-1d15-4014-b837-6bdc3c1eec9c\"\r\n}" headers: cache-control: - no-cache @@ -791,7 +746,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:13:25 GMT + - Tue, 25 May 2021 11:29:21 GMT expires: - '-1' pragma: @@ -808,7 +763,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29885 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29895 status: code: 200 message: OK @@ -822,14 +777,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/161fdd36-e40e-47ca-81f0-428e3e63bef3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/69fe5ca7-1d15-4014-b837-6bdc3c1eec9c?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:12:25.8494742+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"161fdd36-e40e-47ca-81f0-428e3e63bef3\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:28:21.7941655+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"69fe5ca7-1d15-4014-b837-6bdc3c1eec9c\"\r\n}" headers: cache-control: - no-cache @@ -838,7 +793,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:13:55 GMT + - Tue, 25 May 2021 11:29:52 GMT expires: - '-1' pragma: @@ -855,7 +810,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29882 + - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29892 status: code: 200 message: OK @@ -869,14 +824,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/161fdd36-e40e-47ca-81f0-428e3e63bef3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/69fe5ca7-1d15-4014-b837-6bdc3c1eec9c?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:12:25.8494742+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"161fdd36-e40e-47ca-81f0-428e3e63bef3\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:28:21.7941655+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"69fe5ca7-1d15-4014-b837-6bdc3c1eec9c\"\r\n}" headers: cache-control: - no-cache @@ -885,7 +840,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:14:25 GMT + - Tue, 25 May 2021 11:30:22 GMT expires: - '-1' pragma: @@ -902,7 +857,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29879 + - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29934 status: code: 200 message: OK @@ -916,15 +871,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/161fdd36-e40e-47ca-81f0-428e3e63bef3?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/69fe5ca7-1d15-4014-b837-6bdc3c1eec9c?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:12:25.8494742+00:00\",\r\n \"endTime\": - \"2021-04-06T05:14:30.1782056+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"161fdd36-e40e-47ca-81f0-428e3e63bef3\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:28:21.7941655+00:00\",\r\n \"endTime\": + \"2021-05-25T11:30:43.4817781+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"69fe5ca7-1d15-4014-b837-6bdc3c1eec9c\"\r\n}" headers: cache-control: - no-cache @@ -933,7 +888,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:14:55 GMT + - Tue, 25 May 2021 11:30:51 GMT expires: - '-1' pragma: @@ -950,7 +905,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29876 + - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29931 status: code: 200 message: OK @@ -964,10 +919,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/161fdd36-e40e-47ca-81f0-428e3e63bef3?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/69fe5ca7-1d15-4014-b837-6bdc3c1eec9c?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -977,7 +932,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 05:14:55 GMT + - Tue, 25 May 2021 11:30:51 GMT expires: - '-1' pragma: @@ -990,7 +945,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29875 + - Microsoft.Compute/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29930 status: code: 200 message: OK @@ -1008,26 +963,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e/virtualmachines/1/reimage?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e/virtualmachines/0/reimage?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/9416ccdf-c358-43ff-b221-8d76f9d879d6?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fd11bb85-5040-4c01-895d-67bbc932954e?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:14:55 GMT + - Tue, 25 May 2021 11:30:52 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/9416ccdf-c358-43ff-b221-8d76f9d879d6?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fd11bb85-5040-4c01-895d-67bbc932954e?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1038,9 +993,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1192,Microsoft.Compute/VMScaleSetVMActions3Min;199,Microsoft.Compute/VMScaleSetVMActions30Min;997,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3727,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1188,Microsoft.Compute/VMScaleSetVMActions3Min;199,Microsoft.Compute/VMScaleSetVMActions30Min;997,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3727,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1186' + - '1177' x-ms-request-charge: - '1' status: @@ -1056,14 +1011,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/9416ccdf-c358-43ff-b221-8d76f9d879d6?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fd11bb85-5040-4c01-895d-67bbc932954e?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:14:56.2409093+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"9416ccdf-c358-43ff-b221-8d76f9d879d6\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:30:52.9193235+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"fd11bb85-5040-4c01-895d-67bbc932954e\"\r\n}" headers: cache-control: - no-cache @@ -1072,7 +1027,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:15:26 GMT + - Tue, 25 May 2021 11:31:23 GMT expires: - '-1' pragma: @@ -1089,7 +1044,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29903 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29927 status: code: 200 message: OK @@ -1103,14 +1058,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/9416ccdf-c358-43ff-b221-8d76f9d879d6?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fd11bb85-5040-4c01-895d-67bbc932954e?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:14:56.2409093+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"9416ccdf-c358-43ff-b221-8d76f9d879d6\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:30:52.9193235+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"fd11bb85-5040-4c01-895d-67bbc932954e\"\r\n}" headers: cache-control: - no-cache @@ -1119,7 +1074,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:15:55 GMT + - Tue, 25 May 2021 11:31:53 GMT expires: - '-1' pragma: @@ -1136,7 +1091,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29900 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29924 status: code: 200 message: OK @@ -1150,14 +1105,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/9416ccdf-c358-43ff-b221-8d76f9d879d6?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fd11bb85-5040-4c01-895d-67bbc932954e?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:14:56.2409093+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"9416ccdf-c358-43ff-b221-8d76f9d879d6\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:30:52.9193235+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"fd11bb85-5040-4c01-895d-67bbc932954e\"\r\n}" headers: cache-control: - no-cache @@ -1166,7 +1121,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:16:25 GMT + - Tue, 25 May 2021 11:32:22 GMT expires: - '-1' pragma: @@ -1183,7 +1138,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29897 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29921 status: code: 200 message: OK @@ -1197,15 +1152,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/9416ccdf-c358-43ff-b221-8d76f9d879d6?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fd11bb85-5040-4c01-895d-67bbc932954e?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:14:56.2409093+00:00\",\r\n \"endTime\": - \"2021-04-06T05:16:47.6004431+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"9416ccdf-c358-43ff-b221-8d76f9d879d6\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:30:52.9193235+00:00\",\r\n \"endTime\": + \"2021-05-25T11:32:51.9041386+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"fd11bb85-5040-4c01-895d-67bbc932954e\"\r\n}" headers: cache-control: - no-cache @@ -1214,7 +1169,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:16:56 GMT + - Tue, 25 May 2021 11:32:53 GMT expires: - '-1' pragma: @@ -1231,7 +1186,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29894 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29918 status: code: 200 message: OK @@ -1245,10 +1200,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/9416ccdf-c358-43ff-b221-8d76f9d879d6?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/fd11bb85-5040-4c01-895d-67bbc932954e?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -1258,7 +1213,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 05:16:56 GMT + - Tue, 25 May 2021 11:32:53 GMT expires: - '-1' pragma: @@ -1271,7 +1226,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29893 + - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29917 status: code: 200 message: OK @@ -1287,26 +1242,26 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e/virtualmachines/1/reimageall?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e/virtualmachines/0/reimageall?api-version=2021-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/17cd277d-f572-4366-9e45-5ce3ef55767b?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/33a88f80-5578-4dfe-b811-f9217b86df7b?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:16:56 GMT + - Tue, 25 May 2021 11:32:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/17cd277d-f572-4366-9e45-5ce3ef55767b?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/33a88f80-5578-4dfe-b811-f9217b86df7b?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1317,9 +1272,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1191,Microsoft.Compute/VMScaleSetVMActions3Min;198,Microsoft.Compute/VMScaleSetVMActions30Min;996,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3726,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1187,Microsoft.Compute/VMScaleSetVMActions3Min;198,Microsoft.Compute/VMScaleSetVMActions30Min;996,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3726,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1185' + - '1176' x-ms-request-charge: - '1' status: @@ -1335,14 +1290,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/17cd277d-f572-4366-9e45-5ce3ef55767b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/33a88f80-5578-4dfe-b811-f9217b86df7b?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:16:56.6473211+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"17cd277d-f572-4366-9e45-5ce3ef55767b\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:32:54.0759981+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"33a88f80-5578-4dfe-b811-f9217b86df7b\"\r\n}" headers: cache-control: - no-cache @@ -1351,7 +1306,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:17:25 GMT + - Tue, 25 May 2021 11:33:23 GMT expires: - '-1' pragma: @@ -1368,7 +1323,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29890 + - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29914 status: code: 200 message: OK @@ -1382,14 +1337,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/17cd277d-f572-4366-9e45-5ce3ef55767b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/33a88f80-5578-4dfe-b811-f9217b86df7b?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:16:56.6473211+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"17cd277d-f572-4366-9e45-5ce3ef55767b\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:32:54.0759981+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"33a88f80-5578-4dfe-b811-f9217b86df7b\"\r\n}" headers: cache-control: - no-cache @@ -1398,7 +1353,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:17:56 GMT + - Tue, 25 May 2021 11:33:53 GMT expires: - '-1' pragma: @@ -1415,7 +1370,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29887 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29911 status: code: 200 message: OK @@ -1429,14 +1384,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/17cd277d-f572-4366-9e45-5ce3ef55767b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/33a88f80-5578-4dfe-b811-f9217b86df7b?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:16:56.6473211+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"17cd277d-f572-4366-9e45-5ce3ef55767b\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:32:54.0759981+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"33a88f80-5578-4dfe-b811-f9217b86df7b\"\r\n}" headers: cache-control: - no-cache @@ -1445,7 +1400,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:18:25 GMT + - Tue, 25 May 2021 11:34:24 GMT expires: - '-1' pragma: @@ -1462,7 +1417,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29884 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29908 status: code: 200 message: OK @@ -1476,15 +1431,15 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/17cd277d-f572-4366-9e45-5ce3ef55767b?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/33a88f80-5578-4dfe-b811-f9217b86df7b?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:16:56.6473211+00:00\",\r\n \"endTime\": - \"2021-04-06T05:18:30.0852637+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"17cd277d-f572-4366-9e45-5ce3ef55767b\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:32:54.0759981+00:00\",\r\n \"endTime\": + \"2021-05-25T11:34:40.5448308+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"33a88f80-5578-4dfe-b811-f9217b86df7b\"\r\n}" headers: cache-control: - no-cache @@ -1493,7 +1448,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:18:56 GMT + - Tue, 25 May 2021 11:34:54 GMT expires: - '-1' pragma: @@ -1510,7 +1465,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29881 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29905 status: code: 200 message: OK @@ -1524,10 +1479,10 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/17cd277d-f572-4366-9e45-5ce3ef55767b?monitor=true&api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/33a88f80-5578-4dfe-b811-f9217b86df7b?monitor=true&api-version=2021-03-01 response: body: string: '' @@ -1537,7 +1492,7 @@ interactions: content-length: - '0' date: - - Tue, 06 Apr 2021 05:18:56 GMT + - Tue, 25 May 2021 11:34:54 GMT expires: - '-1' pragma: @@ -1550,7 +1505,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29880 + - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29904 status: code: 200 message: OK @@ -1566,10 +1521,10 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachineScaleSets/virtualmachinescalesetb172129e?api-version=2021-03-01 response: body: string: '' @@ -1577,17 +1532,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3c390ef1-8b1c-44e7-924d-79a7042085a9?api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/98fc0ec5-bc28-4fdb-b67d-555d5c4663a2?api-version=2021-03-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 06 Apr 2021 05:18:56 GMT + - Tue, 25 May 2021 11:34:56 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3c390ef1-8b1c-44e7-924d-79a7042085a9?monitor=true&api-version=2020-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/98fc0ec5-bc28-4fdb-b67d-555d5c4663a2?monitor=true&api-version=2021-03-01 pragma: - no-cache server: @@ -1598,9 +1553,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/DeleteVMScaleSet3Min;79,Microsoft.Compute/DeleteVMScaleSet30Min;398,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3726,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/DeleteVMScaleSet3Min;79,Microsoft.Compute/DeleteVMScaleSet30Min;396,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;3726,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-deletes: - - '14992' + - '14991' x-ms-request-charge: - '1' status: @@ -1616,23 +1571,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3c390ef1-8b1c-44e7-924d-79a7042085a9?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/98fc0ec5-bc28-4fdb-b67d-555d5c4663a2?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:18:57.163408+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"3c390ef1-8b1c-44e7-924d-79a7042085a9\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:34:57.0917147+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"98fc0ec5-bc28-4fdb-b67d-555d5c4663a2\"\r\n}" headers: cache-control: - no-cache content-length: - - '133' + - '134' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:19:06 GMT + - Tue, 25 May 2021 11:35:06 GMT expires: - '-1' pragma: @@ -1649,7 +1604,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29879 + - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29914 status: code: 200 message: OK @@ -1663,23 +1618,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3c390ef1-8b1c-44e7-924d-79a7042085a9?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/98fc0ec5-bc28-4fdb-b67d-555d5c4663a2?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:18:57.163408+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"3c390ef1-8b1c-44e7-924d-79a7042085a9\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:34:57.0917147+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"98fc0ec5-bc28-4fdb-b67d-555d5c4663a2\"\r\n}" headers: cache-control: - no-cache content-length: - - '133' + - '134' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:19:17 GMT + - Tue, 25 May 2021 11:35:17 GMT expires: - '-1' pragma: @@ -1696,7 +1651,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29878 + - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29913 status: code: 200 message: OK @@ -1710,24 +1665,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.8 (Linux-5.4.0-1043-azure-x86_64-with-glibc2.2.5) + - azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.10 (Linux-5.4.0-1047-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/3c390ef1-8b1c-44e7-924d-79a7042085a9?api-version=2020-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/98fc0ec5-bc28-4fdb-b67d-555d5c4663a2?api-version=2021-03-01 response: body: - string: "{\r\n \"startTime\": \"2021-04-06T05:18:57.163408+00:00\",\r\n \"endTime\": - \"2021-04-06T05:19:29.0384838+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"3c390ef1-8b1c-44e7-924d-79a7042085a9\"\r\n}" + string: "{\r\n \"startTime\": \"2021-05-25T11:34:57.0917147+00:00\",\r\n \"endTime\": + \"2021-05-25T11:35:32.2323798+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"98fc0ec5-bc28-4fdb-b67d-555d5c4663a2\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 06 Apr 2021 05:19:48 GMT + - Tue, 25 May 2021 11:35:48 GMT expires: - '-1' pragma: @@ -1744,7 +1699,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29876 + - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29911 status: code: 200 message: OK diff --git a/sdk/compute/azure-mgmt-compute/tests/test_mgmt_compute_dedicated_hosts.py b/sdk/compute/azure-mgmt-compute/tests/test_mgmt_compute_dedicated_hosts.py index f2110ff257d3..e3aaf45bab84 100644 --- a/sdk/compute/azure-mgmt-compute/tests/test_mgmt_compute_dedicated_hosts.py +++ b/sdk/compute/azure-mgmt-compute/tests/test_mgmt_compute_dedicated_hosts.py @@ -25,6 +25,7 @@ def setUp(self): azure.mgmt.compute.ComputeManagementClient ) + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_dedicated_hosts(self, resource_group): HOST_GROUP_NAME = self.get_resource_name("hostgroup") diff --git a/sdk/compute/azure-mgmt-compute/tests/test_mgmt_compute_vm.py b/sdk/compute/azure-mgmt-compute/tests/test_mgmt_compute_vm.py index 5b86dadc7c56..5f7762b2662b 100644 --- a/sdk/compute/azure-mgmt-compute/tests/test_mgmt_compute_vm.py +++ b/sdk/compute/azure-mgmt-compute/tests/test_mgmt_compute_vm.py @@ -291,6 +291,7 @@ def test_compute_vm(self, resource_group): result = self.mgmt_client.virtual_machines.begin_delete(resource_group.name, VIRTUAL_MACHINE_NAME) result = result.result() + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_compute_vm_2(self, resource_group):